优化更新代码,添加界面功能并整合
This commit is contained in:
61
ShrlAlgo.RvKits/RvCommon/InstanceCreatorView.xaml
Normal file
61
ShrlAlgo.RvKits/RvCommon/InstanceCreatorView.xaml
Normal file
@@ -0,0 +1,61 @@
|
||||
<ui:FluentWindowEx
|
||||
x:Class="ShrlAlgo.RvKits.RvCommon.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:local="clr-namespace:ShrlAlgo.RvKits.RvCommon"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:ui="https://github.com/ShrlAlgo/WPFluent"
|
||||
Title="族实例布置"
|
||||
Width="220"
|
||||
Height="340"
|
||||
MinHeight="300"
|
||||
d:DataContext="{d:DesignInstance local:InstanceCreatorViewModel}"
|
||||
mc:Ignorable="d">
|
||||
<Window.Resources>
|
||||
<ResourceDictionary>
|
||||
<ResourceDictionary.MergedDictionaries>
|
||||
<ResourceDictionary Source="pack://application:,,,/ShrlAlgo.RvKits;component/WPFUI.xaml" />
|
||||
</ResourceDictionary.MergedDictionaries>
|
||||
</ResourceDictionary>
|
||||
</Window.Resources>
|
||||
<ui:StackPanelEx Margin="5" Spacing="5">
|
||||
<ui:ComboBoxEx
|
||||
DisplayMemberPath="Name"
|
||||
ItemsSource="{Binding Families}"
|
||||
PlaceholderText="选择族"
|
||||
SelectedItem="{Binding SelectedFamily, UpdateSourceTrigger=PropertyChanged}" />
|
||||
<ui:ComboBoxEx
|
||||
DisplayMemberPath="Name"
|
||||
IsSynchronizedWithCurrentItem="True"
|
||||
ItemsSource="{Binding FamilySymbols, Mode=OneWay}"
|
||||
PlaceholderText="选择族类型"
|
||||
SelectedItem="{Binding SelectedFamilySymbol, UpdateSourceTrigger=PropertyChanged}"
|
||||
ShowFilterBox="False" />
|
||||
<Image
|
||||
Grid.Row="2"
|
||||
Width="128"
|
||||
Height="128"
|
||||
Source="{Binding Image}" />
|
||||
<ui:TextBoxEx
|
||||
Grid.Row="3"
|
||||
Prefix="偏移量:"
|
||||
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>-->
|
||||
</ui:TextBoxEx>
|
||||
<Button
|
||||
Grid.Row="4"
|
||||
HorizontalAlignment="Stretch"
|
||||
Command="{Binding PlaceInstancesCommand}"
|
||||
Content="布置"
|
||||
ToolTip="选择dwg块并布置族实例" />
|
||||
</ui:StackPanelEx>
|
||||
</ui:FluentWindowEx>
|
||||
Reference in New Issue
Block a user