修改页面名称
This commit is contained in:
parent
648372b043
commit
ac91cf996f
|
@ -33,6 +33,6 @@
|
|||
</Metro:MetroTitleMenu>
|
||||
</Metro:MetroWindow.Menu>
|
||||
<Grid>
|
||||
<ContentControl Content="{Binding MainInfo}"/>
|
||||
<ContentControl Content="{Binding TeachingInfo}"/>
|
||||
</Grid>
|
||||
</Metro:MetroWindow>
|
||||
|
|
|
@ -17,11 +17,11 @@ namespace JianGongYun.ViewModel
|
|||
/// <summary>
|
||||
/// 实用案例
|
||||
/// </summary>
|
||||
private UserControl _MainInfo = new MainInfo();
|
||||
public UserControl MainInfo
|
||||
private UserControl _TeachingInfo = new TeachingInfo();
|
||||
public UserControl TeachingInfo
|
||||
{
|
||||
get { return _MainInfo; }
|
||||
set { Set(ref _MainInfo, value); }
|
||||
get { return _TeachingInfo; }
|
||||
set { Set(ref _TeachingInfo, value); }
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -39,7 +39,7 @@ namespace JianGongYun.ViewModel.ModuleViewModel
|
|||
set { Set(ref _ControlList, value); }
|
||||
}
|
||||
|
||||
private CollectionViewSource _AllControl;
|
||||
private CollectionViewSource _AllControl=new CollectionViewSource();
|
||||
/// <summary>
|
||||
/// 所有控件
|
||||
/// </summary>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<UserControl x:Class="JianGongYun.Views.MainInfo"
|
||||
<UserControl x:Class="JianGongYun.Views.TeachingInfo"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
@ -13,11 +13,11 @@ using System.Windows.Shapes;
|
|||
namespace JianGongYun.Views
|
||||
{
|
||||
/// <summary>
|
||||
/// MainInfo.xaml 的交互逻辑
|
||||
/// TeachingInfo.xaml 的交互逻辑
|
||||
/// </summary>
|
||||
public partial class MainInfo : UserControl
|
||||
public partial class TeachingInfo : UserControl
|
||||
{
|
||||
public MainInfo()
|
||||
public TeachingInfo()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
Loading…
Reference in New Issue