#ExternalSource("..\..\..\Infrastructure\ResultsWindow.xaml",18)
<System.Diagnostics.CodeAnalysis.SuppressMessageAttribute(
"Microsoft.Performance"
,
"CA1823:AvoidUnusedPrivateFields"
)> _
Friend
WithEvents
datagrid
As
Telerik.Windows.Controls.RadGridView
#End ExternalSource
<
telerik:RadCalendar
Grid.Row
=
"1"
Margin
=
"6,6,6,6"
x:Name
=
"calendar"
IsTodayHighlighted
=
"False"
telerikControls:StyleManager.Theme
=
"Vista"
DayTemplateSelector
=
"{StaticResource templateSelector}"
Columns
=
"4"
Rows
=
"3"
ViewsHeaderVisibility
=
"Visible"
FirstDayOfWeek
=
"Monday"
HeaderVisibility
=
"Visible"
ContextMenuOpening
=
"calendar_ContextMenuOpening"
>
<
telerik:RadContextMenu.ContextMenu
>
<
telerik:RadContextMenu
x:Name
=
"cmCalendar"
Opened
=
"ContextMenuCalendar_Opened"
telerikControls:StyleManager.Theme
=
"Vista"
>
<
telerik:RadMenuItem
x:Name
=
"miHoliday"
Header
=
"{x:Static local:CentralCalendarWindowGlossary.miHoliday_Header}"
Click
=
"MenuItemHoliday_Click"
IsCheckable
=
"True"
ToolTipService.ShowOnDisabled
=
"True"
ToolTipService.IsEnabled
=
"{Binding Path=IsEnabled}"
ToolTip
=
"{DynamicResource toolTipDefault}"
/>
<
telerik:RadMenuItem
x:Name
=
"miNoDistribution"
Header
=
"{x:Static local:CentralCalendarWindowGlossary.miNoDistribution_Header}"
IsCheckable
=
"True"
Click
=
"MenuItemNoDistribution_Click"
ToolTipService.ShowOnDisabled
=
"True"
ToolTipService.IsEnabled
=
"{Binding Path=IsEnabled}"
ToolTip
=
"{DynamicResource toolTipDefault}"
/>
<
telerik:RadMenuItem
IsSeparator
=
"True"
/>
<
telerik:RadMenuItem
x:Name
=
"miSiteDistribution"
Header
=
"{x:Static local:CentralCalendarWindowGlossary.miSiteDistribution_Header}"
Click
=
"MenuItemSiteDistribution_Click"
ToolTipService.ShowOnDisabled
=
"True"
ToolTipService.IsEnabled
=
"{Binding Path=IsEnabled}"
ToolTip
=
"{DynamicResource toolTipDefault}"
>
<
telerik:RadMenuItem.Icon
>
<
Image
Source
=
"/AN.Planner.Administrator;component/Images/SiteDetailsViewSmall.ico"
/>
</
telerik:RadMenuItem.Icon
>
</
telerik:RadMenuItem
>
</
telerik:RadContextMenu
>
</
telerik:RadContextMenu.ContextMenu
>
</
telerik:RadCalendar
>
<
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