Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
VIZ.Framework
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
刘龙飞
VIZ.Framework
Commits
a8013904
Commit
a8013904
authored
Feb 14, 2023
by
liulongfei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug修复
parent
2a15ab83
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletions
+8
-1
VIZ.Framework.Common/Widgets/NavigationControl/NavigationItemControl.cs
+8
-1
No files found.
VIZ.Framework.Common/Widgets/NavigationControl/NavigationItemControl.cs
View file @
a8013904
...
...
@@ -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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment