@@ -267,7 +267,7 @@ private static void IsOpenPropertyChangedCallback(DependencyObject dependencyObj
267
267
268
268
if ( dialogHost . _popupContentControl != null )
269
269
ValidationAssist . SetSuppress ( dialogHost . _popupContentControl , ! dialogHost . IsOpen ) ;
270
- VisualStateManager . GoToState ( dialogHost , dialogHost . SelectState ( ) , ! TransitionAssist . GetDisableTransitions ( dialogHost ) ) ;
270
+ VisualStateManager . GoToState ( dialogHost , dialogHost . GetStateName ( ) , ! TransitionAssist . GetDisableTransitions ( dialogHost ) ) ;
271
271
272
272
if ( dialogHost . IsOpen )
273
273
{
@@ -323,7 +323,7 @@ private static void IsOpenPropertyChangedCallback(DependencyObject dependencyObj
323
323
324
324
if ( child != null )
325
325
{
326
- //https://github.com/ButchersBoy /MaterialDesignInXamlToolkit/issues/187
326
+ //https://github.com/MaterialDesignInXAML /MaterialDesignInXamlToolkit/issues/187
327
327
//totally not happy about this, but on immediate validation we can get some weird looking stuff...give WPF a kick to refresh...
328
328
Task . Delay ( 300 ) . ContinueWith ( t => child . Dispatcher . BeginInvoke ( new Action ( ( ) => child . InvalidateVisual ( ) ) ) ) ;
329
329
}
@@ -494,7 +494,7 @@ public override void OnApplyTemplate()
494
494
if ( _contentCoverGrid != null )
495
495
_contentCoverGrid . MouseLeftButtonUp += ContentCoverGridOnMouseLeftButtonUp ;
496
496
497
- VisualStateManager . GoToState ( this , SelectState ( ) , false ) ;
497
+ VisualStateManager . GoToState ( this , GetStateName ( ) , false ) ;
498
498
499
499
base . OnApplyTemplate ( ) ;
500
500
}
@@ -729,7 +729,7 @@ private void CloseDialogHandler(object sender, ExecutedRoutedEventArgs executedR
729
729
executedRoutedEventArgs . Handled = true ;
730
730
}
731
731
732
- private string SelectState ( )
732
+ private string GetStateName ( )
733
733
{
734
734
return IsOpen ? OpenStateName : ClosedStateName ;
735
735
}
0 commit comments