调整代码
This commit is contained in:
@@ -0,0 +1,59 @@
|
||||
<ui:MelWindow
|
||||
x:Class="ShrlAlgoToolkit.RevitAddins.Modeling.InstanceCreatorView"
|
||||
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:local1="clr-namespace:ShrlAlgoToolkit.RevitAddins.Modeling"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:ui="https://github.com/ShrlAlgo/Melskin"
|
||||
Title="族实例布置"
|
||||
Width="220"
|
||||
Height="340"
|
||||
MinHeight="300"
|
||||
d:DataContext="{d:DesignInstance local1:InstanceCreatorViewModel}"
|
||||
Icon="{DynamicResource RevitIcon}"
|
||||
mc:Ignorable="d">
|
||||
<Window.Resources>
|
||||
<ResourceDictionary>
|
||||
<ResourceDictionary.MergedDictionaries>
|
||||
<ResourceDictionary Source="pack://application:,,,/ShrlAlgoToolkit.RevitAddins;component/WPFUI.xaml" />
|
||||
</ResourceDictionary.MergedDictionaries>
|
||||
</ResourceDictionary>
|
||||
</Window.Resources>
|
||||
<ui:StackPanel Margin="5" Spacing="5">
|
||||
<ComboBox
|
||||
ui:InputAssist.PlaceholderText="选择族"
|
||||
DisplayMemberPath="Name"
|
||||
ItemsSource="{Binding Families}"
|
||||
SelectedItem="{Binding SelectedFamily, UpdateSourceTrigger=PropertyChanged}" />
|
||||
<ComboBox
|
||||
ui:InputAssist.PlaceholderText="选择族类型"
|
||||
DisplayMemberPath="Name"
|
||||
ItemsSource="{Binding FamilySymbols, Mode=OneWay}"
|
||||
SelectedItem="{Binding SelectedFamilySymbol, UpdateSourceTrigger=PropertyChanged}" />
|
||||
<Image
|
||||
Grid.Row="2"
|
||||
Width="128"
|
||||
Height="128"
|
||||
Source="{Binding Image}" />
|
||||
<TextBox
|
||||
Grid.Row="3"
|
||||
ui:InputAssist.Prefix="偏移量:"
|
||||
ui:InputAssist.Suffix="mm"
|
||||
Text="{Binding Offset}">
|
||||
<!--<TextBox.Text>
|
||||
<Binding Path="Offset" UpdateSourceTrigger="PropertyChanged">
|
||||
<Binding.ValidationRules>
|
||||
<rules:DoubleValidationRule xmlns:rules="clr-namespace:ShrlAlgo.RvKits.ValidationRules" ValidatesOnTargetUpdated="True" />
|
||||
</Binding.ValidationRules>
|
||||
</Binding>
|
||||
</TextBox.Text>-->
|
||||
</TextBox>
|
||||
<Button
|
||||
Grid.Row="4"
|
||||
HorizontalAlignment="Stretch"
|
||||
Command="{Binding PlaceInstancesCommand}"
|
||||
Content="布置"
|
||||
ToolTip="选择dwg块并布置族实例" />
|
||||
</ui:StackPanel>
|
||||
</ui:MelWindow>
|
||||
Reference in New Issue
Block a user