I am getting 'System.ArgumentException: Object of type 'System.Windows.Data.Binding' cannot be converted to type 'System.Windows.FlowDirection'' when I am trying to bind the SlideDirection of the SlideAndZoomTransition to my viewModel. The exception is occuring at the InitializeComponent() call in the constructor of the view.
Xaml:
<telerik:RadTransitionControl x:Name="ActiveItem" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Duration="0:0:0.5" >
<telerik:RadTransitionControl.Transition>
<telerikTransitions:SlideAndZoomTransition SlideDirection="{Binding Transition}"/>
</telerik:RadTransitionControl.Transition>
</telerik:RadTransitionControl>
In ViewModel:
private FlowDirection _transition = FlowDirection.LeftToRight;
public FlowDirection Transition
{
get
{
return _transition;
}
set
{
_transition = value;
NotifyOfPropertyChange(() => Transition);
}
}
Any advice?
Xaml:
<telerik:RadTransitionControl x:Name="ActiveItem" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Duration="0:0:0.5" >
<telerik:RadTransitionControl.Transition>
<telerikTransitions:SlideAndZoomTransition SlideDirection="{Binding Transition}"/>
</telerik:RadTransitionControl.Transition>
</telerik:RadTransitionControl>
In ViewModel:
private FlowDirection _transition = FlowDirection.LeftToRight;
public FlowDirection Transition
{
get
{
return _transition;
}
set
{
_transition = value;
NotifyOfPropertyChange(() => Transition);
}
}
Any advice?