This question is locked. New answers and comments are not allowed.
Hi.
I have this
But when I add ViewDefinitions
sv.ViewDefinitions.Add(new DayViewDefinition());
VS tell me
Ambiguous reference:
Telerik.Windows.Controls.DayViewDefinition
Telerik.Windows.Controls.DayViewDefinition
match
When I remove from code
All work.
What I do wrong?
Update
Sorry for wrong topic name
it must bee
Error when adding EditAppointmentDialogStyle
I have this
<ControlTemplate x:Key="EditAppointmentTemplate" TargetType="telerik:SchedulerDialog"> <Grid > <Grid.RowDefinitions> <RowDefinition Height="Auto" /> <RowDefinition Height="Auto" /> <RowDefinition Height="*" /> <RowDefinition Height="Auto" /> <RowDefinition Height="Auto" /> <RowDefinition Height="Auto" /> <RowDefinition Height="Auto" /> <RowDefinition Height="Auto" /> </Grid.RowDefinitions> <TextBlock Text="asdasdasdasdasdasd"/> <StackPanel Grid.Row="7" Margin="13 6" HorizontalAlignment="Right" Orientation="Horizontal"> <telerik:RadButton Margin="2" MinWidth="84" Command="telerik:WindowCommands.Confirm" telerik:LocalizationManager.ResourceKey="Ok" telerik:RadWindow.ResponseButton="Accept" > <ToolTipService.ToolTip> <TextBlock telerik:LocalizationManager.ResourceKey="SaveAndClose" /> </ToolTipService.ToolTip> </telerik:RadButton> <telerik:RadButton Margin="2" MinWidth="84" Command="telerik:WindowCommands.Cancel" telerik:LocalizationManager.ResourceKey="Cancel" telerik:RadWindow.ResponseButton="Cancel" /> </StackPanel> </Grid> </ControlTemplate> <Style x:Key="EditAppointmentDialogStyle" TargetType="telerik:SchedulerDialog"> <Setter Property="Foreground" Value="Black" /> <Setter Property="Width" Value="560" /> <Setter Property="IsTabStop" Value="False" /> <Setter Property="Template" Value="{StaticResource EditAppointmentTemplate}" /> </Style><telerik:RadScheduleView Name="sv" EditAppointmentDialogStyle="{StaticResource EditAppointmentDialogStyle}" />But when I add ViewDefinitions
sv.ViewDefinitions.Add(new DayViewDefinition());
VS tell me
Ambiguous reference:
Telerik.Windows.Controls.DayViewDefinition
Telerik.Windows.Controls.DayViewDefinition
match
When I remove from code
EditAppointmentDialogStyle="{StaticResource EditAppointmentDialogStyle}"All work.
What I do wrong?
Update
Sorry for wrong topic name
it must bee
Error when adding EditAppointmentDialogStyle