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