Hi, I have the following code and I want to have an animation to enable and disable any "radpane "in the related "radpanegroup".
For example, when I put a "radpane" in pin mode, its width increases by 3 seconds, or another example is that the border color changes.
My solution is to use:
<telerik:RadDocking>
...
...
...
<telerik:RadDocking.FlyoutBehavior>
<local:AnimatedFlyoutBehavior/>
</telerik:RadDocking.FlyoutBehavior>
</telerik:RadDocking>
I used the IFlyoutBehavior interface and as a result the following functions were implemented:
void IFlyoutBehavior.OnMouseEnter (IFlyoutHost host, RadPane targetPane)
{
}
void IFlyoutBehavior.OnPaneActivated (IFlyoutHost host, RadPane targetPane)
{
}
void IFlyoutBehavior.OnMouseLeave (IFlyoutHost host)
{
}
void IFlyoutBehavior.OnOpeningTimerTimeout (IFlyoutHost host)
{
}
void IFlyoutBehavior.OnClosingTimerTimeout (IFlyoutHost host)
{
}
void IFlyoutBehavior.OnPaneDeactivated (IFlyoutHost host, RadPane targetPane)
{
var selectedPane = host.SelectedPane;
if (selectedPane! = null &&! selectedPane.IsActive && host.CurrentState == FlyoutState.Opened)
{
host.StartCloseAnimation ();
}
}
void IFlyoutBehavior.OnPaneMouseLeftButtonDown (IFlyoutHost host, RadPane targetPane)
{
if (host.CurrentState! = FlyoutState.Opened)
{
host.StartOpenAnimation ();
}
else
{
host.StartCloseAnimation ();
}
}
}
I could not use enough of this interface. Is there a better way to customize animation in radpane or to develop it that way?