1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- <windows:WinBase
- xmlns:windows="clr-namespace:SAGA.RevitUtils.Windows;assembly=SAGA.RevitUtils" x:Class="SAGA.GplotManage.RelationManager.WinComputeRelations"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:local="clr-namespace:SAGA.GplotManage.RelationManager"
- mc:Ignorable="d"
- Title="计算拓扑关系数据" Height="450" Width="800">
- <Grid Margin="5">
- <Grid.RowDefinitions>
- <RowDefinition></RowDefinition>
- <RowDefinition Height="30"></RowDefinition>
- <RowDefinition Height="30"></RowDefinition>
- </Grid.RowDefinitions>
- <GroupBox Grid.Row="0" Header="拓扑关系型号列表" Margin="3" BorderBrush="Black">
- <ListBox ItemsSource="{Binding CheckdItems}" BorderThickness="0" ScrollViewer.HorizontalScrollBarVisibility="Disabled" Margin="0,5,0,5">
- <ListBox.ItemsPanel >
- <ItemsPanelTemplate>
- <WrapPanel Orientation="Horizontal" Width="{Binding Path=Width,RelativeSource={RelativeSource AncestorType=ListBox}}"/>
- </ItemsPanelTemplate>
- </ListBox.ItemsPanel>
- <ListBox.ItemContainerStyle>
- <Style TargetType="{x:Type ListBoxItem}">
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type ListBoxItem}">
- <Border Width="150">
- <CheckBox IsChecked="{Binding IsChecked,Mode=TwoWay}" HorizontalAlignment="Stretch">
- <CheckBox.Content>
- <TextBlock TextWrapping="NoWrap" TextTrimming="CharacterEllipsis" Text="{Binding Uploader.Display}"></TextBlock>
- </CheckBox.Content>
- </CheckBox>
- <Border.ToolTip>
- <TextBlock TextWrapping="Wrap" Text="{Binding Uploader.Display}"></TextBlock>
- </Border.ToolTip>
- </Border>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- </ListBox.ItemContainerStyle>
- </ListBox>
- </GroupBox>
- <StackPanel Grid.Row="1" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Center">
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition></ColumnDefinition>
- <ColumnDefinition></ColumnDefinition>
- </Grid.ColumnDefinitions>
- <CheckBox IsChecked="{Binding IsReCompute,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Content="重新计算选中拓扑" HorizontalAlignment="Center" VerticalAlignment="Center"></CheckBox>
- <CheckBox IsChecked="{Binding IsUplod,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Grid.Column="1" Content="重新上传选中拓扑" HorizontalAlignment="Center" VerticalAlignment="Center"></CheckBox>
- </Grid>
- </StackPanel>
- <StackPanel Grid.Row="2" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Right">
- <Button Height="23" Width="60" Margin="10,0" Content="计算" Click="Ensure_Click"/>
- <Button Height="23" Width="60" Margin="10,0" Content="关闭" Click="Close_Click"/>
- </StackPanel>
- </Grid>
- </windows:WinBase>
|