添加项目文件。

This commit is contained in:
GG Z
2024-09-22 11:05:41 +08:00
parent fb5d55723a
commit 49ceaae6a8
764 changed files with 78850 additions and 0 deletions

View File

@@ -0,0 +1,61 @@
<ex:FluentWindowEx
x:Class="Sai.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:ex="https://github.com/sherlockforrest/Wpf.Ui.Extend"
xmlns:local="clr-namespace:Sai.RvKits.RvCommon"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:ui="http://schemas.lepo.co/wpfui/2022/xaml"
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:,,,/Sai.RvKits;component/WPFUI.xaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Window.Resources>
<ex:StackPanelEx Margin="5" Spacing="5">
<ex:ComboBoxEx
DisplayMemberPath="Name"
ItemsSource="{Binding Families}"
PlaceholderText="选择族"
SelectedItem="{Binding SelectedFamily, UpdateSourceTrigger=PropertyChanged}" />
<ex: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}" />
<ex: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:Sai.RvKits.ValidationRules" ValidatesOnTargetUpdated="True" />
</Binding.ValidationRules>
</Binding>
</TextBox.Text>-->
</ex:TextBoxEx>
<Button
Grid.Row="4"
HorizontalAlignment="Stretch"
Command="{Binding PlaceInstancesCommand}"
Content="布置"
ToolTip="选择dwg块并布置族实例" />
</ex:StackPanelEx>
</ex:FluentWindowEx>