Hi,
I am asking this question again because the last one has gone missing, weird.
I still do not have an answer to this.
I want the datatemplate defined to fill the available space of the listbox items.
Any ideas??
Malcolm
<ListBox Grid.Row="2" Name="lstCalender">
<ListBox.ItemsPanel>
<ItemsPanelTemplate>
<UniformGrid Columns="7" Rows="6" />
</ItemsPanelTemplate>
</ListBox.ItemsPanel>
<ListBox.ItemTemplate>
<DataTemplate>
<Border CornerRadius="10,10,10,10" Background="Black" BorderThickness="1" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
<Grid>
<Border CornerRadius="10,10,10,10" BorderThickness="1">
<Border.Background>
<LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
<GradientStop Color="#FF7C8591" Offset="0"></GradientStop>
<GradientStop Color="#FF000000" Offset="0.5"></GradientStop>
<GradientStop Color="#FF7C8591" Offset="1"></GradientStop>
</LinearGradientBrush>
</Border.Background>
</Border>
<TextBlock Foreground="White" Text="{Binding}" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="30"></TextBlock>
</Grid>
</Border>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>