Is there a way to prevent the UWP Splitview from closing if a certain condition is met? I have the following PropertyChange Callback implemented:
MySplitView.RegisterPropertyChangedCallback(SplitView.IsPaneOpenProperty, MySplitViewPaneOpenPropertyChanged);
Which looks like this:
private void MySplitViewPaneOpenPropertyChanged(DependencyObject sender, DependencyProperty dp)
{
if (preventClose == true)
{
TrashSplitView.IsPaneOpen = true;
}
}
This code keeps the splitview pane open, but starts the animation briefly. Is there a way to prevent the animation from ever starting?