Hi,
I have made a DayTemplateSelector - allowing me to style the calendar (highlighting different dates with colors..).
This works fine with all the different themes except the "Expression_Dark" theme (the dates are not highlighted with my color)
See attached images...(with and without "Expression_Dark" theme)
1. Any ideas why this theme is different from the others?
2. How can I decrease the height/width on the areas that show day/weeknumber?
They take up way too much space...(I have marked the areas with green color on image: RadCalendar - DayTemplateSelector 2.png)
I have made a DayTemplateSelector - allowing me to style the calendar (highlighting different dates with colors..).
This works fine with all the different themes except the "Expression_Dark" theme (the dates are not highlighted with my color)
See attached images...(with and without "Expression_Dark" theme)
1. Any ideas why this theme is different from the others?
2. How can I decrease the height/width on the areas that show day/weeknumber?
They take up way too much space...(I have marked the areas with green color on image: RadCalendar - DayTemplateSelector 2.png)
<Controls:RadCalendar x:Name="TommedatoKalender" Rows="3" Columns="4" SelectionMode="Extended" ViewsHeaderVisibility="Visible" DisplayDate="{Binding DisplayDate}"> <Controls:RadCalendar.DayTemplateSelector> <selector:KalenderDagSelector> <selector:KalenderDagSelector.DefaultTemplate> <DataTemplate> <TextBlock Text="{Binding Text}" Height="18" Width="18" TextAlignment="Center"/> </DataTemplate> </selector:KalenderDagSelector.DefaultTemplate> <selector:KalenderDagSelector.TommeDagTemplate> <DataTemplate> <Border BorderThickness="1" BorderBrush="{DynamicResource HighlightDayColor}" CornerRadius="12" HorizontalAlignment="Center" VerticalAlignment="Center" Background="{DynamicResource HighlightDayColor}"> <Grid> <!-- Rounded mask (stretches to fill Grid) --> <Border Name="mask" Background="{DynamicResource HighlightDayColor}" CornerRadius="7"/> <!-- Main content container --> <StackPanel> <!-- Use a VisualBrush of 'mask' as the opacity mask --> <StackPanel.OpacityMask> <VisualBrush Visual="{Binding ElementName=mask}"/> </StackPanel.OpacityMask> <!-- Content --> <TextBlock Text="{Binding Text}" Background="{DynamicResource HighlightDayColor}" Height="18" Width="18" TextAlignment="Center" /> </StackPanel> </Grid> </Border> </DataTemplate> </selector:KalenderDagSelector.TommeDagTemplate> </selector:KalenderDagSelector> </Controls:RadCalendar.DayTemplateSelector> </Controls:RadCalendar>