整理代码

This commit is contained in:
GG Z
2026-02-20 15:31:44 +08:00
parent 94cf3f3266
commit 9f121cfc7f
149 changed files with 4063 additions and 6964 deletions

View File

@@ -1,12 +1,12 @@
<ResourceDictionary
mc:Ignorable="d"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:converters="clr-namespace:ShrlAlgoToolkit.Mvvm.Converters;assembly=ShrlAlgoToolkit.Mvvm"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:converters="clr-namespace:ShrlAlgoToolkit.RevitAddins.Converters"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:familyLibrary="clr-namespace:ShrlAlgoToolkit.RevitAddins.RvFamily.FamilyLibrary"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:ui="https://github.com/ShrlAlgo/Melskin"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
mc:Ignorable="d">
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="pack://application:,,,/Melskin;component/Themes/Light.xaml" />
<ResourceDictionary Source="pack://application:,,,/Melskin;component/Themes/Accents/LightBlue.xaml" />
@@ -41,7 +41,7 @@
<converters:ComparisonConverter x:Key="ComparisonConverter" />
<!--#endregion-->
<DataTemplate DataType="{x:Type familyLibrary:FamilyModel}" x:Key="FamilyGalleryItemTemplate">
<DataTemplate x:Key="FamilyGalleryItemTemplate" DataType="{x:Type familyLibrary:FamilyModel}">
<Grid>
<Button
Command="{Binding PlaceRecentFamilyCommand}"
@@ -62,30 +62,30 @@
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Button}">
<Grid Background="#01000000" Margin="0">
<Grid Margin="0" Background="#01000000">
<Border
BorderBrush="Black"
BorderThickness="1"
HorizontalAlignment="Center"
VerticalAlignment="Center">
VerticalAlignment="Center"
BorderBrush="Black"
BorderThickness="1">
<Image
Height="{TemplateBinding Height}"
Name="Image"
Width="{TemplateBinding Width}"
Height="{TemplateBinding Height}"
Source="{Binding BitmapImage}"
Stretch="Fill"
Width="{TemplateBinding Width}" />
Stretch="Fill" />
</Border>
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="RenderTransform" TargetName="Image">
<Setter TargetName="Image" Property="RenderTransform">
<Setter.Value>
<ScaleTransform CenterX="28" CenterY="28" ScaleX="1.1" ScaleY="1.1" />
</Setter.Value>
</Setter>
</Trigger>
<Trigger Property="IsPressed" Value="True">
<Setter Property="RenderTransform" TargetName="Image">
<Setter TargetName="Image" Property="RenderTransform">
<Setter.Value>
<ScaleTransform CenterX="28" CenterY="28" ScaleX="1" ScaleY="1" />
</Setter.Value>