This is a migrated thread and some comments may be shown as answers.

the "foreground" property does not apply to the icon

2 Answers 128 Views
General Discussion
This is a migrated thread and some comments may be shown as answers.
Milenny
Top achievements
Rank 1
Milenny asked on 11 Mar 2019, 05:05 PM

the foreground property does not apply to the icon .. He has followed these steps:

https://docs.telerik.com/windows-universal/controls/raddatepicker-and-radtimepicker/styling/raddatetimepickers-explicitstyling

and it only takes the color indicated by the text and not the icon ..

This is my XAML code:

<Custom:RadDatePicker x:Name="FromDatePicker" HorizontalAlignment="Left" ValueChanged="DatePickerValueChange">
                    <Custom:RadDatePicker.Resources>
                        <Style TargetType="Custom:RadDatePicker">
                            <Setter Property="Foreground" Value="Orange"/>
                            <Setter Property="FontSize" Value="15"/>
                            <Setter Property="FontStyle" Value="Italic"/>
                            <Setter Property="Background" Value="Beige"/>
                            <Setter Property="BorderBrush" Value="Orange"/>
                        </Style>
                    </Custom:RadDatePicker.Resources>
</Custom:RadDatePicker>

the result is in the attached image ..

 

2 Answers, 1 is accepted

Sort by
0
Lance | Manager Technical Support
Telerik team
answered on 11 Mar 2019, 05:25 PM
Hi Milenny,

Since you've already opened a ticket for this, I will close this thread as it is a duplicate.

You can go to the original thread for more information and the solution here: https://feedback.telerik.com/uwp/1399602 

Regards,
Lance | Technical Support Engineer, Principal
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Milenny
Top achievements
Rank 1
answered on 12 Mar 2019, 03:33 PM

Thanks, I have solved it by placing: "<SolidColorBrush x: Key = 'TelerikDateTimePickerArrowForegroundBrush' Color = 'White' />" (see "img-a.png")
But it happens that other properties specified for the brushes, do not take them .. for example:
- TelerikDateTimePickerItemPointerOverBackgroundBrush for the Hover State (see "img-2.png")
- TelerikDateTimePickerSelectorBackgroundBrush for the background color of the Popup Selector
- TelerikDateTimePickerSelectorItemSelectedBackgroundBrush for the boxes of the day, month and year of the Popup Selector
(see "img-3.png")
And other properties shown in the following XAML code, of which, I only take the first 4 (see "img-a.png"):
<Custom:RadDatePicker x:Name="FromDatePicker" HorizontalAlignment="Left" ValueChanged="DatePickerValueChange" BorderThickness="1">
                    <Custom:RadDatePicker.Resources>                   
                        <ResourceDictionary>
                            <SolidColorBrush x:Key="TelerikDateTimePickerArrowForegroundBrush" Color="White"/>
                            <SolidColorBrush x:Key="TelerikDateTimePickerForegroundBrush" Color="White"/>
                            <SolidColorBrush x:Key="TelerikDateTimePickerBorderBrush" Color="#FFB6B5B5"/>
                            <SolidColorBrush x:Key="TelerikDateTimePickerBackgroundBrush" Color="#FF30302E"/>
                            <SolidColorBrush x:Key="TelerikDateTimePickerItemPointerOverBackgroundBrush" Color="Pink"/>
                            <SolidColorBrush x:Key="TelerikDateTimePickerSelectorBackgroundBrush" Color="Pink"/>
                            <SolidColorBrush x:Key="TelerikDateTimePickerSelectorItemSelectedBackgroundBrush" Color="Pink"/>
                            <SolidColorBrush x:Key="TelerikDateTimePickerSelectorForegroundBrush" Color="Pink"/>
                        </ResourceDictionary>
                    </Custom:RadDatePicker.Resources>
</Custom:RadDatePicker>

Might you help me? Thank you!

Tags
General Discussion
Asked by
Milenny
Top achievements
Rank 1
Answers by
Lance | Manager Technical Support
Telerik team
Milenny
Top achievements
Rank 1
Share this question
or