fix: fixed #1072
This commit is contained in:
1 parent
fda076b5e6
commit
85e8909b11
1 file changed
+3
-2
@@ -55,7 +55,6 @@ namespace HandyControl.Controls
|
||||
|
||||
private void TransitioningContentControl_Loaded(object sender, RoutedEventArgs e)
|
||||
{
|
||||
StartTransition();
|
||||
IsVisibleChanged += TransitioningContentControl_IsVisibleChanged;
|
||||
}
|
||||
|
||||
@@ -66,7 +65,7 @@ namespace HandyControl.Controls
|
||||
|
||||
private void StartTransition()
|
||||
{
|
||||
if (!IsArrangeValid || _contentPresenter == null) return;
|
||||
if (_contentPresenter == null || !IsVisible) return;
|
||||
|
||||
if (TransitionStoryboard != null)
|
||||
{
|
||||
@@ -102,6 +101,8 @@ namespace HandyControl.Controls
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
StartTransition();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user