WinComputeRelations.xaml 3.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <windows:WinBase
  2. xmlns:windows="clr-namespace:SAGA.RevitUtils.Windows;assembly=SAGA.RevitUtils" x:Class="SAGA.GplotManage.RelationManager.WinComputeRelations"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  7. xmlns:local="clr-namespace:SAGA.GplotManage.RelationManager"
  8. mc:Ignorable="d"
  9. Title="计算拓扑关系数据" Height="450" Width="800">
  10. <Grid Margin="5">
  11. <Grid.RowDefinitions>
  12. <RowDefinition></RowDefinition>
  13. <RowDefinition Height="30"></RowDefinition>
  14. <RowDefinition Height="30"></RowDefinition>
  15. </Grid.RowDefinitions>
  16. <GroupBox Grid.Row="0" Header="拓扑关系型号列表" Margin="3" BorderBrush="Black">
  17. <ListBox ItemsSource="{Binding CheckdItems}" BorderThickness="0" ScrollViewer.HorizontalScrollBarVisibility="Disabled" Margin="0,5,0,5">
  18. <ListBox.ItemsPanel >
  19. <ItemsPanelTemplate>
  20. <WrapPanel Orientation="Horizontal" Width="{Binding Path=Width,RelativeSource={RelativeSource AncestorType=ListBox}}"/>
  21. </ItemsPanelTemplate>
  22. </ListBox.ItemsPanel>
  23. <ListBox.ItemContainerStyle>
  24. <Style TargetType="{x:Type ListBoxItem}">
  25. <Setter Property="Template">
  26. <Setter.Value>
  27. <ControlTemplate TargetType="{x:Type ListBoxItem}">
  28. <Border Width="150">
  29. <CheckBox IsChecked="{Binding IsChecked,Mode=TwoWay}" HorizontalAlignment="Stretch">
  30. <CheckBox.Content>
  31. <TextBlock TextWrapping="NoWrap" TextTrimming="CharacterEllipsis" Text="{Binding Uploader.Display}"></TextBlock>
  32. </CheckBox.Content>
  33. </CheckBox>
  34. <Border.ToolTip>
  35. <TextBlock TextWrapping="Wrap" Text="{Binding Uploader.Display}"></TextBlock>
  36. </Border.ToolTip>
  37. </Border>
  38. </ControlTemplate>
  39. </Setter.Value>
  40. </Setter>
  41. </Style>
  42. </ListBox.ItemContainerStyle>
  43. </ListBox>
  44. </GroupBox>
  45. <StackPanel Grid.Row="1" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Center">
  46. <Grid>
  47. <Grid.ColumnDefinitions>
  48. <ColumnDefinition></ColumnDefinition>
  49. <ColumnDefinition></ColumnDefinition>
  50. </Grid.ColumnDefinitions>
  51. <CheckBox IsChecked="{Binding IsReCompute,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Content="重新计算选中拓扑" HorizontalAlignment="Center" VerticalAlignment="Center"></CheckBox>
  52. <CheckBox IsChecked="{Binding IsUplod,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Grid.Column="1" Content="重新上传选中拓扑" HorizontalAlignment="Center" VerticalAlignment="Center"></CheckBox>
  53. </Grid>
  54. </StackPanel>
  55. <StackPanel Grid.Row="2" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Right">
  56. <Button Height="23" Width="60" Margin="10,0" Content="计算" Click="Ensure_Click"/>
  57. <Button Height="23" Width="60" Margin="10,0" Content="关闭" Click="Close_Click"/>
  58. </StackPanel>
  59. </Grid>
  60. </windows:WinBase>