or
In XAML, I try to bind the RoutingService of my diagram:
<telerik:RadDiagram ....... RoutingService="{Binding Router}" ... />
And I get this error:
'RoutingService' property is read-only and cannot be set from markup. Line 92 Position 45.
Why do I have to assign this router in code-behind? Makes sense to bind it since it can easily be a property of my viewmodel...
UPDATE: Basically, I'm trying to assign the Router to an instance of OrgTreeRouter.
<
telerik:RadGridView
x:Name
=
"TodoGrid"
Grid.Row
=
"0"
Width
=
"auto"
Height
=
"auto"
AutoGenerateColumns
=
"True"
CanUserDeleteRows
=
"False"
CanUserFreezeColumns
=
"False"
CanUserInsertRows
=
"False"
CanUserResizeColumns
=
"True"
ColumnWidth
=
"*"
IsReadOnly
=
"True"
SelectionUnit
=
"Cell"
ItemsSource
=
"{Binding ToDoRows}"
RowIndicatorVisibility
=
"Collapsed"
ScrollViewer.VerticalScrollBarVisibility
=
"Visible"
ShowGroupPanel
=
"False"
/>
.
.
.
.
<
telerik:RadGridView
x:Name
=
"DoneGrid"
Grid.Row
=
"2"
Width
=
"auto"
Height
=
"auto"
AutoGenerateColumns
=
"True"
CanUserDeleteRows
=
"False"
CanUserFreezeColumns
=
"False"
CanUserInsertRows
=
"False"
CanUserResizeColumns
=
"False"
ColumnWidth
=
"*"
SelectionUnit
=
"Cell"
IsReadOnly
=
"True"
ItemsSource
=
"{Binding DoneRows}"
RowIndicatorVisibility
=
"Collapsed"
ScrollViewer.VerticalScrollBarVisibility
=
"Visible"
ShowColumnHeaders
=
"False"
ShowGroupPanel
=
"False"
/>
<telerik:RadGridView.Columns> |
<telerik:GridViewSelectColumn DataMemberBinding=""/> <!-- not valid --> |
class
BarData
// Represents one "item" on the x-axis
{
DateTime Date {
get
;
set
;}
// X-Axis, works fine
Dictionary<
string
,
double
> Items =
new
Dictionary <
string
,
double
> ();
// string is the name of the category, and double is the value
}