WinSelectCheckFloors.xaml 4.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. <Window x:Class="SAGA.MBI.ToolsData.ModeCheck.WinSelectCheckFloors"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:SAGA.MBI.ToolsData.ModeCheck"
  7. xmlns:common="clr-namespace:SAGA.MBI.Common"
  8. xmlns:converter="clr-namespace:SAGA.DotNetUtils.WPF.Converter;assembly=SAGA.DotNetUtils"
  9. xmlns:userControl="clr-namespace:SAGA.DotNetUtils.WPF.UserControl;assembly=SAGA.DotNetUtils"
  10. xmlns:checkBase="clr-namespace:SAGA.MBI.ToolsData.CheckBase"
  11. xmlns:dataCheck="clr-namespace:SAGA.MBI.ToolsData.DataCheck"
  12. mc:Ignorable="d" Title="选择楼层" WindowStartupLocation="CenterScreen"
  13. Height="587" Width="400">
  14. <Window.Resources>
  15. <converter:BoolToInverserConverter x:Key="BoolInverseConverter"></converter:BoolToInverserConverter>
  16. <converter:StringToImageConverter x:Key="StringToImageConverter"></converter:StringToImageConverter>
  17. </Window.Resources>
  18. <Grid>
  19. <Grid.RowDefinitions>
  20. <RowDefinition Height="40"></RowDefinition>
  21. <RowDefinition Height="*"></RowDefinition>
  22. <RowDefinition Height="40"></RowDefinition>
  23. </Grid.RowDefinitions>
  24. <Grid Grid.Row="0">
  25. <WrapPanel VerticalAlignment="Center">
  26. <Label Margin="5,0,0,0" Content="当前项目:" FontSize="15"></Label>
  27. <Label Content="{x:Static common:MBIControl.ProjectCur}" FontSize="15"></Label>
  28. </WrapPanel>
  29. </Grid>
  30. <Grid Grid.Row="1">
  31. <Grid.ColumnDefinitions>
  32. <ColumnDefinition Width="*"></ColumnDefinition>
  33. </Grid.ColumnDefinitions>
  34. <Grid Grid.Column="0">
  35. <Grid.RowDefinitions>
  36. <RowDefinition Height="*"></RowDefinition>
  37. </Grid.RowDefinitions>
  38. <GroupBox Grid.Row="0" Header="请选择需要检查的建筑">
  39. <TreeView ItemsSource="{Binding Path=ProjectList}">
  40. <TreeView.ItemTemplate>
  41. <HierarchicalDataTemplate ItemsSource="{Binding Path=Children}">
  42. <WrapPanel>
  43. <CheckBox IsChecked="{Binding Path=IsSelected,UpdateSourceTrigger=PropertyChanged,Mode=TwoWay}"
  44. Width="Auto" VerticalContentAlignment="Center"
  45. Click="TreeItem_Click">
  46. </CheckBox>
  47. <Label Content="{Binding Path=Item.TvItemName}"></Label>
  48. </WrapPanel>
  49. </HierarchicalDataTemplate>
  50. </TreeView.ItemTemplate>
  51. <TreeView.ItemContainerStyle>
  52. <Style TargetType="{x:Type TreeViewItem}">
  53. <Setter Property="IsExpanded" Value="True" />
  54. </Style>
  55. </TreeView.ItemContainerStyle>
  56. </TreeView>
  57. </GroupBox>
  58. </Grid>
  59. </Grid>
  60. <Grid Grid.Row="2">
  61. <Grid.RowDefinitions>
  62. <RowDefinition></RowDefinition>
  63. </Grid.RowDefinitions>
  64. <Grid Grid.Row="0">
  65. <Grid.ColumnDefinitions>
  66. <ColumnDefinition></ColumnDefinition>
  67. <ColumnDefinition></ColumnDefinition>
  68. </Grid.ColumnDefinitions>
  69. <Button Grid.Column="0" Width="100" Height="25" Content="确定" HorizontalAlignment="Right" Margin="0,0,20,0" VerticalAlignment="Center" Click="ButtonNext_OnClick" IsDefault="True"></Button>
  70. <Button Grid.Column="1" Width="100" Height="25" Content="取消" HorizontalAlignment="Left" Margin="20,0,0,0" VerticalAlignment="Center" IsCancel="True" Background="White"></Button>
  71. </Grid>
  72. </Grid>
  73. </Grid>
  74. </Window>