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

[Solved] Border is not working for RadDateTime

4 Answers 89 Views
DatePicker for XAML
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Vinay
Top achievements
Rank 1
Vinay asked on 10 Apr 2014, 12:08 PM
Hello Team,

I am using Rad controls for Windows 8 XAML project.

I need to change the border color of the RAdDateTimePicker. I have used below Telerik named brushes into the Resource dictionary.

<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:MoveManMobileJob">

    <SolidColorBrush x:Key="TelerikNumericBoxBorderBrush" Color="WhiteSmoke"></SolidColorBrush>
    <SolidColorBrush x:Key="TelerikNumericBoxPointerOverBorderBrush" Color="#FF939393"></SolidColorBrush>
    <SolidColorBrush x:Key="TelerikNumericBoxFocusedBorderBrush" Color="#FFCCCCCC"></SolidColorBrush>
    <SolidColorBrush x:Key="TelerikNumericBoxSpinButtonBackgroundBrush" Color="#FF242860"></SolidColorBrush>
    <SolidColorBrush x:Key="TelerikNumericBoxSpinButtonPressedBackgroundBrush" Color="#FF0897F9"></SolidColorBrush>
    <SolidColorBrush x:Key="TelerikNumericBoxSpinButtonPressedForegroundBrush" Color="White"></SolidColorBrush>
    <SolidColorBrush x:Key="TelerikDateTimePickerBorderBrush" Color="WhiteSmoke"></SolidColorBrush>
    <SolidColorBrush x:Key="TelerikDateTimePickerPointerOverBorderBrush" Color="#FF939393"></SolidColorBrush>
    <SolidColorBrush x:Key="TelerikDateTimePickerPointerOverBackgroundBrush" Color="#ccc"></SolidColorBrush>
    <SolidColorBrush x:Key="TelerikDateTimePickerFocusedBorderBrush" Color="#282460"></SolidColorBrush>
    <SolidColorBrush x:Key="TelerikDateTimePickerDisabledBorderBrush" Color="#ccc"></SolidColorBrush>
    <SolidColorBrush x:Key="TelerikDateTimePickerFocusedForegroundBrush" Color="#282460"></SolidColorBrush>
    <SolidColorBrush x:Key="TelerikDateTimePickerPressedBorderBrush" Color="#282460"></SolidColorBrush>
    <SolidColorBrush x:Key="TelerikDateTimePickerItemFocusedBackgroundBrush" Color="#ccc"></SolidColorBrush>
    <SolidColorBrush x:Key="TelerikDateTimePickerDisabledForegroundBrush" Color="#282460"></SolidColorBrush>
    <SolidColorBrush x:Key="TelerikNumericBoxDisabledBorderBrush" Color="#ccc"></SolidColorBrush>
    <SolidColorBrush x:Key="TelerikNumericBoxDisabledForegroundBrush" Color="#282460"></SolidColorBrush>
</ResourceDictionary>


But I am not getting the expected result as It was giving proper result in previous version(2013 Q3).

Am I missing something silly?

Any help would be appreciated.

Thanks,

Vinay.


 

4 Answers, 1 is accepted

Sort by
0
Ivaylo Gergov
Telerik team
answered on 11 Apr 2014, 11:39 AM
Hi,

The Telerik Named Brushes are resolved differently in Windows 8.1. Here is a help article that explains this in details.

Let me know how it goes.

Regards,
Ivaylo Gergov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Vinay
Top achievements
Rank 1
answered on 17 Apr 2014, 07:48 AM
Hello Ivaylo,

Thanks for your reply.

I am using below code into the app.xaml.

<Application.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="Resources/CustomDictionary.xaml"></ResourceDictionary>
            </ResourceDictionary.MergedDictionaries>

            <telerik:UserThemeResources x:Key="MyResources" LightResourcesPath="ms-appx:///Resources/TelerikResources.xaml" DarkResourcesPath="ms-appx:///Resources/TelerikResources.xaml"></telerik:UserThemeResources>
            <SolidColorBrush x:Key="PressedBorderBrush" Color="#FF9C9C9C"/>
            <SolidColorBrush x:Key="PointerOverBorderBrush" Color="#FF939393"/>
            <SolidColorBrush x:Key="NormalBorderBrush" Color="#FFCCCCCC"/>
            <local:SettingData x:Key="oSettingData"></local:SettingData>
            <local:BooleanToVisibilityConvertor x:Key="oBooleanToVisibilityConvertor"></local:BooleanToVisibilityConvertor>
        </ResourceDictionary>
 

    </Application.Resources>

I am sure that it was working Ok.

Thanks,
Vinay

0
Accepted
Ivaylo Gergov
Telerik team
answered on 17 Apr 2014, 10:53 AM
Hello,

I tried to reproduce this issue but everything works fine on our side. I have attached a project that shows the scenario. Could you please take a look and see if this works on your side too?


Regards,
Ivaylo Gergov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Vinay
Top achievements
Rank 1
answered on 17 Apr 2014, 02:03 PM
Hello,

Excellent....Managed to sort out...!!!

Thanks,

Vinay.
Tags
DatePicker for XAML
Asked by
Vinay
Top achievements
Rank 1
Answers by
Ivaylo Gergov
Telerik team
Vinay
Top achievements
Rank 1
Share this question
or