How can i remove/hide Edit Recurrence Button from Edit Appointment Dialog window

9 posts, 0 answers
  1. palak
    palak avatar
    102 posts
    Member since:
    May 2011

    Posted 24 Jun 2011 Link to this post

    Hello guys,

    How can i remove/hide unwanted controls from Edit Appointment Dialog Window in RadScheduleView Q1 2011.
    Like i don't need user to register any recurring appointment via Edit Recurrence Button in Edit Appointment Dialog Window, so i want to remove it from Edit Appointment Dialog window.
    How can i achieve this ?

    kindly share your knowledge.

    regards & thanks
  2. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 28 Jun 2011 Link to this post

    Hi Palak,

    In order to create a custom appointment dialog, you should modify the EditAppointmentDialogStyle property of the ScheduleView control. More information about this can be found here and here.

    Kind regards,
    Yana
    the Telerik team
    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 Public Issue Tracking system and vote to affect the priority of the items
  3. DevCraft banner
  4. palak
    palak avatar
    102 posts
    Member since:
    May 2011

    Posted 28 Jun 2011 Link to this post

    Hi yana,

    i know about edit appointment style. Actually i didn't put xaml code into my .Xaml page as i didn't need to do anything custom, so scheduleview anyways opening default edit appointment dialog window. so i just want to hide/remove unncessary buttons like Edit recurrence, category, timemarkers etc. by using codebehind .xaml.cs.  so i thought, this could be possible in codebehind by putting some code. can u pls tell me, is it possible ? you can see my .xaml code also.

    <UserControl x:Class="HaiderSchedulerView.MainPage"
            mc:Ignorable="d"
            xmlns:local="clr-namespace:HaiderSchedulerView"
            xmlns:telerikPrimitives="clr-namespace:Telerik.Windows.Controls.Primitives;assembly=Telerik.Windows.Controls"
            xmlns:RadSchedulerView="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.ScheduleView"
            xmlns:sdk="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data.Input">
     
        <UserControl.Resources>
            
             <!--Theme-->
            <telerik:Windows7Theme x:Key="Theme" />
     
            <ImageSource x:Key="EditAppointmentTemplate_Recurrence">/Telerik.Windows.Controls.ScheduleView;component/Themes/Images/Recurrence.png</ImageSource>
            <SolidColorBrush x:Key="RadScheduleForeground" Color="#FF000000" />
            <SolidColorBrush x:Key="SpecialSlotBackground" Color="#4DCDCDCD" />
            <SolidColorBrush x:Key="SpecialSlotBackground_ReadOnly" Color="#8CCDCDCD" />
            <SolidColorBrush x:Key="MonthViewTimeRulerItemForeground_Normal" Color="#FF6685AE" />
            <SolidColorBrush x:Key="MonthViewTimeRulerItemOuterBorder" Color="Transparent" />
            <SolidColorBrush x:Key="MonthViewTimeRulerItemBackground" Color="Transparent" />
            <SolidColorBrush x:Key="MonthViewTimeRulerItemOuterBorder_MouseOver" Color="#FFB8D6FB" />
            <SolidColorBrush x:Key="MonthViewTimeRulerItemBackground_MouseOver" Color="#CCF5F9FF" />
            <SolidColorBrush x:Key="MonthViewTimeRulerItemInnerBorder_MouseOver" Color="Transparent" />
            <SolidColorBrush x:Key="MonthViewTimeRulerItemForeground_MouseOver" Color="#FF6685AE" />
            <SolidColorBrush x:Key="MonthViewTimeRulerItemOuterBorder_Pressed" Color="#FF7DA2CE" />
            <SolidColorBrush x:Key="MonthViewTimeRulerItemBackground_Pressed" Color="#7FD9E3F0" />
            <SolidColorBrush x:Key="MonthViewTimeRulerItemInnerBorder_Pressed" Color="Transparent" />
            <SolidColorBrush x:Key="MonthViewTimeRulerItemForeground_Today" Color="#FF6685AE" />
            <SolidColorBrush x:Key="MonthViewTimeRulerItemOuterBorder_Today" Color="#FF839AB5" />
            <SolidColorBrush x:Key="MonthViewTimeRulerItemBackground_Today" Color="#7FD9E3F0" />
            <SolidColorBrush x:Key="MonthViewTimeRulerItemOuterBorder_TodayMouseOver" Color="#FFB8D6FB" />
            <SolidColorBrush x:Key="MonthViewTimeRulerItemBackground_TodayMouseOver" Color="#CCF5F9FF" />
            <SolidColorBrush x:Key="MonthViewTimeRulerItemInnerBorder_TodayMouseOver" Color="Transparent" />
            <SolidColorBrush x:Key="MonthViewTimeRulerItemOuterBorder_TodayPressed" Color="#FF7DA2CE" />
            <SolidColorBrush x:Key="MonthViewTimeRulerItemBackground_TodayPressed" Color="#7FD9E3F0" />
            <SolidColorBrush x:Key="MonthViewTimeRulerItemInnerBorder_TodayPressed" Color="Transparent" />
            <SolidColorBrush x:Key="MonthViewTimeRulerItemInnerBorder_Today" Color="Transparent" />
            <SolidColorBrush x:Key="MonthViewExpandOuterBorder_MouseOver" Color="#FFB8D6FB" />
            <LinearGradientBrush x:Key="MonthViewExpandButtonBackground_MouseOver" EndPoint="0.5,1" StartPoint="0.5,0">
                <GradientStop Color="#FFFBFCFD" Offset="0" />
                <GradientStop Color="#FFF6F8FB" Offset="0.5" />
                <GradientStop Color="#FFEDF2F9" Offset="0.5" />
                <GradientStop Color="#FFE5EBF4" Offset="1" />
            </LinearGradientBrush>
            <LinearGradientBrush x:Key="MonthViewExpandInnerBorder_MouseOver" EndPoint="0.5,1" StartPoint="0.5,0">
                <GradientStop Color="White" Offset="0" />
                <GradientStop Color="#FFFAFCFD" Offset="1" />
            </LinearGradientBrush>
            <SolidColorBrush x:Key="MonthViewExpandIconStroke_MouseOver" Color="#FF000000" />
            <SolidColorBrush x:Key="MonthViewExpandOuterBorder_Pressed" Color="#FFC0CBD9" />
            <LinearGradientBrush x:Key="MonthViewExpandButtonBackground_Pressed" EndPoint="0.5,1" StartPoint="0.5,0">
                <GradientStop Color="#FFC0CBD9" Offset="0" />
                <GradientStop Color="#FFE6EAEE" Offset="0.5" />
            </LinearGradientBrush>
            <LinearGradientBrush x:Key="MonthViewExpandInnerBorder_Pressed" EndPoint="0.5,1" StartPoint="0.5,0">
                <GradientStop Color="#FFC0CBD9" Offset="0" />
                <GradientStop Color="#FFE6EAEE" Offset="0.5" />
            </LinearGradientBrush>
            <SolidColorBrush x:Key="MonthViewExpandIconStroke_Pressed" Color="#FF000000" />
            <SolidColorBrush x:Key="MonthViewExpandOuterBorder" Color="#00000000" />
            <SolidColorBrush x:Key="MonthViewExpandButtonBackground" Color="#00000000" />
            <SolidColorBrush x:Key="MonthViewExpandInnerBorder" Color="#00000000" />
            <SolidColorBrush x:Key="MonthViewExpandIconStroke" Color="#FF000000" />
            <SolidColorBrush x:Key="TimeRulerGroupItemForeground" Color="#FF6685AE" />
            <SolidColorBrush x:Key="GroupHeaderHeaderBackground" Color="#00FFFFFF" />
            <LinearGradientBrush x:Key="GroupHeaderHeaderOuterBorder" EndPoint="0.5,0" StartPoint="0.5,1">
                <GradientStop Color="#7FADBDD1" Offset="0"/>
                <GradientStop Color="#00ADBDD1" Offset="1"/>
            </LinearGradientBrush>
            <SolidColorBrush x:Key="GroupHeaderHeaderInnerBorder_Vertical" Color="#00FFFFFF" />
            <SolidColorBrush x:Key="GroupHeaderHeaderInnerBorder" Color="#00FFFFFF" />
            <SolidColorBrush x:Key="GroupHeaderHeaderBackground_Vertical" Color="#00FFFFFF" />
            <LinearGradientBrush x:Key="GroupHeaderHeaderOuterBorder_Vertical" EndPoint="0,0.5" StartPoint="1,0.5">
                <GradientStop Color="#7FADBDD1" Offset="0"/>
                <GradientStop Color="#00ADBDD1" Offset="1"/>
            </LinearGradientBrush>
            <LinearGradientBrush x:Key="TimeRulerItemMajorTickStroke_Vertical" StartPoint="1,0.5" EndPoint="0,0.5">
                <GradientStop Color="#7FADBDD1" Offset="0"/>
                <GradientStop Color="#00ADBDD1" Offset="1"/>
            </LinearGradientBrush>
            <Thickness x:Key="TimeRulerItemMargin_Vertical">0 0 0 0</Thickness>
            <Thickness x:Key="TimeRulerItemPadding_Vertical">0 0 3 0</Thickness>
            <SolidColorBrush x:Key="TimeRulerLineStroke" Color="#7FADBDD1" />
            <SolidColorBrush x:Key="GroupHeaderBorderBrush_Today" Color="#FF839AB5" />
            <Thickness x:Key="HorizontalGroupHeaderTodayBorderThickness">2 0 2 2</Thickness>
            <SolidColorBrush x:Key="GroupHeaderHeaderOuterBorder_Today" Color="#FF839AB5" />
            <SolidColorBrush x:Key="GroupHeaderHeaderBackground_Today" Color="#7FD9E3F0" />
            <SolidColorBrush x:Key="GroupHeaderHeaderInnerBorder_Today" Color="Transparent" />
            <SolidColorBrush x:Key="GroupHeaderHeaderOuterBorder_VerticalToday" Color="#FF839AB5" />
            <SolidColorBrush x:Key="GroupHeaderHeaderBackground_VerticalToday" Color="#7FD9E3F0" />
            <SolidColorBrush x:Key="GroupHeaderHeaderInnerBorder_VerticalToday" Color="Transparent" />
            <Thickness x:Key="GroupHeaderTodayBorderThickness">2</Thickness>
            <SolidColorBrush x:Key="GroupHeaderBorderBrush" Color="#7FADBDD1" />
            <SolidColorBrush x:Key="HorizontalBottomLevelTodayForeground" Color="#FF6685AE" />
            <Thickness x:Key="VerticalGroupHeaderTodayBorderThickness">0 2 2 2</Thickness>
            <LinearGradientBrush x:Key="AppointmentItemBackground_Selected" EndPoint="0.5,1" StartPoint="0.5,0">
                <GradientStop Color="#FFDCEBFC"/>
                <GradientStop Color="#FFC1DBFC" Offset="1"/>
            </LinearGradientBrush>
            <SolidColorBrush x:Key="AppointmentItemOuterBorder_Selected" Color="#FF7DA2CE" />
            <LinearGradientBrush x:Key="AppointmentItemInnerBorder_Selected" EndPoint="0.5,1" StartPoint="0.5,0">
                <GradientStop Color="#FFEBF4FD"/>
                <GradientStop Color="#FFDBEAFD" Offset="1"/>
            </LinearGradientBrush>
            <LinearGradientBrush x:Key="AppointmentItemInnerBorder" EndPoint="0.5,1" StartPoint="0.5,0">
                <GradientStop Color="#FFFCFDFE"/>
                <GradientStop Color="#FFF2F7FE" Offset="1"/>
            </LinearGradientBrush>
            <LinearGradientBrush x:Key="AppointmentItemBackground_MouseOver" EndPoint="0.5,1" StartPoint="0.5,0">
                <GradientStop Color="#FFDCEBFC"/>
                <GradientStop Color="#FFC1DBFC" Offset="1"/>
            </LinearGradientBrush>
            <SolidColorBrush x:Key="AppointmentItemOuterBorder_MouseOver" Color="#FFB8D6FB" />
            <LinearGradientBrush x:Key="AppointmentItemInnerBorder_MouseOver" EndPoint="0.5,1" StartPoint="0.5,0">
                <GradientStop Color="#FFEBF4FD"/>
                <GradientStop Color="#FFDBEAFD" Offset="1"/>
            </LinearGradientBrush>
            <ImageSource x:Key="AppointmentItem_Recurrence">/Telerik.Windows.Controls.ScheduleView;component/Themes/Images/AppointmentException.png</ImageSource>
            <ImageSource x:Key="AppointmentItem_Exception">/Telerik.Windows.Controls.ScheduleView;component/Themes/Images/AppointmentRecurrence.png</ImageSource>
            <SolidColorBrush x:Key="AppointmentItemResizeGripBackground" Color="#FFDCEBFC" />
            <SolidColorBrush x:Key="AppointmentItemResizeGripStroke" Color="#FF839AB5" />
            <LinearGradientBrush x:Key="AppointmentItemDeleteIconStroke" EndPoint="0.5,1" StartPoint="0.5,0">
                <GradientStop Color="#FF4F637C" Offset="0"/>
                <GradientStop Color="#FF8CA0B9" Offset="1"/>
            </LinearGradientBrush>
            <LinearGradientBrush x:Key="AppointmentItemBackground" EndPoint="0.5,1" StartPoint="0.5,0">
                <GradientStop Color="#FFFAFBFD" Offset="0.004"/>
                <GradientStop Color="#FFEBF3FD" Offset="1"/>
            </LinearGradientBrush>
            <SolidColorBrush x:Key="AppointmentItemOuterBorder" Color="#FFB8D6FB" />
            <LinearGradientBrush x:Key="AppointmentResizeCueBackground" EndPoint="0.5,1" StartPoint="0.5,0">
                <GradientStop Color="#88DCEBFC"/>
                <GradientStop Color="#88C1DBFC" Offset="1"/>
            </LinearGradientBrush>
            <SolidColorBrush x:Key="AppointmentResizeCueBorderBrush" Color="#887DA2CE" />
            <LinearGradientBrush x:Key="AppointmentResizeCueTopLeftMarkStroke" StartPoint="0 0" EndPoint="1 1">
                <GradientStop Offset="0.33" Color="#FF4F637C" />
                <GradientStop Offset="1" Color="#004F637C" />
            </LinearGradientBrush>
            <LinearGradientBrush x:Key="AppointmentResizeCueBottomRightMarkStroke" StartPoint="1 1" EndPoint="0 0">
                <GradientStop Offset="0.33" Color="#FF4F637C" />
                <GradientStop Offset="1" Color="#004F637C" />
            </LinearGradientBrush>
            <LinearGradientBrush x:Key="AppointmentItemBackground_Drag" EndPoint="0.5,1" StartPoint="0.5,0">
                <GradientStop Color="#BBDCEBFC"/>
                <GradientStop Color="#BBC1DBFC" Offset="1"/>
            </LinearGradientBrush>
            <SolidColorBrush x:Key="AppointmentItemOuterBorder_Drag" Color="#FF7DA2CE" />
            <LinearGradientBrush x:Key="AppointmentItemInnerBorder_Drag" EndPoint="0.5,1" StartPoint="0.5,0">
                <GradientStop Color="#BBEBF4FD"/>
                <GradientStop Color="#BBDBEAFD" Offset="1"/>
            </LinearGradientBrush>
            <SolidColorBrush x:Key="DecorationRectangleBackground" Color="#99F5F9FF" />
            <SolidColorBrush x:Key="DecorationRectangleBackground_DragOver" Color="#CCF5F9FF" />
            <SolidColorBrush x:Key="DecorationRectangleOuterBorder_DragOver" Color="#FFB8D6FB" />
            <SolidColorBrush x:Key="DecorationRectangleInnerBorder_DragOver" Color="#00FFFFFF" />
            <SolidColorBrush x:Key="DecorationRectangleBackground_MouseOver" Color="#CCF5F9FF" />
            <SolidColorBrush x:Key="DecorationRectangleOuterBorder_MouseOver" Color="#FFB8D6FB" />
            <SolidColorBrush x:Key="DecorationRectangleInnerBorder_MouseOver" Color="#00FFFFFF" />
            <SolidColorBrush x:Key="DecorationRectangleBackground_Selected" Color="#7FD9E3F0" />
            <SolidColorBrush x:Key="DecorationRectangleOuterBorder_Selected" Color="#FF839AB5" />
            <SolidColorBrush x:Key="DecorationRectangleInnerBorder_Selected" Color="#00FFFFFF" />
            <SolidColorBrush x:Key="ViewModeButtonForeground" Color="#FF1E395B" />
            <SolidColorBrush x:Key="ViewModeButtonForeground_MouseOver" Color="#FF1E395B" />
            <SolidColorBrush x:Key="ViewModeButtonOuterBorder_MouseOver" Color="#FFC0CBDF" />
            <LinearGradientBrush x:Key="ViewModeButtonBackground_MouseOver" EndPoint="0.5,1" StartPoint="0.5,0">
                <GradientStop Color="#FFFDFEFF" Offset="0"/>
                <GradientStop Color="#FFDDE9F7" Offset="1"/>
                <GradientStop Color="#FFE6F0FA" Offset="0.5"/>
                <GradientStop Color="#FFDCE6F4" Offset="0.5"/>
            </LinearGradientBrush>
            <LinearGradientBrush x:Key="ViewModeButtonInnerBorder_MouseOver" EndPoint="0.5,1" StartPoint="0.5,0">
                <GradientStop Color="#CCFAFCFD" Offset="0"/>
                <GradientStop Color="#CCE4EFFB" Offset="1"/>
            </LinearGradientBrush>
            <SolidColorBrush x:Key="ViewModeButtonForeground_Pressed" Color="#FF000000" />
            <SolidColorBrush x:Key="ViewModeButtonOuterBorder_Pressed" Color="#FFC0CBD9" />
            <LinearGradientBrush x:Key="ViewModeButtonBackground_Pressed" EndPoint="0.5,1" StartPoint="0.5,0">
                <GradientStop Color="#FFC0CBD9"/>
                <GradientStop Color="#4CC0CBD9" Offset="0.5"/>
            </LinearGradientBrush>
            <SolidColorBrush x:Key="ViewModeButtonInnerBorder_Pressed" Color="#00FFFFFF" />
            <SolidColorBrush x:Key="ViewModeButtonOuterBorder" Color="#00FFFFFF" />
            <SolidColorBrush x:Key="ViewModeButtonBackground" Color="#00FFFFFF" />
            <SolidColorBrush x:Key="ViewModeButtonInnerBorder" Color="#00FFFFFF" />
            <SolidColorBrush x:Key="NavigationIconForeground_Highlighted" Color="#FF1E395B" />
            <SolidColorBrush x:Key="NavigationIconBackground_Highlighted" Color="#00FFFFFF" />
            <SolidColorBrush x:Key="NavigationIconBackground_Normal" Color="#00FFFFFF" />
            <SolidColorBrush x:Key="NavigationIconForeground_Normal" Color="#FF1E395B" />
            <ControlTemplate x:Key="CalendarIcon" TargetType="ContentControl">
                <Grid>
                    <Path x:Name="CalendarIconBackground" Width="7" Height="7" Margin="0 1 0 0" Stroke="{TemplateBinding Background}" Data="M0,0.5 L7,0.5 M0,2.5 L7,2.5 M0,4.5 L7,4.5 M0,6.5 L7,6.5 M0.5,0 L0.5,7 M2.5,0 L2.5,7 M4.5,0 L4.5,7 M6.5,0 L6.5,7" />
                    <Path x:Name="CalendarIconForeground" Width="7" Height="7" Margin="0 0 0 1" Stroke="{TemplateBinding Foreground}" Data="M0,0.5 L7,0.5 M0,2.5 L7,2.5 M0,4.5 L7,4.5 M0,6.5 L7,6.5 M0.5,0 L0.5,7 M2.5,0 L2.5,7 M4.5,0 L4.5,7 M6.5,0 L6.5,7" />
                </Grid>
            </ControlTemplate>
            <SolidColorBrush x:Key="NavigationIntervalForegroundRear" Color="#00FFFFFF" />
            <SolidColorBrush x:Key="NavigationIntervalForegroundFront" Color="#FF1E395B" />
            <SolidColorBrush x:Key="SchedulerHeaderOuterBorder" Color="#FFA0AFC3" />
            <LinearGradientBrush x:Key="SchedulerHeaderBackground" EndPoint="0.5,1" StartPoint="0.5,0">
                <GradientStop Color="#FFFDFEFF" Offset="0"/>
                <GradientStop Color="#FFDDE9F7" Offset="1"/>
                <GradientStop Color="#FFE6F0FA" Offset="0.5"/>
                <GradientStop Color="#FFDCE6F4" Offset="0.5"/>
            </LinearGradientBrush>
            <LinearGradientBrush x:Key="SchedulerHeaderInnerBorder" EndPoint="0.5,1" StartPoint="0.5,0">
                <GradientStop Color="#FFFAFCFD" Offset="0"/>
                <GradientStop Color="#FFE4EFFB" Offset="1"/>
            </LinearGradientBrush>
            <LinearGradientBrush x:Key="RedCategoryBrush" EndPoint="0.5,1" StartPoint="0.5,0">
                <GradientStop Color="#FFE8807D" Offset="0" />
                <GradientStop Color="#FFF7D4D2" Offset="1" />
            </LinearGradientBrush>
            <LinearGradientBrush x:Key="GreenCategoryBrush" EndPoint="0.5,1" StartPoint="0.5,0">
                <GradientStop Color="#FF99CC66" Offset="0" />
                <GradientStop Color="#FFCCFF99" Offset="1" />
            </LinearGradientBrush>
            <LinearGradientBrush x:Key="BlueCategoryBrush" EndPoint="0.5,1" StartPoint="0.5,0">
                <GradientStop Color="#FF6C92BF" Offset="0" />
                <GradientStop Color="#FFC3D6EC" Offset="1" />
            </LinearGradientBrush>
            <LinearGradientBrush x:Key="PurpleCategoryBrush" EndPoint="0.5,1" StartPoint="0.5,0">
                <GradientStop Color="#FFB687B8" Offset="0" />
                <GradientStop Color="#FFE9D7EB" Offset="1" />
            </LinearGradientBrush>
            <LinearGradientBrush x:Key="YellowCategoryBrush" EndPoint="0.5,1" StartPoint="0.5,0">
                <GradientStop Color="#FFFFD351" Offset="0" />
                <GradientStop Color="#FFFFFF99" Offset="1" />
            </LinearGradientBrush>
            <LinearGradientBrush x:Key="OliveCategoryBrush" EndPoint="0.5,1" StartPoint="0.5,0">
                <GradientStop Color="#FFA3AD70" Offset="0" />
                <GradientStop Color="#FFE5F0CA" Offset="1" />
            </LinearGradientBrush>
            <LinearGradientBrush x:Key="PinkCategoryBrush" EndPoint="0.5,1" StartPoint="0.5,0">
                <GradientStop Color="#FFCE66A2" Offset="0" />
                <GradientStop Color="#FFF8A2D3" Offset="1" />
            </LinearGradientBrush>
            <LinearGradientBrush x:Key="OrangeCategoryBrush" EndPoint="0.5,1" StartPoint="0.5,0">
                <GradientStop Color="#FFF57238" Offset="0" />
                <GradientStop Color="#FFFFCC00" Offset="1" />
            </LinearGradientBrush>
            <LinearGradientBrush x:Key="FreeMarkerBrush" EndPoint="0.5,1" StartPoint="0.5,0">
                <GradientStop Color="#FF00C800" Offset="0" />
                <GradientStop Color="#FF1E841E" Offset="1" />
            </LinearGradientBrush>
            <LinearGradientBrush EndPoint="9,9" x:Key="TentativeMarkerBrush" StartPoint="2,2" SpreadMethod="Repeat" MappingMode="Absolute">
                <GradientStop Color="#FF05529D" Offset="0" />
                <GradientStop Color="#FF05529D" Offset="1" />
                <GradientStop Color="White" Offset="0.25" />
                <GradientStop Color="#FF05529D" Offset="0.5" />
                <GradientStop Color="White" Offset="0.741" />
            </LinearGradientBrush>
            <LinearGradientBrush x:Key="BusyMarkerBrush" EndPoint="0.5,1" StartPoint="0.5,0">
                <GradientStop Color="#FFFF0606" />
                <GradientStop Color="#FFBF0303" Offset="1" />
            </LinearGradientBrush>
            <LinearGradientBrush x:Key="OutOfOfficeMarkerBrush" EndPoint="0.5,1" StartPoint="0.5,0">
                <GradientStop Color="#FFF1A202" Offset="1" />
                <GradientStop Color="#FFFFF502" />
            </LinearGradientBrush>
            <LinearGradientBrush x:Key="RadScheduleBackground" EndPoint="0.5,1" StartPoint="0.5,0">
                <GradientStop Color="#FFE6EEF8" Offset="0"/>
                <GradientStop Color="#FFE6EFF9" Offset="1"/>
                <GradientStop Color="White" Offset="0.25"/>
                <GradientStop Color="White" Offset="0.75"/>
            </LinearGradientBrush>
            <SolidColorBrush x:Key="RadScheduleBorderBrush" Color="#00FFFFFF" />
             
            <SolidColorBrush x:Key="MajorTickColor" Color="#FF5580A9" />
            <SolidColorBrush x:Key="MinorTickColor" Color="#FF5580A9" />
            <SolidColorBrush x:Key="TimeRulerItemMajorTickStroke" Color="#FF5580A9" />
            <SolidColorBrush x:Key="TimeRulerItemMinorTickStroke" Color="#FF5580A9" />
     
     
            <Style x:Key="TimeRulerGroupItemBaseStyle" TargetType="RadSchedulerView:TimeRulerItemBase">
                <Setter Property="Foreground" Value="{StaticResource RadScheduleForeground}" />
                <Setter Property="Background" Value="{StaticResource GroupHeaderHeaderBackground}" />
                <Setter Property="BorderBrush" Value="{StaticResource GroupHeaderHeaderOuterBorder}" />
                <Setter Property="BorderThickness" Value="1" />
                <Setter Property="HorizontalContentAlignment" Value="Left" />
                <Setter Property="VerticalContentAlignment" Value="Top" />
                <Setter Property="ContentTemplate">
                    <Setter.Value>
                        <DataTemplate>
                            <TextBlock Margin="6 3" Text="{Binding DateTime, StringFormat='dd MMMM yyyy'}" />
                        </DataTemplate>
                    </Setter.Value>
                </Setter>
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="RadSchedulerView:TimeRulerItemBase">
                            <Grid>
                                <Border x:Name="HeaderVisual" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
                                    <Border BorderBrush="{StaticResource GroupHeaderHeaderInnerBorder}" BorderThickness="1" />
                                </Border>
                                <ContentPresenter Margin="{TemplateBinding Padding}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
                            </Grid>
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Style>
     
            <Style x:Key="TimeRulerItemMajorTickBaseStyle" TargetType="RadSchedulerView:TimeRulerItem">
                <Setter Property="Foreground" Value="{StaticResource MajorTickColor}" />
                <Setter Property="Background" Value="{x:Null}" />
                <Setter Property="BorderBrush" Value="{StaticResource MajorTickColor}" />
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="RadSchedulerView:TimeRulerItem">
                            <Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
                                <ContentPresenter Margin="{TemplateBinding Padding}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
                            </Border>
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
                <Setter Property="ContentTemplate">
                    <Setter.Value>
                        <DataTemplate>
                            <Grid>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="Auto" />
                                    <ColumnDefinition Width="18" />
                                    <ColumnDefinition Width="18" />
                                </Grid.ColumnDefinitions>
                                <TextBlock Grid.Column="0" Text="{Binding DateTime, StringFormat=' h'}" HorizontalAlignment="Right" />
                                <TextBlock Grid.Column="1" Text="{Binding DateTime, StringFormat=':mm'}" HorizontalAlignment="Left" />
                                <TextBlock Grid.Column="2" FontSize="8" Margin="2 1 0 0"  Text="{Binding DateTime, StringFormat='tt'}" HorizontalAlignment="Left" />
                            </Grid>
                        </DataTemplate>
                    </Setter.Value>
                </Setter>
            </Style>
     
            <Style x:Key="TimeRulerItemMinorTickBaseStyle" TargetType="RadSchedulerView:TimeRulerItem">
                <Setter Property="Foreground" Value="{StaticResource MinorTickColor}" />
                <Setter Property="Background" Value="{x:Null}" />
                <Setter Property="BorderBrush" Value="{StaticResource MinorTickColor}" />
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="RadSchedulerView:TimeRulerItem">
                            <Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
                                <ContentPresenter Width="36" Height="18" Margin="{TemplateBinding Padding}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
                            </Border>
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
                <Setter Property="ContentTemplate">
                    <Setter.Value>
                        <DataTemplate>
                            <Grid>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="18" />
                                    <ColumnDefinition Width="18" />
                                </Grid.ColumnDefinitions>
                                <TextBlock Grid.Column="0" Text="{Binding DateTime, StringFormat=':mm'}" HorizontalAlignment="Left" />
                            </Grid>
                        </DataTemplate>
                    </Setter.Value>
                </Setter>
            </Style>
     
            <Style x:Key="TimeRulerLineBaseStyle" TargetType="RadSchedulerView:TimeRulerLine">
                <Setter Property="Background" Value="{x:Null}" />
                <Setter Property="BorderBrush" Value="{StaticResource TimeRulerLineStroke}" />
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="RadSchedulerView:TimeRulerLine">
                            <Rectangle Fill="{TemplateBinding BorderBrush}" MinWidth="1" MinHeight="1" />
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Style>
     
            <Style x:Key="MonthGoToDayButtonStyle" TargetType="telerik:RadButton">
                <Setter Property="Foreground" Value="{StaticResource MonthViewTimeRulerItemForeground_Normal}" />
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="telerik:RadButton">
                            <Border x:Name="OuterBorder" BorderBrush="{StaticResource MonthViewTimeRulerItemOuterBorder}" Background="{StaticResource MonthViewTimeRulerItemBackground}" BorderThickness="1">
     
                                <VisualStateManager.VisualStateGroups>
                                    <VisualStateGroup x:Name="CommonStates">
                                        <VisualState x:Name="Normal" />
                                        <VisualState x:Name="MouseOver">
                                            <Storyboard>
                                                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="BorderBrush">
                                                    <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource MonthViewTimeRulerItemOuterBorder_MouseOver}" />
                                                </ObjectAnimationUsingKeyFrames>
                                                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="Background">
                                                    <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource MonthViewTimeRulerItemBackground_MouseOver}" />
                                                </ObjectAnimationUsingKeyFrames>
                                                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="BorderBrush">
                                                    <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource MonthViewTimeRulerItemInnerBorder_MouseOver}" />
                                                </ObjectAnimationUsingKeyFrames>
                                                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Content" Storyboard.TargetProperty="Foreground">
                                                    <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource MonthViewTimeRulerItemForeground_MouseOver}" />
                                                </ObjectAnimationUsingKeyFrames>
                                            </Storyboard>
                                        </VisualState>
                                        <VisualState x:Name="Pressed">
                                            <Storyboard>
                                                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="BorderBrush">
                                                    <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource MonthViewTimeRulerItemOuterBorder_Pressed}" />
                                                </ObjectAnimationUsingKeyFrames>
                                                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="Background">
                                                    <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource MonthViewTimeRulerItemBackground_Pressed}" />
                                                </ObjectAnimationUsingKeyFrames>
                                                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="BorderBrush">
                                                    <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource MonthViewTimeRulerItemInnerBorder_Pressed}" />
                                                </ObjectAnimationUsingKeyFrames>
                                            </Storyboard>
                                        </VisualState>
                                    </VisualStateGroup>
                                </VisualStateManager.VisualStateGroups>
     
                                <Border x:Name="InnerBorder" BorderBrush="{StaticResource MonthViewTimeRulerItemBackground}" BorderThickness="1">
                                    <ContentControl x:Name="Content" Content="{TemplateBinding Content}" Margin="-2" />
                                </Border>
                            </Border>
     
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Style>
            <Style x:Key="MonthGoToDayTodayButtonStyle" TargetType="telerik:RadButton">
                <Setter Property="Foreground" Value="{StaticResource MonthViewTimeRulerItemForeground_Today}" />
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="telerik:RadButton">
                            <Border x:Name="OuterBorder" BorderBrush="{StaticResource MonthViewTimeRulerItemOuterBorder_Today}" Background="{StaticResource MonthViewTimeRulerItemBackground_Today}" BorderThickness="1">
     
                                <VisualStateManager.VisualStateGroups>
                                    <VisualStateGroup x:Name="CommonStates">
                                        <VisualState x:Name="Normal" />
                                        <VisualState x:Name="MouseOver">
                                            <Storyboard>
                                                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="BorderBrush">
                                                    <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource MonthViewTimeRulerItemOuterBorder_TodayMouseOver}" />
                                                </ObjectAnimationUsingKeyFrames>
                                                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="Background">
                                                    <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource MonthViewTimeRulerItemBackground_TodayMouseOver}" />
                                                </ObjectAnimationUsingKeyFrames>
                                                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="BorderBrush">
                                                    <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource MonthViewTimeRulerItemInnerBorder_TodayMouseOver}" />
                                                </ObjectAnimationUsingKeyFrames>
                                            </Storyboard>
                                        </VisualState>
                                        <VisualState x:Name="Pressed">
                                            <Storyboard>
                                                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="BorderBrush">
                                                    <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource MonthViewTimeRulerItemOuterBorder_TodayPressed}" />
                                                </ObjectAnimationUsingKeyFrames>
                                                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="Background">
                                                    <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource MonthViewTimeRulerItemBackground_TodayPressed}" />
                                                </ObjectAnimationUsingKeyFrames>
                                                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="BorderBrush">
                                                    <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource MonthViewTimeRulerItemInnerBorder_TodayPressed}" />
                                                </ObjectAnimationUsingKeyFrames>
                                            </Storyboard>
                                        </VisualState>
                                    </VisualStateGroup>
                                </VisualStateManager.VisualStateGroups>
     
                                <Border x:Name="InnerBorder" BorderBrush="{StaticResource MonthViewTimeRulerItemInnerBorder_Today}" BorderThickness="1">
                                    <ContentPresenter Margin="-2" />
                                </Border>
                            </Border>
     
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Style>
            <Style x:Key="ExpandMonthViewButtonStyle" TargetType="telerik:RadToggleButton">
                <Setter Property="Foreground" Value="{StaticResource MonthViewTimeRulerItemForeground_Normal}" />
     
                <Setter Property="IsTabStop" Value="False" />
     
                <Setter Property="Margin" Value="3 2 3 4" />
                <Setter Property="MinWidth" Value="13" />
                <Setter Property="MinHeight" Value="13" />
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="telerik:RadToggleButton">
                            <Grid x:Name="Root">
     
                                <VisualStateManager.VisualStateGroups>
                                    <VisualStateGroup x:Name="CommonStates">
                                        <VisualState x:Name="Normal" />
                                        <VisualState x:Name="MouseOver">
                                            <Storyboard>
                                                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="CheckOuterBorder" Storyboard.TargetProperty="BorderBrush">
                                                    <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource MonthViewExpandOuterBorder_MouseOver}" />
                                                </ObjectAnimationUsingKeyFrames>
                                                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="CheckOuterBorder" Storyboard.TargetProperty="Background">
                                                    <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource MonthViewExpandButtonBackground_MouseOver}" />
                                                </ObjectAnimationUsingKeyFrames>
                                                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="CheckInnerBorder" Storyboard.TargetProperty="Stroke">
                                                    <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource MonthViewExpandInnerBorder_MouseOver}" />
                                                </ObjectAnimationUsingKeyFrames>
                                                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Expand" Storyboard.TargetProperty="Fill">
                                                    <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource MonthViewExpandIconStroke_MouseOver}" />
                                                </ObjectAnimationUsingKeyFrames>
                                                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Collapse" Storyboard.TargetProperty="Fill">
                                                    <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource MonthViewExpandIconStroke_MouseOver}" />
                                                </ObjectAnimationUsingKeyFrames>
                                            </Storyboard>
                                        </VisualState>
                                        <VisualState x:Name="Pressed">
                                            <Storyboard>
                                                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="CheckOuterBorder" Storyboard.TargetProperty="BorderBrush">
                                                    <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource MonthViewExpandOuterBorder_Pressed}" />
                                                </ObjectAnimationUsingKeyFrames>
                                                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="CheckOuterBorder" Storyboard.TargetProperty="Background">
                                                    <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource MonthViewExpandButtonBackground_Pressed}" />
                                                </ObjectAnimationUsingKeyFrames>
                                                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="CheckInnerBorder" Storyboard.TargetProperty="Stroke">
                                                    <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource MonthViewExpandInnerBorder_Pressed}" />
                                                </ObjectAnimationUsingKeyFrames>
                                                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Expand" Storyboard.TargetProperty="Fill">
                                                    <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource MonthViewExpandIconStroke_Pressed}" />
                                                </ObjectAnimationUsingKeyFrames>
                                                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Collapse" Storyboard.TargetProperty="Fill">
                                                    <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource MonthViewExpandIconStroke_Pressed}" />
                                                </ObjectAnimationUsingKeyFrames>
                                            </Storyboard>
                                        </VisualState>
                                    </VisualStateGroup>
                                    <VisualStateGroup x:Name="CheckStates">
                                        <VisualState x:Name="Checked">
                                            <Storyboard>
                                                <ObjectAnimationUsingKeyFrames Duration="0:0:0.0" Storyboard.TargetName="Collapse" Storyboard.TargetProperty="Visibility">
                                                    <DiscreteObjectKeyFrame KeyTime="0:0:0.0">
                                                        <DiscreteObjectKeyFrame.Value>
                                                            <Visibility>Visible</Visibility>
                                                        </DiscreteObjectKeyFrame.Value>
                                                    </DiscreteObjectKeyFrame>
                                                </ObjectAnimationUsingKeyFrames>
                                                <ObjectAnimationUsingKeyFrames Duration="0:0:0.0" Storyboard.TargetName="Expand" Storyboard.TargetProperty="Visibility">
                                                    <DiscreteObjectKeyFrame KeyTime="0:0:0.0">
                                                        <DiscreteObjectKeyFrame.Value>
                                                            <Visibility>Collapsed</Visibility>
                                                        </DiscreteObjectKeyFrame.Value>
                                                    </DiscreteObjectKeyFrame>
                                                </ObjectAnimationUsingKeyFrames>
                                            </Storyboard>
                                        </VisualState>
                                        <VisualState x:Name="Unchecked"/>
                                        <VisualState x:Name="Indeterminate">
                                            <Storyboard>
                                                <ObjectAnimationUsingKeyFrames Duration="0:0:0.0" Storyboard.TargetName="Root" Storyboard.TargetProperty="Visibility">
                                                    <DiscreteObjectKeyFrame KeyTime="0:0:0.0">
                                                        <DiscreteObjectKeyFrame.Value>
                                                            <Visibility>Collasped</Visibility>
                                                        </DiscreteObjectKeyFrame.Value>
                                                    </DiscreteObjectKeyFrame>
                                                </ObjectAnimationUsingKeyFrames>
                                            </Storyboard>
                                        </VisualState>
                                    </VisualStateGroup>
                                </VisualStateManager.VisualStateGroups>
     
                                <Border x:Name="CheckOuterBorder" CornerRadius="1" BorderThickness="1" BorderBrush="{StaticResource MonthViewExpandOuterBorder}"
                                    Background="{StaticResource MonthViewExpandButtonBackground}">
                                    <Rectangle x:Name="CheckInnerBorder"  Stroke="{StaticResource MonthViewExpandInnerBorder}" />
                                </Border>
     
                                <Path x:Name="Expand" Data="M0,0 L7,0 L3.5,4 Z" Fill="{StaticResource MonthViewExpandIconStroke}" HorizontalAlignment="Center" VerticalAlignment="Center" />
                                <Path x:Name="Collapse" Visibility="Collapsed" Data="M0,4 L7,4 L3.5,0 Z" Fill="{StaticResource MonthViewExpandIconStroke}" HorizontalAlignment="Center" VerticalAlignment="Center" />
                            </Grid>
     
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Style>
     
            <DataTemplate x:Key="MonthGroupTemplate">
                <TextBlock Text="{Binding DateTime, StringFormat=dddd}" Margin="6 2" />
            </DataTemplate>
            <DataTemplate x:Key="MonthItemTemplate">
                <TextBlock Text="{Binding DateTime, StringFormat=dd}" Margin="6 2" />
            </DataTemplate>
             
            <!-- End Theme -->
            <DataTemplate x:Key="ToolTipTemplate">
                <StackPanel Orientation="Horizontal">
                    <TextBlock TextWrapping="Wrap" Text="{Binding Appointment.Resources[2].ResourceName}"/>
                </StackPanel>
            </DataTemplate>
             
            <DataTemplate x:Key="AppointmentTemplate">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="*"/>
     
                    </Grid.RowDefinitions>
                    <TextBlock Grid.Row="0" Text="{Binding Appointment.Resources[1].ResourceName}"
                               HorizontalAlignment="Left"
                               VerticalAlignment="Top" FontSize="13" Foreground="Black" FontWeight="Bold" />
                    <TextBlock Grid.Row="1" Text="{Binding Appointment.Subject}"
                               HorizontalAlignment="Left"
                               VerticalAlignment="Top" FontSize="9" Foreground="Black" FontWeight="Bold"/>
                    <TextBlock Grid.Row="2" Text="{Binding Appointment.Body}"
                               HorizontalAlignment="Left"
                               VerticalAlignment="Top" FontSize="9" Foreground="Black" FontWeight="Bold" />
                    <TextBlock Grid.Row="3" Text="{Binding Appointment.Start}"
                               HorizontalAlignment="Left"
                               VerticalAlignment="Top" FontSize="9" Foreground="Black" FontWeight="Bold"/>
                </Grid>
            </DataTemplate>
     
            <RadSchedulerView:OrientedGroupHeaderContentTemplateSelector x:Key="GroupHeaderContentTemplateSelector">
                <!-- Default templates: -->
                <RadSchedulerView:OrientedGroupHeaderContentTemplateSelector.HorizontalMonthViewDateTemplate>
                    <DataTemplate>
                        <TextBlock Margin="4,1" Text="{Binding Name, StringFormat=%d MMM}"/>
                    </DataTemplate>
                </RadSchedulerView:OrientedGroupHeaderContentTemplateSelector.HorizontalMonthViewDateTemplate>
                <RadSchedulerView:OrientedGroupHeaderContentTemplateSelector.HorizontalDayViewDateTemplate>
                    <DataTemplate>
                        <TextBlock Margin="4,1" Text="{Binding Name, StringFormat=dd.MM.yyyy}"/>
                    </DataTemplate>
                </RadSchedulerView:OrientedGroupHeaderContentTemplateSelector.HorizontalDayViewDateTemplate>
                <RadSchedulerView:OrientedGroupHeaderContentTemplateSelector.HorizontalWeekViewDateTemplate>
                    <DataTemplate>
                        <TextBlock Margin="4,1" Text="{Binding Name, StringFormat=dd dddd}"/>
                    </DataTemplate>
                </RadSchedulerView:OrientedGroupHeaderContentTemplateSelector.HorizontalWeekViewDateTemplate>
                <RadSchedulerView:OrientedGroupHeaderContentTemplateSelector.HorizontalResourceTemplate>
                    <DataTemplate>
                        <Border Background="{Binding Name.Brush}" Height="50" Margin="1 1 1 0">
                            <StackPanel Margin="5 5 5 5" Orientation="Horizontal">
                                <StackPanel Orientation="Vertical">
                                    <TextBlock Foreground="Black" FontWeight="ExtraBold" FontSize="12" Margin="0 0 0 5" Text="{Binding Name.DisplayName}" />
                                </StackPanel>
                            </StackPanel>
                        </Border>
                    </DataTemplate>
                </RadSchedulerView:OrientedGroupHeaderContentTemplateSelector.HorizontalResourceTemplate>
                <RadSchedulerView:OrientedGroupHeaderContentTemplateSelector.VerticalWeekViewDateTemplate>
                    <DataTemplate>
                        <telerik:LayoutTransformControl>
                            <telerik:LayoutTransformControl.LayoutTransform>
                                <RotateTransform Angle="-90" />
                            </telerik:LayoutTransformControl.LayoutTransform>
                            <TextBlock Margin="1,4" Text="{Binding Name, StringFormat=dd dddd}" VerticalAlignment="Top" />
                        </telerik:LayoutTransformControl>
                    </DataTemplate>
                </RadSchedulerView:OrientedGroupHeaderContentTemplateSelector.VerticalWeekViewDateTemplate>
                <RadSchedulerView:OrientedGroupHeaderContentTemplateSelector.VerticalDayViewDateTemplate>
                    <DataTemplate>
                        <telerik:LayoutTransformControl>
                            <telerik:LayoutTransformControl.LayoutTransform>
                                <RotateTransform Angle="-90" />
                            </telerik:LayoutTransformControl.LayoutTransform>
                            <TextBlock Margin="1,4" Text="{Binding Name, StringFormat=dd.MM.yyyy}" VerticalAlignment="Top" />
                        </telerik:LayoutTransformControl>
                    </DataTemplate>
                </RadSchedulerView:OrientedGroupHeaderContentTemplateSelector.VerticalDayViewDateTemplate>
     
                <RadSchedulerView:OrientedGroupHeaderContentTemplateSelector.VerticalMonthViewDateTemplate>
                    <DataTemplate>
                        <telerik:LayoutTransformControl>
                            <telerik:LayoutTransformControl.LayoutTransform>
                                <RotateTransform Angle="-90" />
                            </telerik:LayoutTransformControl.LayoutTransform>
                            <TextBlock Margin="1,4" Text="{Binding Name, StringFormat=%d MMM}" VerticalAlignment="Top" />
                        </telerik:LayoutTransformControl>
                    </DataTemplate>
                </RadSchedulerView:OrientedGroupHeaderContentTemplateSelector.VerticalMonthViewDateTemplate>
                <RadSchedulerView:OrientedGroupHeaderContentTemplateSelector.VerticalResourceTemplate>
                    <DataTemplate>
                        <Border Background="{Binding Name.Brush}" Width="80" Margin="0 0 0 0">
                            <StackPanel Margin="7 6 7 6">
                                <TextBlock  Foreground="Black" FontWeight="ExtraBold" FontSize="14"  Margin="0 4"
                                            Text="{Binding Name.DisplayName}" />
                            </StackPanel>
                        </Border>
                    </DataTemplate>
                </RadSchedulerView:OrientedGroupHeaderContentTemplateSelector.VerticalResourceTemplate>
            </RadSchedulerView:OrientedGroupHeaderContentTemplateSelector>
     
            <!-- Highlights -->
            <Style x:Key="HighlightItemStyle" TargetType="RadSchedulerView:HighlightItem">
                <Setter Property="BorderThickness" Value="1" />
                <Setter Property="BorderBrush" Value="{x:Null}" />
                <Setter Property="Background" Value="{StaticResource DecorationRectangleBackground}" />
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="RadSchedulerView:HighlightItem">
                            <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}">
                            </Border>
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Style>
            <Style TargetType="RadSchedulerView:HighlightItem" BasedOn="{StaticResource HighlightItemStyle}" />
            <Style x:Key="DragDropHighlightStyle" TargetType="RadSchedulerView:HighlightItem">
                <Setter Property="Background" Value="{StaticResource DecorationRectangleBackground_DragOver}" />
                <Setter Property="BorderBrush" Value="{StaticResource DecorationRectangleOuterBorder_DragOver}" />
                <Setter Property="BorderThickness" Value="1" />
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate>
                            <Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
                                <Grid>
                                    <Border BorderBrush="{StaticResource DecorationRectangleInnerBorder_DragOver}" BorderThickness="1" />
                                    <Path Width="8" Height="8" Margin="-2" HorizontalAlignment="Left" VerticalAlignment="Top"  Stroke="{StaticResource AppointmentResizeCueTopLeftMarkStroke}">
                                        <Path.Data>
                                            <GeometryGroup>
                                                <EllipseGeometry RadiusX="2" RadiusY="2" Center="2 2" />
                                                <LineGeometry StartPoint="3 3" EndPoint="8 8" />
                                            </GeometryGroup>
                                        </Path.Data>
                                    </Path>
                                    <TextBlock x:Name="StartTextBox" Margin="4 2" Foreground="{StaticResource RadScheduleForeground}" HorizontalAlignment="Left" VerticalAlignment="Top" Text="{Binding Start,StringFormat=t}" />
                                    <Path Width="8" Height="8" Margin="-2" HorizontalAlignment="Right" VerticalAlignment="Bottom"  Stroke="{StaticResource AppointmentResizeCueBottomRightMarkStroke}">
                                        <Path.Data>
                                            <GeometryGroup>
                                                <EllipseGeometry RadiusX="2" RadiusY="2" Center="6 6" />
                                                <LineGeometry StartPoint="0 0" EndPoint="5 5" />
                                            </GeometryGroup>
                                        </Path.Data>
                                    </Path>
                                    <TextBlock x:Name="EndTextBox" Margin="4 2" Foreground="{StaticResource RadScheduleForeground}" HorizontalAlignment="Right" VerticalAlignment="Bottom" Text="{Binding End,StringFormat=t}" />
                                </Grid>
                            </Border>
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Style>
            <Style x:Key="MouseOverHighlightStyle" TargetType="RadSchedulerView:HighlightItem">
                <Setter Property="Background" Value="{StaticResource DecorationRectangleBackground_MouseOver}" />
                <Setter Property="BorderBrush" Value="{StaticResource DecorationRectangleOuterBorder_MouseOver}" />
                <Setter Property="BorderThickness" Value="1" />
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate>
                            <Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
                                <Border BorderBrush="{StaticResource DecorationRectangleInnerBorder_MouseOver}" BorderThickness="1" />
                            </Border>
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Style>
            <Style x:Key="SelectionHighlightStyle" TargetType="RadSchedulerView:HighlightItem">
                <Setter Property="Background" Value="{StaticResource DecorationRectangleBackground_Selected}" />
                <Setter Property="BorderBrush" Value="{StaticResource DecorationRectangleOuterBorder_Selected}" />
                <Setter Property="BorderThickness" Value="1" />
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate>
                            <Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
                                <Border BorderBrush="{StaticResource DecorationRectangleInnerBorder_Selected}" BorderThickness="1" />
                            </Border>
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Style>
     
            <RadSchedulerView:SpecialSlotStyleSelector x:Key="SpecialSlotStyleSelector">
                <RadSchedulerView:SpecialSlotStyleSelector.DefaultStyle>
                    <Style TargetType="RadSchedulerView:HighlightItem" BasedOn="{StaticResource HighlightItemStyle}">
                        <Setter Property="BorderThickness" Value="0" />
                        <Setter Property="Background" Value="{StaticResource SpecialSlotBackground}" />
                    </Style>
                    </RadSchedulerView:SpecialSlotStyleSelector.DefaultStyle>
                <RadSchedulerView:SpecialSlotStyleSelector.ReadOnlyStyle>
                        <Style TargetType="RadSchedulerView:HighlightItem" BasedOn="{StaticResource HighlightItemStyle}">
                        <Setter Property="BorderThickness" Value="0" />
                        <Setter Property="Background" Value="{StaticResource SpecialSlotBackground_ReadOnly}" />
                    </Style>
                </RadSchedulerView:SpecialSlotStyleSelector.ReadOnlyStyle>
                </RadSchedulerView:SpecialSlotStyleSelector>
     
            <RadSchedulerView:OrientedTimeRulerItemStyleSelector x:Key="TimeRulerItemStyleSelector">
     
     
                <RadSchedulerView:OrientedTimeRulerItemStyleSelector.MonthViewGroupStyle>
                    <Style TargetType="RadSchedulerView:TimeRulerMonthViewGroupItem">
                        <Setter Property="Foreground" Value="{StaticResource TimeRulerGroupItemForeground}" />
                        <Setter Property="Background" Value="{x:Null}" />
                        <Setter Property="BorderBrush" Value="{x:Null}" />
                        <Setter Property="BorderThickness" Value="0" />
                        <Setter Property="Template">
                            <Setter.Value>
                                <ControlTemplate TargetType="RadSchedulerView:TimeRulerMonthViewGroupItem">
                                    <Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
                                        <ContentPresenter Margin="{TemplateBinding Padding}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
                                    </Border>
                                </ControlTemplate>
                            </Setter.Value>
                        </Setter>
                        <Setter Property="ContentTemplate" Value="{StaticResource MonthGroupTemplate}" />
                    </Style>
                </RadSchedulerView:OrientedTimeRulerItemStyleSelector.MonthViewGroupStyle>
                <RadSchedulerView:OrientedTimeRulerItemStyleSelector.MonthViewTickStyle>
                    <Style TargetType="RadSchedulerView:TimeRulerMonthViewItem">
                        <Setter Property="Foreground" Value="{StaticResource MonthViewTimeRulerItemForeground_Normal}" />
                        <Setter Property="Margin" Value="0 -1 -1 0" />
                        <Setter Property="Template">
                            <Setter.Value>
                                <ControlTemplate TargetType="RadSchedulerView:TimeRulerMonthViewItem">
                                    <Grid>
                                        <telerik:RadButton Padding="0" VerticalAlignment="Top" Height="22" Style="{StaticResource MonthGoToDayButtonStyle}" Command="RadSchedulerView:RadScheduleViewCommands.SetDayViewMode" CommandParameter="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Content.DateTime.Date}">
                                            <ContentPresenter Margin="{TemplateBinding Padding}" />
                                        </telerik:RadButton>
                                        <telerik:RadToggleButton Visibility="{Binding ExpandButtonVisibility}" IsChecked="{Binding IsExpanded, Mode=TwoWay}" Style="{StaticResource ExpandMonthViewButtonStyle}" HorizontalAlignment="Right" VerticalAlignment="Bottom" />
                                    </Grid>
                                </ControlTemplate>
                            </Setter.Value>
                        </Setter>
                        <Setter Property="ContentTemplate" Value="{StaticResource MonthItemTemplate}" />
                    </Style>
                </RadSchedulerView:OrientedTimeRulerItemStyleSelector.MonthViewTickStyle>
                <RadSchedulerView:OrientedTimeRulerItemStyleSelector.MonthViewTodayTickStyle>
                    <Style TargetType="RadSchedulerView:TimeRulerMonthViewItem">
                        <Setter Property="Foreground" Value="{StaticResource MonthViewTimeRulerItemForeground_Normal}" />
                        <Setter Property="Margin" Value="0 -1 -1 0" />
                        <Setter Property="Canvas.ZIndex" Value="1" />
                        <Setter Property="Template">
                            <Setter.Value>
                                <ControlTemplate TargetType="RadSchedulerView:TimeRulerMonthViewItem">
                                    <Grid>
                                        <Border BorderBrush="{StaticResource GroupHeaderBorderBrush_Today}" BorderThickness="{StaticResource HorizontalGroupHeaderTodayBorderThickness}" />
                                        <telerik:RadButton Padding="0" VerticalAlignment="Top" Height="22" Style="{StaticResource MonthGoToDayTodayButtonStyle}" Command="RadSchedulerView:RadScheduleViewCommands.SetDayViewMode" CommandParameter="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Content.DateTime.Date}">
                                            <ContentPresenter Margin="{TemplateBinding Padding}" />
                                        </telerik:RadButton>
                                        <telerik:RadToggleButton Visibility="{Binding ExpandButtonVisibility}" IsChecked="{Binding IsExpanded, Mode=TwoWay}" Style="{StaticResource ExpandMonthViewButtonStyle}" HorizontalAlignment="Right" VerticalAlignment="Bottom" />
                                    </Grid>
                                </ControlTemplate>
                            </Setter.Value>
                        </Setter>
                        <Setter Property="ContentTemplate" Value="{StaticResource MonthItemTemplate}" />
                    </Style>
                </RadSchedulerView:OrientedTimeRulerItemStyleSelector.MonthViewTodayTickStyle>
                <RadSchedulerView:OrientedTimeRulerItemStyleSelector.HorizontalGroupItemStyle>
                    <Style TargetType="RadSchedulerView:TimeRulerGroupItem" BasedOn="{StaticResource TimeRulerGroupItemBaseStyle}">
                        <Setter Property="Margin" Value="0 0 -1 0" />
                        <Setter Property="FontWeight" Value="ExtraBold" />
                    </Style>
                </RadSchedulerView:OrientedTimeRulerItemStyleSelector.HorizontalGroupItemStyle>
     
                <RadSchedulerView:OrientedTimeRulerItemStyleSelector.VerticalGroupItemStyle>
                    <Style TargetType="RadSchedulerView:TimeRulerGroupItem" BasedOn="{StaticResource TimeRulerGroupItemBaseStyle}">
                        <Setter Property="Margin" Value="0 0 0 -1" />
                    </Style>
                </RadSchedulerView:OrientedTimeRulerItemStyleSelector.VerticalGroupItemStyle>
                <RadSchedulerView:OrientedTimeRulerItemStyleSelector.MajorHorizontalTickStyle>
                    <Style TargetType="RadSchedulerView:TimeRulerItem" BasedOn="{StaticResource TimeRulerItemMajorTickBaseStyle}">
                        <Setter Property="BorderBrush" Value="{StaticResource TimeRulerItemMajorTickStroke}" />
                        <Setter Property="HorizontalContentAlignment" Value="Left" />
                        <Setter Property="BorderThickness" Value="1 0 0 0" />
                        <Setter Property="Padding" Value="6 3" />
                    </Style>
                </RadSchedulerView:OrientedTimeRulerItemStyleSelector.MajorHorizontalTickStyle>
                <RadSchedulerView:OrientedTimeRulerItemStyleSelector.MajorVerticalTickStyle>
                    <Style TargetType="RadSchedulerView:TimeRulerItem" BasedOn="{StaticResource TimeRulerItemMajorTickBaseStyle}">
                        <Setter Property="BorderBrush" Value="{StaticResource MajorTickColor}" />
                        <Setter Property="BorderThickness" Value="0 1 0 0" />
                        <Setter Property="MinWidth" Value="60" />
                        <Setter Property="Margin" Value="{StaticResource TimeRulerItemMargin_Vertical}" />
                        <Setter Property="Padding" Value="{StaticResource TimeRulerItemPadding_Vertical}" />
                        <Setter Property="HorizontalContentAlignment" Value="Right" />
                    </Style>
                </RadSchedulerView:OrientedTimeRulerItemStyleSelector.MajorVerticalTickStyle>
                <RadSchedulerView:OrientedTimeRulerItemStyleSelector.MinorHorizontalTickStyle>
                    <Style TargetType="RadSchedulerView:TimeRulerItem" BasedOn="{StaticResource TimeRulerItemMinorTickBaseStyle}">
                        <Setter Property="BorderBrush" Value="{StaticResource TimeRulerItemMinorTickStroke}" />
                        <Setter Property="BorderThickness" Value="1 0 0 0" />
                        <Setter Property="HorizontalAlignment" Value="Left" />
                        <Setter Property="VerticalAlignment" Value="Bottom" />
                        <Setter Property="HorizontalContentAlignment" Value="Left" />
                        <Setter Property="Height" Value="4" />
                        <Setter Property="ContentTemplate">
                            <Setter.Value>
                                <DataTemplate>
     
                                </DataTemplate>
                            </Setter.Value>
                        </Setter>
                    </Style>
                </RadSchedulerView:OrientedTimeRulerItemStyleSelector.MinorHorizontalTickStyle>
                <RadSchedulerView:OrientedTimeRulerItemStyleSelector.MinorVerticalTickStyle>
                    <Style TargetType="RadSchedulerView:TimeRulerItem" BasedOn="{StaticResource TimeRulerItemMinorTickBaseStyle}">
                        <Setter Property="BorderBrush" Value="{StaticResource MinorTickColor}" />
                        <Setter Property="BorderThickness" Value="0 1 0 0" />
                        <Setter Property="HorizontalAlignment" Value="Right" />
                        <Setter Property="VerticalAlignment" Value="Top" />
                        <Setter Property="HorizontalContentAlignment" Value="Right" />
                        <Setter Property="Margin" Value="{StaticResource TimeRulerItemMargin_Vertical}" />
                    </Style>
                </RadSchedulerView:OrientedTimeRulerItemStyleSelector.MinorVerticalTickStyle>
                <RadSchedulerView:OrientedTimeRulerItemStyleSelector.HorizontalLineStyle>
                    <Style TargetType="RadSchedulerView:TimeRulerLine" BasedOn="{StaticResource TimeRulerLineBaseStyle}" />
                </RadSchedulerView:OrientedTimeRulerItemStyleSelector.HorizontalLineStyle>
                <RadSchedulerView:OrientedTimeRulerItemStyleSelector.VerticalLineStyle>
                    <Style TargetType="RadSchedulerView:TimeRulerLine" BasedOn="{StaticResource TimeRulerLineBaseStyle}" />
                </RadSchedulerView:OrientedTimeRulerItemStyleSelector.VerticalLineStyle>
            </RadSchedulerView:OrientedTimeRulerItemStyleSelector>
     
        </UserControl.Resources>
     
        <Grid x:Name="LayoutRoot">
     
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition Width="Auto" />
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
            </Grid.RowDefinitions>
            <telerik:RadButton Content="Create New Event" telerik:StyleManager.Theme="Windows7"
                              FontWeight="Bold"
                               Width="125" Height="30" HorizontalAlignment="Left"
                               Click="RadButton_Click" Grid.Column="0" Grid.Row="0" />
             
            <sdk:Label x:Name="lblStatus" Content="Data Status.."
                       HorizontalAlignment="Left" Padding="150 0 0 0"
                       Grid.Column="0" Grid.Row="0"/>
     
            <telerik:RadBusyIndicator x:Name="busyIndicator" Grid.Row="1"
                                     BusyContent="Loading data...." >
                <telerik:RadScheduleView x:Name="SchedulerView" Grid.Column="0" Grid.Row="1"
                                     TimeRulerItemTemplateSelector="{x:Null}"
                                     TimeRulerItemStyleSelector="{StaticResource TimeRulerItemStyleSelector}"
                                     telerik:StyleManager.Theme="Windows7"
                                     GroupHeaderContentTemplateSelector="{StaticResource GroupHeaderContentTemplateSelector}"
                                     MinAppointmentHeight="80"
                                     AppointmentCreated="SchedulerView_AppointmentCreated"
                                     AppointmentDeleted="SchedulerView_AppointmentDeleted"
                                     AppointmentEdited="SchedulerView_AppointmentEdited"
                                     ScrollViewer.HorizontalScrollBarVisibility="Auto"
                                     ScrollViewer.VerticalScrollBarVisibility="Auto"
                                     AppointmentItemContentTemplate="{StaticResource AppointmentTemplate}"
                                     SpecialSlotStyleSelector="{StaticResource SpecialSlotStyleSelector}"
                                     ShowDialog="SchedulerView_ShowDialog"
                                     
                                     
                                     IsInlineEditingEnabled="True">
     
                    <telerik:RadScheduleView.GroupDescriptionsSource>
                        <telerik:GroupDescriptionCollection>
                            <telerik:ResourceGroupDescription ResourceType="Rooms" />
                            <!--<telerik:ResourceGroupDescription ResourceType="Resources" ShowNullGroup="True"/>
                            <telerik:ResourceGroupDescription ResourceType="Booking Status" ShowNullGroup="True"/>-->
                        </telerik:GroupDescriptionCollection>
                    </telerik:RadScheduleView.GroupDescriptionsSource>
     
                    <telerik:RadScheduleView.ViewDefinitions>
                        <!--<telerik:DayViewDefinition TimerulerMajorTickStringFormat="{}{0:%H}:{0:%m} "
                        GroupHeaderDateStringFormat="{}{0:dddd(MM.dd.yyyy)}"                   
                        MinorTickLength="30min"
                        MajorTickLength="1d" MinTimeRulerExtent="2000" />
     
                        <telerik:WeekViewDefinition MinorTickLength="30min"
                        MajorTickLength="1d"
                        TimerulerMajorTickStringFormat="{}{0:h tt}:{0:mm} "
                        TimerulerMinorTickStringFormat=":{0:mm} "
                        GroupHeaderDateStringFormat="{}{0:dddd(MM/dd)}"
                        MinTimeRulerExtent="2000" />
     
                        <telerik:MonthViewDefinition TimerulerGroupStringFormat="< {0:dddd} >"
                        TimerulerMajorTickStringFormat="{}{0:%M}.{0:%d}"
                        GroupHeaderDateStringFormat="{}{0:MM/dd}" />-->
     
                        <telerik:TimelineViewDefinition TimerulerGroupStringFormat="{}{0:dd.MM.yyyy}"
                        TimerulerMajorTickStringFormat="{}{0:%H}"
                        TimerulerMinorTickStringFormat=":{0:%m}"
                        MajorTickLength="1h"
                        MinorTickLength="15min"
                        DayStartTime="8:00"
                        DayEndTime="20:00"
                        VisibleDays="1"
                        MinTimeRulerExtent="800"
                        Title="My Calendar"
                        LargeChangeInterval="1d" />
     
                    </telerik:RadScheduleView.ViewDefinitions>
                </telerik:RadScheduleView>
            </telerik:RadBusyIndicator>
     
            <TextBlock Text="Choose Culture =>" Grid.Row="0" Margin="8 0" Grid.Column="1" FontWeight="Bold"
                       VerticalAlignment="Center" HorizontalAlignment="Left" />
                        
            <telerik:RadComboBox x:Name="AvailableCulturesComboBox" Grid.Row="1" Grid.Column="1"
                                        VerticalAlignment="Top"
                                        Margin="8 0" SelectedIndex="0" Width="150"
                                        DisplayMemberPath="DisplayName" telerik:StyleManager.Theme="Windows7"/>
     
        </Grid>
    </UserControl>


    thanks & regards,
    palak

  5. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 29 Jun 2011 Link to this post

    Hello Palak,

    Thank you for sharing the code.

    I'm afraid that the needed approach is not possible - in ShowDialog event handler you can access only the ViewModel of the dialog TargetType, not the controls placed in its template.  In order to remove or add controls you should modify EditAppointmentDialogStyle property.

    Kind regards,
    Yana
    the Telerik team
    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 Public Issue Tracking system and vote to affect the priority of the items
  6. palak
    palak avatar
    102 posts
    Member since:
    May 2011

    Posted 30 Jun 2011 Link to this post

    Hi yana,

    Thanks for reply. i'll do it in .xaml page. bt i really wish , i could have done in .xaml.cs codebehind also. because dynamism requires codebehind way, not static way like templates/styles in .xaml page.

    Anyways thanks , and i always enjoyed working with telerik components.

    thanks & regards,
    palak
  7. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 30 Jun 2011 Link to this post

    Hi Palak,

    You can bind Visibility property of the needed controls in the EditAppointmentDialog to properties in the ViewModel of the ScheduleView. Please check this help article which demonstrates similar approach.

    All the best,
    Yana
    the Telerik team
    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 Public Issue Tracking system and vote to affect the priority of the items
  8. palak
    palak avatar
    102 posts
    Member since:
    May 2011

    Posted 30 Jun 2011 Link to this post

    Hi Yana,

    Thanks for link, and surely i am going to try this.

    regards,
    palak bhansali
  9. Shehnaz
    Shehnaz avatar
    1 posts
    Member since:
    May 2015

    Posted 04 Jun 2015 in reply to Yana Link to this post

    Hi Yana,

     Is there a way where I can fetch the recurrence end date? If yes then please share.

    I want to restrict the end user to apply recurrence to a specific period. I also tried to access the EditRecurrenceDialogStyle template to edit it and remove few controls but could not generate the style.

     

    Thanks,

    Shehnaz

  10. Nasko
    Admin
    Nasko avatar
    588 posts

    Posted 08 Jun 2015 Link to this post

    Hi Shehnaz,

    Indeed in order to achieve the desired behavior of RadSheduleView and restrict the user from applying a recurrence to a specific period you need to modify the default EditRecurrenceDialogStyle. What we could suggest you is either to set some restriction to the DatePickers placed inside the GroupBox named "RangeGroup" or create a Validation - thus the user won't be able to apply a date that does not pass some validation condition. More detailed information about the restriction of the date you could find on the following link from our help documentation:
    http://docs.telerik.com/devtools/silverlight/controls/raddatetimepicker/features/selection#restricting-the-date-items-selection

    As for the validation of the date please check this example from our Silverlight online demos. We have also created a sample project for you that demonstrates how to modify the default EditRecurrenceDialogStyle - please, notice that Implicit Styles were used.

    We hope this will help you.

    Regards,
    Nasko
    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
Back to Top
DevCraft banner