Hello
Our application uses RadTransitions between major parts of the application from a menu control.
To start the transition, a new UserControl is instantiated and, to give good visual representation to the user, the palette for the new control is changed.
This works well except that momentarily the outgoing page palette is also changed as it is leaving the stage, this is not the desired effect.
I realise that the 'PaletteInstance' is a singleton reference and global. However, is there a way to create a palette that is only applicable to the user control that is in use, i.e. one that isn't global?
Many thanks
Mark.
Our application uses RadTransitions between major parts of the application from a menu control.
<
telerik:RadTransitionControl
Content
=
"{TemplateBinding Content}"
Background
=
"Transparent"
>
<
telerik:RadTransitionControl.Transition
>
<
telerik:SlideAndZoomTransition
x:Name
=
"thisSlide"
MinZoom
=
"1"
SlideDirection
=
"RightToLeft"
/>
</
telerik:RadTransitionControl.Transition
>
</
telerik:RadTransitionControl
>
To start the transition, a new UserControl is instantiated and, to give good visual representation to the user, the palette for the new control is changed.
public partial class ViewMainDashboard : UserControl
{
public ViewMainDashboard()
{
MetroColors.PaletteInstance.AccentColor = Colors.Orange;
InitializeComponent();
}
}
This works well except that momentarily the outgoing page palette is also changed as it is leaving the stage, this is not the desired effect.
I realise that the 'PaletteInstance' is a singleton reference and global. However, is there a way to create a palette that is only applicable to the user control that is in use, i.e. one that isn't global?
Many thanks
Mark.