<telerikScheduler:RadScheduler ActiveViewDefinitionChanged="scheduler_ActiveViewDefinitionChanged" AvailableViewModes="Day, Week, Month" AppointmentTemplate="{StaticResource AppointmentTemplate}" EditAppointmentDialogStyle="{StaticResource EditDialogStyle}" AppointmentTemplateSelector="{StaticResource AppointmentTemplateSelector}" SelectedViewStartDateChanged="scheduler_SelectedViewStartDateChanged" x:Name="scheduler" AppointmentsSource="{Binding Appointments}" HorizontalContentAlignment="Stretch" OpenModalDialogs="True" ViewMode="Day" AllDayAreaHeight="0" GroupBy="{Binding Path=GroupBy}" Margin="0,0,3,0" RecurrenceChoiceDialogDefaultRecurrenceMode="Occurrence" ShowsConfirmationWindowOnDelete="False" MouseRightButtonUp="scheduler_MouseRightButtonUp" Style="{StaticResource RadSchedulerStyle}"> <telerikScheduler:RadScheduler.DayViewDefinition> <telerikScheduler:DayViewDefinition VisibleDays="1" LargeChangeInterval="1d" /> </telerikScheduler:RadScheduler.DayViewDefinition> <telerikScheduler:RadScheduler.WeekViewDefinition> <telerikScheduler:WeekViewDefinition VisibleDays="7" LargeChangeInterval="7d" /> </telerikScheduler:RadScheduler.WeekViewDefinition> <telerikScheduler:RadScheduler.MonthViewDefinition> <telerikScheduler:MonthViewDefinition VisibleDays="42" TimeSlotLength="1" SmallChangeInterval="7d" LargeChangeInterval="1m" /> </telerikScheduler:RadScheduler.MonthViewDefinition> <telerikScheduler:RadScheduler.ResourceStyleMappings> <telerikScheduler:ResourceStyleMapping ResourceType="Zones" ResourceName="{}" HeaderTemplate="{StaticResource ZoneHeaderTemplate}" /> </telerikScheduler:RadScheduler.ResourceStyleMappings></telerikScheduler:RadScheduler>Hi,
i have this sample code:
RadPane formRadPane = new RadPane() { Header = "Not Document Pane", CanDockInDocumentHost = false };
Canvas cReference = new Canvas();
Image imgBg = new Image(new uri("Images/0.png"));
imgBg.Width = 2000;
imgBg.Height = 1980;
cReference.childer.Add(imgBg);
TextBlock txtBlock = new TextBlock();
txtBlock.Text = "This Pane Cannot be docked in to document host";
Canvas.SetLeft(txtBlock, 20);
Canvas.SetTop(txtBlock, 20);
cReference.childer.Add(txtBlock);
FormRadPane.Content = cReference;
when program run , the cReference's content Uncontrolled by formRadPane .that means cReference's content exceeds window area B.
How do I resolve this problem?
private bool _lengthInputInsertActivated = false;
private void LengthNumericUpDown_GotFocus(object sender, RoutedEventArgs e)
{
if (!_lengthInputInsertActivated)
{
KeyEventArgs e1 = new KeyEventArgs(Keyboard.PrimaryDevice, Keyboard.PrimaryDevice.ActiveSource, 0, Key.Insert);
e1.RoutedEvent = Keyboard.KeyDownEvent;
InputManager.Current.ProcessInput(e1);
_lengthInputInsertActivated = true;
}
}
calendar.SelectedDate = Datetime.ToDay;
Before i do this:if(calendar.DisplayMode != Telerik.Windows.Controls.Calendar.DisplayMode.MonthView ){calendar.DisplayMode = DisplayMode.MonthView;}
But the calnder doesn´t show the correctly date!
Why?
Reinhard
<Button Content="Button" HorizontalAlignment="Left" VerticalAlignment="Top" Width="75"> <Button.Template> <ControlTemplate> <StackPanel> <telerik:RadComboBox ItemsSource="{Binding ListCombo, Mode=OneWay}" Text="{Binding Filter.SelectedText, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" IsEditable="True" IsSynchronizedWithCurrentItem="True" IsFilteringEnabled="True" Margin="0,0,0,81" /> </StackPanel> </ControlTemplate> </Button.Template> </Button>