Commit a8013904 by liulongfei

bug修复

parent 2a15ab83
...@@ -82,6 +82,11 @@ namespace VIZ.Framework.Common ...@@ -82,6 +82,11 @@ namespace VIZ.Framework.Common
internal WeakReference<NavigationControl> OwnerNavigaiton; internal WeakReference<NavigationControl> OwnerNavigaiton;
/// <summary> /// <summary>
/// 是否已经完成了视图创建
/// </summary>
internal bool IsCreatedView;
/// <summary>
/// 销毁内容 /// 销毁内容
/// </summary> /// </summary>
public void DisposeContent() public void DisposeContent()
...@@ -140,7 +145,7 @@ namespace VIZ.Framework.Common ...@@ -140,7 +145,7 @@ namespace VIZ.Framework.Common
private void TryCreateContent() private void TryCreateContent()
{ {
// 已经包含内容,则不创建 // 已经包含内容,则不创建
if (this.Content != null && !(this.Content is NavigationConfig)) if (this.IsCreatedView)
return; return;
NavigationConfig config = this.DataContext as NavigationConfig; NavigationConfig config = this.DataContext as NavigationConfig;
...@@ -152,6 +157,8 @@ namespace VIZ.Framework.Common ...@@ -152,6 +157,8 @@ namespace VIZ.Framework.Common
{ {
this.TryCreateContentFromViewType(); this.TryCreateContentFromViewType();
} }
this.IsCreatedView = true;
} }
/// <summary> /// <summary>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment