or
protected
override
void
OnRotationAngleChanged(
double
newValue,
double
oldValue)
{
base
.OnRotationAngleChanged(newValue, oldValue);
List<RadDiagramShape> childrenList = Children.OfType<RadDiagramShape>().ToList();
// get rotation center
double
centerX = (ActualWidth / 2);
double
centerY = (ActualHeight / 2);
foreach
(RadDiagramShape item
in
childrenList)
{
RotateTransform transform =
new
RotateTransform(newValue, centerX, centerY);
item.LayoutTransform = transform;
}
}
System.Windows.Data Information:
41
: BindingExpression path error:
'IsChecked'
property not found for
'object'
because data item is null. This could happen because the data provider has not produced any data yet. BindingExpression:Path=IsChecked; DataItem=null; target element is
'CheckBox'
(Name=
''
); target property is
'IsChecked'
(type
'Nullable`1'
)
System.Windows.Data Information:
20
: BindingExpression cannot retrieve value due to missing information. BindingExpression:Path=IsChecked; DataItem=null; target element is
'CheckBox'
(Name=
''
); target property is
'IsChecked'
(type
'Nullable`1'
)
System.Windows.Data Information:
21
: BindingExpression cannot retrieve value from null data item. This could happen when binding is detached or when binding to a Nullable type that has no value. BindingExpression:Path=IsChecked; DataItem=null; target element is
'CheckBox'
(Name=
''
); target property is
'IsChecked'
(type
'Nullable`1'
)
System.Windows.Data Information:
41
: BindingExpression path error:
'Property1'
property not found for
'object'
because data item is null. This could happen because the data provider has not produced any data yet. BindingExpression:Path=Property
1
; DataItem=null; target element is
'TextBox'
(Name=
''
); target property is
'Text'
(type
'String'
)
System.Windows.Data Information:
20
: BindingExpression cannot retrieve value due to missing information. BindingExpression:Path=Property
1
; DataItem=null; target element is
'TextBox'
(Name=
''
); target property is
'Text'
(type
'String'
)
System.Windows.Data Information:
21
: BindingExpression cannot retrieve value from null data item. This could happen when binding is detached or when binding to a Nullable type that has no value. BindingExpression:Path=Property
1
; DataItem=null; target element is
'TextBox'
(Name=
''
); target property is
'Text'
(type
'String'
)
<
telerik:RadGridView
x:Name
=
"RgvPatients"
HorizontalAlignment
=
"Stretch"
VerticalAlignment
=
"Top"
HorizontalContentAlignment
=
"Center"
AutoGenerateColumns
=
"False"
IsReadOnly
=
"True"
SelectionMode
=
"Single"
SelectionUnit
=
"Cell"
ShowGroupPanel
=
"False"
EnableRowVirtualization
=
"False"
RowIndicatorVisibility
=
"Collapsed"
IsFilteringAllowed
=
"False"
ItemsSource
=
"{Binding Patients}"
GridLinesVisibility
=
"Horizontal"
>
<
telerik:RadGridView.Columns
>
<
telerik:GridViewColumn
Header
=
"MRN#"
IsSortable
=
"True"
>
<
telerik:GridViewColumn.CellTemplate
>
<
DataTemplate
>
<
Grid
>
<
Grid.ColumnDefinitions
>
<
ColumnDefinition
Width
=
"Auto"
/>
<
ColumnDefinition
Width
=
"*"
/>
</
Grid.ColumnDefinitions
>
<
Button
Style
=
"{StaticResource ButtonTransparentBlackText}"
VerticalAlignment
=
"Center"
Height
=
"25"
Width
=
"100"
Command
=
"{Binding Path=SelectPatientCommand}"
Content
=
"{Binding mrn}"
>
</
Button
>
</
Grid
>
</
DataTemplate
>
</
telerik:GridViewColumn.CellTemplate
>
</
telerik:GridViewColumn
>
<
telerik:GridViewDataColumn
Header
=
"Last Name"
DataMemberBinding
=
"{Binding last_name}"
IsReadOnly
=
"True"
TextAlignment
=
"Left"
/>
<
telerik:GridViewDataColumn
Header
=
"First Name"
DataMemberBinding
=
"{Binding first_name}"
IsReadOnly
=
"True"
TextAlignment
=
"Left"
/>
<
telerik:GridViewDataColumn
Header
=
"Middle Name"
DataMemberBinding
=
"{Binding middle_name}"
IsReadOnly
=
"True"
TextAlignment
=
"Left"
/>
<
telerik:GridViewDataColumn
Header
=
"DOB"
DataMemberBinding
=
"{Binding dob, StringFormat='{}{0:MM/dd/yyyy}'}"
IsReadOnly
=
"True"
TextAlignment
=
"Left"
/>
<
telerik:GridViewDataColumn
Header
=
"Age"
DataMemberBinding
=
"{Binding dob, Converter={StaticResource AgeConverter}}"
IsReadOnly
=
"True"
TextAlignment
=
"Left"
/>
<
telerik:GridViewDataColumn
Header
=
"Gender"
DataMemberBinding
=
"{Binding Gender}"
IsReadOnly
=
"True"
TextAlignment
=
"Left"
/>
<
telerik:GridViewDataColumn
Header
=
"Status"
DataMemberBinding
=
"{Binding adt_type}"
IsReadOnly
=
"True"
TextAlignment
=
"Left"
/>
</
telerik:RadGridView.Columns
>
</
telerik:RadGridView
>
<
DockPanel
>
<
telerik:RadDataPager
x:Name
=
"RdpPatients"
DockPanel.Dock
=
"Left"
Width
=
"830"
NumericButtonCount
=
"5"
Height
=
"28"
DisplayMode
=
"All"
PageIndex
=
"{Binding Path=PageData.PageIndex, Mode=TwoWay}"
PageSize
=
"20"
ItemCount
=
"{Binding Path=PageData.TotalRecords}"
>
<
i:Interaction.Triggers
>
<
i:EventTrigger
EventName
=
"PageIndexChanged"
>
<
i:InvokeCommandAction
Command
=
"{Binding RdpPatients_PageIndexChangedCommand}"
/>
</
i:EventTrigger
>
</
i:Interaction.Triggers
>
</
telerik:RadDataPager
>
</
DockPanel
>
<
Window
x:Class
=
"WpfTelerikDocking.MainWindow"
Title
=
"MainWindow"
Height
=
"350"
Width
=
"525"
>
<
Grid
>
<
Grid.RowDefinitions
>
<
RowDefinition
/>
<
RowDefinition
Height
=
"Auto"
/>
</
Grid.RowDefinitions
>
<
t:RadDocking
>
<
t:RadDocking.DocumentHost
>
<
StackPanel
x:Name
=
"mainPanel"
/>
</
t:RadDocking.DocumentHost
>
</
t:RadDocking
>
<
Button
Grid.Row
=
"1"
Margin
=
"5"
Width
=
"80"
HorizontalAlignment
=
"Left"
Click
=
"Button_Click"
>_Test</
Button
>
</
Grid
>
</
Window
>
using
System.Windows;
using
System.Windows.Input;
using
System.Windows.Controls;
namespace
WpfTelerikDocking
{
public
partial
class
MainWindow : Window
{
public
MainWindow()
{
InitializeComponent();
}
private
void
Button_Click(
object
sender, RoutedEventArgs e)
{
Button b =
new
Button();
b.Content =
new
AccessText() { Text =
"_XXX"
};
this
.mainPanel.Children.Add(b);
}
}
}
<
Window
x:Class
=
"WpfApplication1.MainWindow"
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
Title
=
"MainWindow"
>
<
Window.Resources
>
<
ResourceDictionary
>
<
ResourceDictionary.MergedDictionaries
>
<
ResourceDictionary
Source
=
"Telerik.Windows.Controls.xaml"
/>
<
ResourceDictionary
Source
=
"Telerik.Windows.Controls.Docking.xaml"
/>
</
ResourceDictionary.MergedDictionaries
>
<
Thickness
x:Key
=
"PaneGroup_BorderThickness"
>3</
Thickness
>
<
LinearGradientBrush
x:Key
=
"PaneGroup_BorderBrush"
EndPoint
=
"0.5,1"
StartPoint
=
"0.5,0"
>
<
GradientStop
Color
=
"#FF809EAD"
Offset
=
"0"
/>
<
GradientStop
Color
=
"#FFADAFB2"
Offset
=
"1"
/>
</
LinearGradientBrush
>
<
Style
BasedOn
=
"{StaticResource RadPaneGroupStyle}"
TargetType
=
"telerik:RadPaneGroup"
>
<
Setter
Property
=
"BorderThickness"
Value
=
"{StaticResource PaneGroup_BorderThickness}"
/>
<
Setter
Property
=
"BorderBrush"
Value
=
"{StaticResource PaneGroup_BorderBrush}"
/>
</
Style
>
<
LinearGradientBrush
x:Key
=
"PaneGroup_PaneFrame_Brush"
EndPoint
=
"0.5,1"
StartPoint
=
"0.5,0"
>
<
GradientStop
Color
=
"#FF809EAD"
Offset
=
"0"
/>
<
GradientStop
Color
=
"#FFADAFB2"
Offset
=
"1"
/>
</
LinearGradientBrush
>
<
ControlTemplate
x:Key
=
"PaneGroup_PaneFrameTemplate"
TargetType
=
"ContentControl"
>
<
Border
x:Name
=
"Root"
BorderBrush
=
"{StaticResource PaneGroup_PaneFrame_Brush}"
Background
=
"{TemplateBinding Background}"
BorderThickness
=
"{TemplateBinding BorderThickness}"
CornerRadius
=
"{StaticResource PaneGroup_PaneFrame_CornerRadius}"
>
<
ContentPresenter
/>
</
Border
>
</
ControlTemplate
>
<
Style
BasedOn
=
"{StaticResource PaneGroup_PaneFrameStyle}"
TargetType
=
"ContentControl"
>
<
Setter
Property
=
"Template"
Value
=
"{StaticResource PaneGroup_PaneFrameTemplate}"
/>
</
Style
>
</
ResourceDictionary
>
</
Window.Resources
>
<
Grid
>
<
telerik:RadDocking
Name
=
"u_rd_Docking"
BorderThickness
=
"4"
Grid.Row
=
"1"
>
<
telerik:RadSplitContainer
InitialPosition
=
"DockedTop"
Height
=
"700"
>
<
telerik:RadSplitContainer
telerik:ProportionalStackPanel.RelativeSize
=
"24,100"
>
<
telerik:RadPaneGroup
>
<
telerik:RadPane
Header
=
"Pane 1"
>
<
Rectangle
Width
=
"50"
Height
=
"100"
Fill
=
"BlanchedAlmond"
/>
</
telerik:RadPane
>
</
telerik:RadPaneGroup
>
</
telerik:RadSplitContainer
>
<
telerik:RadSplitContainer
Orientation
=
"Vertical"
telerik:ProportionalStackPanel.RelativeSize
=
"42.5,100"
>
<
telerik:RadPaneGroup
>
<
telerik:RadPane
Header
=
"Pane 2"
>
<
Rectangle
Width
=
"125"
Height
=
"50"
Fill
=
"Aqua"
/>
</
telerik:RadPane
>
</
telerik:RadPaneGroup
>
<
telerik:RadPaneGroup
>
<
telerik:RadPane
Header
=
"Pane 3"
>
<
Rectangle
Width
=
"125"
Height
=
"50"
Fill
=
"Red"
/>
</
telerik:RadPane
>
</
telerik:RadPaneGroup
>
</
telerik:RadSplitContainer
>
</
telerik:RadSplitContainer
>
</
telerik:RadDocking
>
</
Grid
>
</
Window
>