init
This commit is contained in:
23
DTS Viewer/DTS.Viewer.Loader/View/ShellView.xaml
Normal file
23
DTS Viewer/DTS.Viewer.Loader/View/ShellView.xaml
Normal file
@@ -0,0 +1,23 @@
|
||||
<base:BaseWindow x:Class="DTS.Viewer.Loader.ShellView"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:base="clr-namespace:DTS.Common.Base;assembly=DTS.Common"
|
||||
Background="Silver"
|
||||
VerticalAlignment="Stretch" HorizontalAlignment="Stretch"
|
||||
VerticalContentAlignment="Stretch" HorizontalContentAlignment="Stretch"
|
||||
Height="Auto" Width="Auto" SizeToContent="WidthAndHeight" >
|
||||
|
||||
<Grid x:Name="MainShell" VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="*"/>
|
||||
</Grid.RowDefinitions>
|
||||
<ContentControl Grid.Row="0" x:Name="MainRegion" Content="{Binding ContextMainRegion}" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" >
|
||||
<ContentControl.Template>
|
||||
<ControlTemplate TargetType="ContentControl">
|
||||
<ContentPresenter Content="{TemplateBinding Content}" />
|
||||
</ControlTemplate>
|
||||
</ContentControl.Template>
|
||||
</ContentControl>
|
||||
</Grid>
|
||||
</base:BaseWindow>
|
||||
|
||||
21
DTS Viewer/DTS.Viewer.Loader/View/ShellView.xaml.cs
Normal file
21
DTS Viewer/DTS.Viewer.Loader/View/ShellView.xaml.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using System.Windows;
|
||||
using DTS.Common.Interface;
|
||||
|
||||
namespace DTS.Viewer.Loader
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for ShellView.xaml
|
||||
/// </summary>
|
||||
public partial class ShellView : IShellView
|
||||
{
|
||||
public ShellView()
|
||||
{
|
||||
InitializeComponent();
|
||||
this.WindowState = WindowState.Maximized;
|
||||
//this.StateChanged += (s, e) =>
|
||||
//{
|
||||
// ResizeMode = WindowState == WindowState.Maximized ? ResizeMode.NoResize : ResizeMode.CanResize;
|
||||
//};
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user