This question is locked. New answers and comments are not allowed.
I am having trouble getting values to bind to a timebar.
Here is the XAML for my test page:
timebar1 does not render properly, timebar2 does render correctly.
Here is the DataContext model:
Is there something obvious I am missing here?
Here is the XAML for my test page:
<
Grid
x:Name
=
"LayoutRoot"
>
<
Grid.RowDefinitions
>
<
RowDefinition
Height
=
"*"
></
RowDefinition
>
<
RowDefinition
Height
=
"*"
></
RowDefinition
>
</
Grid.RowDefinitions
>
<
telerik:RadTimeBar
Name
=
"timeBar1"
Grid.Row
=
"0"
PeriodStart
=
"{Binding PeriodStart}"
PeriodEnd
=
"{Binding PeriodEnd}"
SelectionStart
=
"{Binding SelectionStart}"
SelectionEnd
=
"{Binding SelectionEnd}"
MinSelectionRange
=
"2.00:00:00"
MaxSelectionRange
=
"90.00:00:00"
IsSnapToIntervalEnabled
=
"False"
>
<
telerik:RadTimeBar.Intervals
>
<
telerik:YearInterval
/>
<
telerik:QuarterInterval
/>
<
telerik:MonthInterval
/>
<
telerik:WeekInterval
/>
<
telerik:DayInterval
/>
<
telerik:HourInterval
/>
</
telerik:RadTimeBar.Intervals
>
</
telerik:RadTimeBar
>
<
telerik:RadTimeBar
Name
=
"timeBar2"
Grid.Row
=
"1"
PeriodStart
=
"10/1/2010"
PeriodEnd
=
"1/27/2012"
SelectionStart
=
"12/25/2011"
SelectionEnd
=
"1/27/2012"
MinSelectionRange
=
"2.00:00:00"
MaxSelectionRange
=
"90.00:00:00"
IsSnapToIntervalEnabled
=
"False"
>
<
telerik:RadTimeBar.Intervals
>
<
telerik:YearInterval
/>
<
telerik:QuarterInterval
/>
<
telerik:MonthInterval
/>
<
telerik:WeekInterval
/>
<
telerik:DayInterval
/>
<
telerik:HourInterval
/>
</
telerik:RadTimeBar.Intervals
>
</
telerik:RadTimeBar
>
</
Grid
>
timebar1 does not render properly, timebar2 does render correctly.
Here is the DataContext model:
public
class
testtimebarclass
{
public
DateTime PeriodStart {
get
;
set
; }
public
DateTime PeriodEnd {
get
;
set
; }
public
DateTime SelectionStart {
get
;
set
; }
public
DateTime SelectionEnd {
get
;
set
; }
}
Is there something obvious I am missing here?