整理代码
This commit is contained in:
46
ShrlAlgoToolkit.RevitAddins/RvCivil/CreateOpeningsView.xaml
Normal file
46
ShrlAlgoToolkit.RevitAddins/RvCivil/CreateOpeningsView.xaml
Normal file
@@ -0,0 +1,46 @@
|
||||
<ui:FluentWindowEx
|
||||
x:Class="ShrlAlgo.RvKits.RvCivil.CreateOpeningsView"
|
||||
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:rvCivil="clr-namespace:ShrlAlgo.RvKits.RvCivil"
|
||||
xmlns:ui="https://github.com/ShrlAlgo/WPFluent"
|
||||
Title="开洞设置"
|
||||
Width="200"
|
||||
Height="220"
|
||||
d:DataContext="{d:DesignInstance Type={x:Type rvCivil:CreateOpeningsViewModel}}"
|
||||
ui:Design.Background="{DynamicResource ApplicationBackgroundBrush}"
|
||||
ui:Design.Foreground="{DynamicResource TextFillColorPrimaryBrush}"
|
||||
mc:Ignorable="d">
|
||||
<Window.Resources>
|
||||
<ResourceDictionary Source="pack://application:,,,/ShrlAlgoToolkit.RevitAddins;component/WPFUI.xaml" />
|
||||
</Window.Resources>
|
||||
<ui:AutoGrid
|
||||
ChildHorizontalAlignment="Stretch"
|
||||
ChildMargin="5"
|
||||
Columns="*"
|
||||
RowHeight="*"
|
||||
Rows="Auto,Auto,Auto">
|
||||
<ui:TextBoxEx
|
||||
Prefix="向外延伸距离:"
|
||||
Suffix="mm"
|
||||
Text="{Binding Distance, StringFormat={}{0:N2}}" />
|
||||
<CheckBox
|
||||
x:Name="CbAddCasing"
|
||||
Content="添加套管"
|
||||
IsChecked="{Binding AddCasing}" />
|
||||
<ComboBox
|
||||
DisplayMemberPath="Name"
|
||||
IsEnabled="{Binding IsChecked, ElementName=CbAddCasing}"
|
||||
ItemsSource="{Binding CasingFiles}"
|
||||
SelectedItem="{Binding SelectedCasing}" />
|
||||
<!-- Command="{Binding DataContext.CloseWinCommand, RelativeSource={RelativeSource AncestorType={x:Type Window}, Mode=FindAncestor}}" -->
|
||||
<Button
|
||||
HorizontalAlignment="Stretch"
|
||||
ui:AutoGrid.RowHeightOverride="Auto"
|
||||
Command="{Binding CreateOpeningsCommand}"
|
||||
Content="开洞"
|
||||
ToolTip="选择添加套管则使用套管开洞" />
|
||||
</ui:AutoGrid>
|
||||
</ui:FluentWindowEx>
|
||||
Reference in New Issue
Block a user