Default Styles

4 posts, 0 answers
  1. David
    David avatar
    2 posts
    Member since:
    May 2004

    Posted 04 Dec 2008 Link to this post

    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.
  2. Miroslav
    Admin
    Miroslav avatar
    922 posts

    Posted 08 Dec 2008 Link to this post

    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.
  3. UI for WPF is Visual Studio 2017 Ready
  4. David
    David avatar
    2 posts
    Member since:
    May 2004

    Posted 08 Dec 2008 Link to this post

    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
  5. Miroslav
    Admin
    Miroslav avatar
    922 posts

    Posted 11 Dec 2008 Link to this post

    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.
Back to Top