Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1825
Change Background and Foregound of XamDateTimeEditor DropDown
posted

How do I update Background and Foregound of XamDateTimeEditor DropDown ?

Image Attached.

Parents
No Data
Reply
  • 28407
    Verified Answer
    posted

    HI,

     Here are some code snippets:

     <Grid.Resources>    

             <Style TargetType="{x:Type my:XamMonthCalendar}">   

                  <Setter Property="Background" Value="Yellow"/>        

               </Style>     

            <Style TargetType="{x:Type my:CalendarDay}">   

                  <Setter Property="Background" Value="Aqua"/>      

                   <Setter Property="Foreground" Value="Red"/>     

            </Style>    

         </Grid.Resources>     

        <my:XamDateTimeEditor HorizontalAlignment="Left" Margin="134,48,0,0" Name="xamDateTimeEditor1" VerticalAlignment="Top" Width="190" />

    Sincerely,
     Matt
    Developer Support Engineer

Children
No Data