Commit a8013904 by liulongfei

bug修复

parent 2a15ab83
......@@ -82,6 +82,11 @@ namespace VIZ.Framework.Common
internal WeakReference<NavigationControl> OwnerNavigaiton;
/// <summary>
/// 是否已经完成了视图创建
/// </summary>
internal bool IsCreatedView;
/// <summary>
/// 销毁内容
/// </summary>
public void DisposeContent()
......@@ -140,7 +145,7 @@ namespace VIZ.Framework.Common
private void TryCreateContent()
{
// 已经包含内容,则不创建
if (this.Content != null && !(this.Content is NavigationConfig))
if (this.IsCreatedView)
return;
NavigationConfig config = this.DataContext as NavigationConfig;
......@@ -152,6 +157,8 @@ namespace VIZ.Framework.Common
{
this.TryCreateContentFromViewType();
}
this.IsCreatedView = true;
}
/// <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