I am working through your documentation and am trying to get the 2nd TimeSpanPicker working.
<telerik:RadTimeSpanPicker x:Name="Duration" Value="{Binding SelectedDuration, Mode=TwoWay}"...
My implementation (different source & different name):
<
telerik:RadTimeSpanPicker
Grid.Row
=
"1"
x:Name
=
"Duration"
Value
=
"{Binding SelectedDuration, Mode=TwoWay}"
StringFormat
=
"hh\:mm' hours'"
TimeSpanWatermarkContent
=
"Select duration..."
>
<
telerik:RadTimeSpanPicker.TimeSpanComponents
>
<
wpf:TimeSpanDurationComponent
ItemsSource
=
"{Binding Durations, Mode=OneWayToSource}"
Header
=
"Minutes"
/>
</
telerik:RadTimeSpanPicker.TimeSpanComponents
>
</
telerik:RadTimeSpanPicker
>
I added the DurationTimeSpanComponent (wpf.TimeSpanDurationComponent) and have the Durations collection on my MV.
However, I get this error during runtime:
System.Windows.Data Error: 2 : Cannot find governing FrameworkElement or FrameworkContentElement for target element. BindingExpression:Path=Durations; DataItem=null; target element is 'TimeSpanDurationComponent' (HashCode=46098163); target property is 'ItemsSource' (type 'IEnumerable')
Your example includes that control is a container. Is that important?
What I see is that you include a namespace that doesn't seem to be part of my install. When I attempt to set this xmlns I don't have it as an option. And, when I go to add a reference this is not part listed. Is the documentation bad? Is this QuickStart namespace supposed to be part of most common implementations?
xmlns:telerikQuickStart="clr-namespace:Telerik.Windows.Controls.QuickStart;assembly=QuickStart.Common"