添加项目文件。
This commit is contained in:
258
MainModule/Views/MainView.xaml
Normal file
258
MainModule/Views/MainView.xaml
Normal file
@@ -0,0 +1,258 @@
|
||||
<UserControl x:Class="MainModule.Views.MainView"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
|
||||
xmlns:prism="http://prismlibrary.com/"
|
||||
xmlns:converters="clr-namespace:UIShare.Converters;assembly=UIShare"
|
||||
prism:ViewModelLocator.AutoWireViewModel="True"
|
||||
mc:Ignorable="d" d:DesignHeight="1080" d:DesignWidth="1920">
|
||||
<i:Interaction.Triggers>
|
||||
<i:EventTrigger EventName="Loaded">
|
||||
<i:InvokeCommandAction Command="{Binding LoadedCommand}"/>
|
||||
</i:EventTrigger>
|
||||
</i:Interaction.Triggers>
|
||||
|
||||
<UserControl.Resources>
|
||||
<converters:StringToVisibilityConverter x:Key="StringToVisibilityConverter"/>
|
||||
</UserControl.Resources>
|
||||
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="*"/>
|
||||
<RowDefinition Height="*"/>
|
||||
<RowDefinition Height="*"/>
|
||||
</Grid.RowDefinitions>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<!-- 单元 1:TestCell1,默认 (0,0) -->
|
||||
<ContentControl prism:RegionManager.RegionName="TestCell1" Margin="2">
|
||||
<ContentControl.Style>
|
||||
<Style TargetType="ContentControl">
|
||||
<Setter Property="Grid.Row" Value="0"/>
|
||||
<Setter Property="Grid.Column" Value="0"/>
|
||||
<Setter Property="Grid.RowSpan" Value="1"/>
|
||||
<Setter Property="Grid.ColumnSpan" Value="1"/>
|
||||
<Style.Triggers>
|
||||
<DataTrigger Binding="{Binding ExpandedCellName, Converter={StaticResource StringToVisibilityConverter}}" Value="Visible">
|
||||
<Setter Property="Visibility" Value="Collapsed"/>
|
||||
</DataTrigger>
|
||||
<DataTrigger Binding="{Binding ExpandedCellName}" Value="TestCell1">
|
||||
<Setter Property="Visibility" Value="Visible"/>
|
||||
<Setter Property="Grid.Row" Value="0"/>
|
||||
<Setter Property="Grid.Column" Value="0"/>
|
||||
<Setter Property="Grid.RowSpan" Value="3"/>
|
||||
<Setter Property="Grid.ColumnSpan" Value="3"/>
|
||||
<Setter Property="Panel.ZIndex" Value="99"/>
|
||||
</DataTrigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
</ContentControl.Style>
|
||||
</ContentControl>
|
||||
|
||||
<!-- 单元 2:TestCell2,默认 (0,1) -->
|
||||
<ContentControl prism:RegionManager.RegionName="TestCell2" Margin="2">
|
||||
<ContentControl.Style>
|
||||
<Style TargetType="ContentControl">
|
||||
<Setter Property="Grid.Row" Value="0"/>
|
||||
<Setter Property="Grid.Column" Value="1"/>
|
||||
<Setter Property="Grid.RowSpan" Value="1"/>
|
||||
<Setter Property="Grid.ColumnSpan" Value="1"/>
|
||||
<Style.Triggers>
|
||||
<DataTrigger Binding="{Binding ExpandedCellName, Converter={StaticResource StringToVisibilityConverter}}" Value="Visible">
|
||||
<Setter Property="Visibility" Value="Collapsed"/>
|
||||
</DataTrigger>
|
||||
<DataTrigger Binding="{Binding ExpandedCellName}" Value="TestCell2">
|
||||
<Setter Property="Visibility" Value="Visible"/>
|
||||
<Setter Property="Grid.Row" Value="0"/>
|
||||
<Setter Property="Grid.Column" Value="0"/>
|
||||
<Setter Property="Grid.RowSpan" Value="3"/>
|
||||
<Setter Property="Grid.ColumnSpan" Value="3"/>
|
||||
<Setter Property="Panel.ZIndex" Value="99"/>
|
||||
</DataTrigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
</ContentControl.Style>
|
||||
</ContentControl>
|
||||
|
||||
<!-- 单元 3:TestCell3,默认 (0,2) -->
|
||||
<ContentControl prism:RegionManager.RegionName="TestCell3" Margin="2">
|
||||
<ContentControl.Style>
|
||||
<Style TargetType="ContentControl">
|
||||
<Setter Property="Grid.Row" Value="0"/>
|
||||
<Setter Property="Grid.Column" Value="2"/>
|
||||
<Setter Property="Grid.RowSpan" Value="1"/>
|
||||
<Setter Property="Grid.ColumnSpan" Value="1"/>
|
||||
<Style.Triggers>
|
||||
<DataTrigger Binding="{Binding ExpandedCellName, Converter={StaticResource StringToVisibilityConverter}}" Value="Visible">
|
||||
<Setter Property="Visibility" Value="Collapsed"/>
|
||||
</DataTrigger>
|
||||
<DataTrigger Binding="{Binding ExpandedCellName}" Value="TestCell3">
|
||||
<Setter Property="Visibility" Value="Visible"/>
|
||||
<Setter Property="Grid.Row" Value="0"/>
|
||||
<Setter Property="Grid.Column" Value="0"/>
|
||||
<Setter Property="Grid.RowSpan" Value="3"/>
|
||||
<Setter Property="Grid.ColumnSpan" Value="3"/>
|
||||
<Setter Property="Panel.ZIndex" Value="99"/>
|
||||
</DataTrigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
</ContentControl.Style>
|
||||
</ContentControl>
|
||||
|
||||
<!-- 单元 4:TestCell4,默认 (1,0) -->
|
||||
<ContentControl prism:RegionManager.RegionName="TestCell4" Margin="2">
|
||||
<ContentControl.Style>
|
||||
<Style TargetType="ContentControl">
|
||||
<Setter Property="Grid.Row" Value="1"/>
|
||||
<Setter Property="Grid.Column" Value="0"/>
|
||||
<Setter Property="Grid.RowSpan" Value="1"/>
|
||||
<Setter Property="Grid.ColumnSpan" Value="1"/>
|
||||
<Style.Triggers>
|
||||
<DataTrigger Binding="{Binding ExpandedCellName, Converter={StaticResource StringToVisibilityConverter}}" Value="Visible">
|
||||
<Setter Property="Visibility" Value="Collapsed"/>
|
||||
</DataTrigger>
|
||||
<DataTrigger Binding="{Binding ExpandedCellName}" Value="TestCell4">
|
||||
<Setter Property="Visibility" Value="Visible"/>
|
||||
<Setter Property="Grid.Row" Value="0"/>
|
||||
<Setter Property="Grid.Column" Value="0"/>
|
||||
<Setter Property="Grid.RowSpan" Value="3"/>
|
||||
<Setter Property="Grid.ColumnSpan" Value="3"/>
|
||||
<Setter Property="Panel.ZIndex" Value="99"/>
|
||||
</DataTrigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
</ContentControl.Style>
|
||||
</ContentControl>
|
||||
|
||||
<!-- 单元 5:TestCell5,默认 (1,1) -->
|
||||
<ContentControl prism:RegionManager.RegionName="TestCell5" Margin="2">
|
||||
<ContentControl.Style>
|
||||
<Style TargetType="ContentControl">
|
||||
<Setter Property="Grid.Row" Value="1"/>
|
||||
<Setter Property="Grid.Column" Value="1"/>
|
||||
<Setter Property="Grid.RowSpan" Value="1"/>
|
||||
<Setter Property="Grid.ColumnSpan" Value="1"/>
|
||||
<Style.Triggers>
|
||||
<DataTrigger Binding="{Binding ExpandedCellName, Converter={StaticResource StringToVisibilityConverter}}" Value="Visible">
|
||||
<Setter Property="Visibility" Value="Collapsed"/>
|
||||
</DataTrigger>
|
||||
<DataTrigger Binding="{Binding ExpandedCellName}" Value="TestCell5">
|
||||
<Setter Property="Visibility" Value="Visible"/>
|
||||
<Setter Property="Grid.Row" Value="0"/>
|
||||
<Setter Property="Grid.Column" Value="0"/>
|
||||
<Setter Property="Grid.RowSpan" Value="3"/>
|
||||
<Setter Property="Grid.ColumnSpan" Value="3"/>
|
||||
<Setter Property="Panel.ZIndex" Value="99"/>
|
||||
</DataTrigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
</ContentControl.Style>
|
||||
</ContentControl>
|
||||
|
||||
<!-- 单元 6:TestCell6,默认 (1,2) -->
|
||||
<ContentControl prism:RegionManager.RegionName="TestCell6" Margin="2">
|
||||
<ContentControl.Style>
|
||||
<Style TargetType="ContentControl">
|
||||
<Setter Property="Grid.Row" Value="1"/>
|
||||
<Setter Property="Grid.Column" Value="2"/>
|
||||
<Setter Property="Grid.RowSpan" Value="1"/>
|
||||
<Setter Property="Grid.ColumnSpan" Value="1"/>
|
||||
<Style.Triggers>
|
||||
<DataTrigger Binding="{Binding ExpandedCellName, Converter={StaticResource StringToVisibilityConverter}}" Value="Visible">
|
||||
<Setter Property="Visibility" Value="Collapsed"/>
|
||||
</DataTrigger>
|
||||
<DataTrigger Binding="{Binding ExpandedCellName}" Value="TestCell6">
|
||||
<Setter Property="Visibility" Value="Visible"/>
|
||||
<Setter Property="Grid.Row" Value="0"/>
|
||||
<Setter Property="Grid.Column" Value="0"/>
|
||||
<Setter Property="Grid.RowSpan" Value="3"/>
|
||||
<Setter Property="Grid.ColumnSpan" Value="3"/>
|
||||
<Setter Property="Panel.ZIndex" Value="99"/>
|
||||
</DataTrigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
</ContentControl.Style>
|
||||
</ContentControl>
|
||||
|
||||
<!-- 单元 7:TestCell7,默认 (2,0) -->
|
||||
<ContentControl prism:RegionManager.RegionName="TestCell7" Margin="2">
|
||||
<ContentControl.Style>
|
||||
<Style TargetType="ContentControl">
|
||||
<Setter Property="Grid.Row" Value="2"/>
|
||||
<Setter Property="Grid.Column" Value="0"/>
|
||||
<Setter Property="Grid.RowSpan" Value="1"/>
|
||||
<Setter Property="Grid.ColumnSpan" Value="1"/>
|
||||
<Style.Triggers>
|
||||
<DataTrigger Binding="{Binding ExpandedCellName, Converter={StaticResource StringToVisibilityConverter}}" Value="Visible">
|
||||
<Setter Property="Visibility" Value="Collapsed"/>
|
||||
</DataTrigger>
|
||||
<DataTrigger Binding="{Binding ExpandedCellName}" Value="TestCell7">
|
||||
<Setter Property="Visibility" Value="Visible"/>
|
||||
<Setter Property="Grid.Row" Value="0"/>
|
||||
<Setter Property="Grid.Column" Value="0"/>
|
||||
<Setter Property="Grid.RowSpan" Value="3"/>
|
||||
<Setter Property="Grid.ColumnSpan" Value="3"/>
|
||||
<Setter Property="Panel.ZIndex" Value="99"/>
|
||||
</DataTrigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
</ContentControl.Style>
|
||||
</ContentControl>
|
||||
|
||||
<!-- 单元 8:TestCell8,默认 (2,1) -->
|
||||
<ContentControl prism:RegionManager.RegionName="TestCell8" Margin="2">
|
||||
<ContentControl.Style>
|
||||
<Style TargetType="ContentControl">
|
||||
<Setter Property="Grid.Row" Value="2"/>
|
||||
<Setter Property="Grid.Column" Value="1"/>
|
||||
<Setter Property="Grid.RowSpan" Value="1"/>
|
||||
<Setter Property="Grid.ColumnSpan" Value="1"/>
|
||||
<Style.Triggers>
|
||||
<DataTrigger Binding="{Binding ExpandedCellName, Converter={StaticResource StringToVisibilityConverter}}" Value="Visible">
|
||||
<Setter Property="Visibility" Value="Collapsed"/>
|
||||
</DataTrigger>
|
||||
<DataTrigger Binding="{Binding ExpandedCellName}" Value="TestCell8">
|
||||
<Setter Property="Visibility" Value="Visible"/>
|
||||
<Setter Property="Grid.Row" Value="0"/>
|
||||
<Setter Property="Grid.Column" Value="0"/>
|
||||
<Setter Property="Grid.RowSpan" Value="3"/>
|
||||
<Setter Property="Grid.ColumnSpan" Value="3"/>
|
||||
<Setter Property="Panel.ZIndex" Value="99"/>
|
||||
</DataTrigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
</ContentControl.Style>
|
||||
</ContentControl>
|
||||
|
||||
<!-- 单元 9:TestCell9,默认 (2,2) -->
|
||||
<ContentControl prism:RegionManager.RegionName="TestCell9" Margin="2">
|
||||
<ContentControl.Style>
|
||||
<Style TargetType="ContentControl">
|
||||
<Setter Property="Grid.Row" Value="2"/>
|
||||
<Setter Property="Grid.Column" Value="2"/>
|
||||
<Setter Property="Grid.RowSpan" Value="1"/>
|
||||
<Setter Property="Grid.ColumnSpan" Value="1"/>
|
||||
<Style.Triggers>
|
||||
<DataTrigger Binding="{Binding ExpandedCellName, Converter={StaticResource StringToVisibilityConverter}}" Value="Visible">
|
||||
<Setter Property="Visibility" Value="Collapsed"/>
|
||||
</DataTrigger>
|
||||
<DataTrigger Binding="{Binding ExpandedCellName}" Value="TestCell9">
|
||||
<Setter Property="Visibility" Value="Visible"/>
|
||||
<Setter Property="Grid.Row" Value="0"/>
|
||||
<Setter Property="Grid.Column" Value="0"/>
|
||||
<Setter Property="Grid.RowSpan" Value="3"/>
|
||||
<Setter Property="Grid.ColumnSpan" Value="3"/>
|
||||
<Setter Property="Panel.ZIndex" Value="99"/>
|
||||
</DataTrigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
</ContentControl.Style>
|
||||
</ContentControl>
|
||||
</Grid>
|
||||
</UserControl>
|
||||
Reference in New Issue
Block a user