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

Default Styles

3 Answers 152 Views
DatePicker
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 04 Dec 2008, 06:04 AM
How do I get the telerik controls to look like the default windows controls. I am only using the DatePicker and it has a different visual theme to the rest of my application.

3 Answers, 1 is accepted

Sort by
0
Miroslav
Telerik team
answered on 08 Dec 2008, 01:46 PM
Hello David,

The controls come with several themes, one of which is "Vista". This is how you set the theme:

<telerik:RadDatePicker   
HorizontalAlignment="Center"   
VerticalAlignment="Center"   
telerik:Theming.Theme="Vista"/> 

Is this what you are looking for?

Kind regards,
Miroslav
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
David
Top achievements
Rank 1
answered on 08 Dec 2008, 07:02 PM
Hi there

I tried that but I get the following error: Value 'Vista' cannot be assigned to property 'Theme'. Property 'Theme' of type 'Theme' cannot be specified as a string. The application build successfully though.

Also the designer gives the "Problem Loading" error.

The property setting "telerik:Theming.Theme="Vista"" is underlined with a blue skwiggly underline.

When I run the application, I am not able to select a date. The calendar pops up, but when I select a date the calander hides but there is no date in the box.

Here is the xaml from the page:
 
<Window x:Class="WpfApplication1.Window1"   
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"   
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"   
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"   
Title="Window1" Height="356" Width="517">   
<Canvas Name="canvas1">   
<telerik:RadDatePicker Canvas.Left="236" Canvas.Top="87" Height="26"   
Name="radDatePicker1" Width="84"   
HorizontalAlignment="Center" VerticalAlignment="Center"   
telerik:Theming.Theme="Vista" />   
</Canvas>   
</Window> 
 

 

Would you need any other information?

Thanks
0
Miroslav
Telerik team
answered on 11 Dec 2008, 09:32 AM
Hello David,

Honestly, I did not expect to see the missing TextBox. It will be back in place for the coming SP release of the controls.

In the meantime, you can use the modified style which I have attached in a project.

We are also working to resolve the design-time issue for setting the theme.

We deeply apologize for the caused inconvenience. We added Telerik points to your account for your report.

Once again, thanks you for your feedback.

Kind regards,
Miroslav
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
DatePicker
Asked by
David
Top achievements
Rank 1
Answers by
Miroslav
Telerik team
David
Top achievements
Rank 1
Share this question
or