Appearance and Styling

Accent Brush

The AccentBrush property is used to decorate the hot spots of a control with a solid color.

  • xaml
  • <Grid Background="{StaticResource ApplicationPageBackgroundThemeBrush}">
    
            <syncfusion:SfDatePicker  VerticalAlignment="Center"
    
                                    HorizontalAlignment="Center"
    
                                    Width="200"
    
                                    AccentBrush="Green"/>
    
    </Grid>

    The following image shows the control with various Accent brushes:

    Selected Foreground

    The SelectedForeground property is used to change the foreground color of the Selected Date

  • xaml
  • <Grid Background="{StaticResource ApplicationPageBackgroundThemeBrush}">
    
            <syncfusion:SfDatePicker VerticalAlignment="Center"
    
                             HorizontalAlignment="Center"
    
                             Width="200">
    
                <syncfusion:SfDatePicker.SelectorStyle>
    
                    <Style TargetType="syncfusion:SfDateSelector">
                     
                        <Setter Property="SelectedForeground" Value="Red"/>
                        
                    </Style>
    
                </syncfusion:SfDatePicker.SelectorStyle>
    
            </syncfusion:SfDatePicker>
    
    </Grid>