12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- <Window x:Class="SAGA.MBI.ToolsData.ModeCheck.WinSelectCheckFloors"
- 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:local="clr-namespace:SAGA.MBI.ToolsData.ModeCheck"
- xmlns:common="clr-namespace:SAGA.MBI.Common"
- xmlns:converter="clr-namespace:SAGA.DotNetUtils.WPF.Converter;assembly=SAGA.DotNetUtils"
- xmlns:userControl="clr-namespace:SAGA.DotNetUtils.WPF.UserControl;assembly=SAGA.DotNetUtils"
- xmlns:checkBase="clr-namespace:SAGA.MBI.ToolsData.CheckBase"
- xmlns:dataCheck="clr-namespace:SAGA.MBI.ToolsData.DataCheck"
- mc:Ignorable="d" Title="选择楼层" WindowStartupLocation="CenterScreen"
- Height="587" Width="400">
- <Window.Resources>
- <converter:BoolToInverserConverter x:Key="BoolInverseConverter"></converter:BoolToInverserConverter>
- <converter:StringToImageConverter x:Key="StringToImageConverter"></converter:StringToImageConverter>
- </Window.Resources>
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="40"></RowDefinition>
- <RowDefinition Height="*"></RowDefinition>
- <RowDefinition Height="40"></RowDefinition>
- </Grid.RowDefinitions>
- <Grid Grid.Row="0">
- <WrapPanel VerticalAlignment="Center">
- <Label Margin="5,0,0,0" Content="当前项目:" FontSize="15"></Label>
- <Label Content="{x:Static common:MBIControl.ProjectCur}" FontSize="15"></Label>
- </WrapPanel>
- </Grid>
- <Grid Grid.Row="1">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="*"></ColumnDefinition>
- </Grid.ColumnDefinitions>
- <Grid Grid.Column="0">
- <Grid.RowDefinitions>
- <RowDefinition Height="*"></RowDefinition>
- </Grid.RowDefinitions>
- <GroupBox Grid.Row="0" Header="请选择需要检查的建筑">
- <TreeView ItemsSource="{Binding Path=ProjectList}">
- <TreeView.ItemTemplate>
- <HierarchicalDataTemplate ItemsSource="{Binding Path=Children}">
- <WrapPanel>
- <CheckBox IsChecked="{Binding Path=IsSelected,UpdateSourceTrigger=PropertyChanged,Mode=TwoWay}"
- Width="Auto" VerticalContentAlignment="Center"
- Click="TreeItem_Click">
- </CheckBox>
- <Label Content="{Binding Path=Item.TvItemName}"></Label>
- </WrapPanel>
- </HierarchicalDataTemplate>
- </TreeView.ItemTemplate>
- <TreeView.ItemContainerStyle>
- <Style TargetType="{x:Type TreeViewItem}">
- <Setter Property="IsExpanded" Value="True" />
- </Style>
- </TreeView.ItemContainerStyle>
- </TreeView>
- </GroupBox>
- </Grid>
- </Grid>
- <Grid Grid.Row="2">
- <Grid.RowDefinitions>
- <RowDefinition></RowDefinition>
- </Grid.RowDefinitions>
- <Grid Grid.Row="0">
- <Grid.ColumnDefinitions>
- <ColumnDefinition></ColumnDefinition>
- <ColumnDefinition></ColumnDefinition>
- </Grid.ColumnDefinitions>
- <Button Grid.Column="0" Width="100" Height="25" Content="确定" HorizontalAlignment="Right" Margin="0,0,20,0" VerticalAlignment="Center" Click="ButtonNext_OnClick" IsDefault="True"></Button>
- <Button Grid.Column="1" Width="100" Height="25" Content="取消" HorizontalAlignment="Left" Margin="20,0,0,0" VerticalAlignment="Center" IsCancel="True" Background="White"></Button>
- </Grid>
- </Grid>
- </Grid>
- </Window>
|