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

How to change the theme for radcalendar

6 Answers 136 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Pam
Top achievements
Rank 1
Pam asked on 11 Jul 2011, 06:26 PM
Hi,

Your Calendar theming example shows the different telerik themes available for radcalendar. But it is unclear in your code as to how I can change the theme for my radcalendar. Please explain..

Thanks,
Amudha

6 Answers, 1 is accepted

Sort by
0
Pam
Top achievements
Rank 1
answered on 11 Jul 2011, 07:36 PM
Found the solution. Thanks!
0
Dani
Telerik team
answered on 13 Jul 2011, 10:24 AM
Hi Amudha,

You can apply a theme very easily using the follwong syntax:
<telerik:RadCalendar telerik:StyleManager.Theme="Vista" />


All the best,
Dani
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Kamasani
Top achievements
Rank 1
answered on 26 Oct 2011, 08:42 PM
Hi I am trying to apply theme to the sample example provided but not able to see the changed themp please find the full aml code below

 

 

 

<

 

 

UserControl x:Class="Bulkmailapplication.MainPage"

 

 

 

 

 

 

 

 

xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

 

 

 

 

 

 

 

 

xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

 

 

 

 

 

 

 

 

xmlns:d="http://schemas.microsoft.com/expression/blend/2008"

 

 

 

 

 

 

 

 

xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"

 

 

 

 

 

 

 

 

xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"

 

 

 

 

 

 

 

 

xmlns:telerikQuickStart="clr-namespace:Telerik.Windows.Controls.QuickStart;assembly=Telerik.Windows.Controls"

 

 

 

 

 

 

 

 

xmlns:local="clr-namespace:Bulkmailapplication"

 

 

 

 

 

 

 

 

mc:Ignorable="d" HorizontalAlignment="Stretch" HorizontalContentAlignment="Stretch"

 

 

 

 

 

 

 

 

d:DesignHeight="300" d:DesignWidth="400" >

 

 

 

 

 

 

 

 

 

<UserControl.Resources>

 

 

 

 

 

 

 

 

 

<telerik:BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter" />

 

 

 

 

 

 

 

 

 

</UserControl.Resources>

 

 

 

 

 

 

 

 

 

<Grid HorizontalAlignment="Stretch" telerik:StyleManager.Theme="" >

 

 

 

 

 

 

 

 

 

<Grid.RowDefinitions>

 

 

 

 

 

 

 

 

 

<RowDefinition Height="Auto" />

 

 

 

 

 

 

 

 

 

<RowDefinition />

 

 

 

 

 

 

 

 

 

</Grid.RowDefinitions>

 

 

 

 

 

 

 

 

 

<telerik:RadButton Click="Button_Click" Grid.Row="0" HorizontalAlignment="Center" Content="Load Appointments" FontWeight="Bold" Margin="12" Padding="18 4" />

 

 

 

 

 

 

 

 

 

<telerik:RadBusyIndicator x:Name="busyIndicator" Grid.Row="1" BusyContent="Loading data....">

 

 

 

 

 

 

 

 

 

<telerik:RadScheduler telerik:StyleManager.Theme="Windows7" x:Name="scheduler" ViewMode="Day" />

 

 

 

 

 

 

 

 

 

</telerik:RadBusyIndicator>

 

 

 

 

 

 

 

 

 

</Grid>

 

</

 

 

UserControl>

 

 

 

 

 

0
Dani
Telerik team
answered on 27 Oct 2011, 04:19 PM
Hello Kamasani,

You cannot set a Telerik theme to the <Grid /> panel. The Grid does not have any visual representation and is not themable via our themes.

You can try setting an application theme, if you wish for all controls to pick up the theme in your UserControl:

public partial class MainPage : UserControl
    {
        public MainPage()
        {
            StyleManager.ApplicationTheme = new VistaTheme();
            // Required to initialize variables
            InitializeComponent();
        }
    }

Please, note that MS native controls, such as ScrollViewer, Listbox, TextBox, etc. will not pick up the application theme and need to have their theme set explicitly.

I hope this helps.

All the best,
Dani
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
0
Kamasani
Top achievements
Rank 1
answered on 28 Oct 2011, 06:41 AM
Hi Thanks for the quick response.
I did the same as directed but the page is leep on loading no output. if i comet the line
StyleManager.ApplicationTheme = new VistaTheme();
It is working fine please let me know how can i proceed
0
Dani
Telerik team
answered on 28 Oct 2011, 10:57 AM
Hi Kamasani,

Since there is no RadCalendar in the xaml you provided, my supposition is that you are referring to RadScheduler.

Please, check the attached very basic sample. It demonstrates how you can apply an application theme to a Silverlight application containing RadControls, including the RadScheduler control.

If you have further questions on using the RadScheduler control, please submit them in the RadScheduler forum.

I hope this will be helpful.

Best wishes,
Dani
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Tags
Calendar
Asked by
Pam
Top achievements
Rank 1
Answers by
Pam
Top achievements
Rank 1
Dani
Telerik team
Kamasani
Top achievements
Rank 1
Share this question
or