or
It seems, there was somesort of latency in content initialization of the RadExpander Control while loading the content using xaml reader,
but the same process works as expected with the first quarter release.
<
telerik:RadGridView
x:Name
=
"ctlStockGridView"
AutoGenerateColumns
=
"False"
Background
=
"AliceBlue"
telerik:StyleManager.Theme
=
"Office_Blue"
ShowInsertRow
=
"False"
SelectionMode
=
"Extended"
RowEditEnded
=
"ctlStockGridView_RowEditEnded"
ValidatesOnDataErrors
=
"None"
ShowGroupPanel
=
"False"
IsFilteringAllowed
=
"False"
RowValidating
=
"ctlStockGridView_RowValidating"
PreparingCellForEdit
=
"ctlStockGridView_PreparingCellForEdit"
>
<
telerik:RadGridView.Columns
>
<telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding Amount}"
TextAlignment
=
"Right"
UniqueName
=
"Amount"
Header
=
"Posting Amount"
Width
=
"auto"
HeaderTextAlignment
=
"Center"
/>
</
telerik:RadGridView.Columns
>
</
telerik:RadGridView
>
<
telerik:RadDropDownButton
Content
=
"Assign"
DockPanel.Dock
=
"Right"
Margin
=
"3"
Name
=
"RolesMenu"
>
<
telerik:RadDropDownButton.DropDownContent
>
<
telerik:RadContextMenu
ItemsSource
=
"{Binding RolesList}"
ItemClick
=
"RolesMenu_ItemClick"
>
<
telerik:RadContextMenu.ItemTemplate
>
<
DataTemplate
>
<
telerik:RadMenuItem
Header
=
"{Binding RoleName}"
Command
=
"{Binding AssignRole}"
CommandParameter
=
"{Binding DataContext, RelativeSource={RelativeSource Mode=Self}}"
/>
</
DataTemplate
>
</
telerik:RadContextMenu.ItemTemplate
>
</
telerik:RadContextMenu
>
</
telerik:RadDropDownButton.DropDownContent
>
</
telerik:RadDropDownButton
>
public
partial
class
XAxisTest : Window
{
public
XAxisTest()
{
InitializeComponent();
InitializeComponent();
Context =
new
Context();
DataContext =
this
;
}
public
Context Context {
get
;
set
; }
}
public
class
Context
{
public
Context()
{
Charts =
new
ObservableCollection<ChartDataHolder> {
new
ChartDataHolder(1),
new
ChartDataHolder(100) };
}
public
ChartDataHolder FirstData
{
get
{
return
Charts[0];
}
}
public
ObservableCollection<ChartDataHolder> Charts {
get
;
private
set
; }
}
public
class
ChartDataHolder
{
public
ChartDataHolder(
double
delta)
{
ChartData =
new
ObservableCollection<ChartDataItem>();
for
(
int
i = 0; i < 20; i++)
{
ChartData.Add(
new
ChartDataItem() { ValueX = DateTime.Now.Second + i, ValueY = DateTime.Now.Second * delta + i });
}
}
public
ObservableCollection<ChartDataItem> ChartData {
get
;
private
set
; }
}
public
class
ChartDataItem
{
public
int
ValueX {
get
;
set
; }
public
double
ValueY {
get
;
set
; }
}
<
Window
>