整理控件库

This commit is contained in:
GG Z
2025-05-05 17:04:06 +08:00
parent 74532b77be
commit 3eaad7566e
283 changed files with 2156 additions and 17846 deletions

View File

@@ -4,8 +4,6 @@
Width="600"
d:DataContext="{d:DesignInstance modelManager:ModelCheckViewModel}"
mc:Ignorable="d"
wpf:Design.Background="{DynamicResource ApplicationBackgroundBrush}"
wpf:Design.Foreground="{DynamicResource TextFillColorPrimaryBrush}"
x:Class="ShrlAlgoToolkit.RevitAddins.ModelManager.ModelCheckView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:b="http://schemas.microsoft.com/xaml/behaviors"

View File

@@ -1,20 +1,11 @@
using System.IO;
using System.Text;
using System.Text;
using System.Windows;
using Autodesk.Revit.Attributes;
using Autodesk.Revit.DB;
using Autodesk.Revit.UI;
using Microsoft.Win32;
using Nice3point.Revit.Toolkit.External;
using ShrlAlgoToolkit.Revit.Assists;
using ShrlAlgoToolkit.Revit.Extensions;
namespace ShrlAlgo.Addin.Test;
namespace ShrlAlgoToolkit.RevitAddins.ModelManager;
/// <summary>
/// Revit执行命令
/// </summary>

View File

@@ -3,8 +3,6 @@
Width="800"
d:DataContext="{d:DesignInstance Type=local:TemplateManagerViewModel}"
mc:Ignorable="d"
ui:Design.Background="{DynamicResource ApplicationBackgroundBrush}"
ui:Design.Foreground="{DynamicResource TextFillColorPrimaryBrush}"
x:Class="ShrlAlgoToolkit.RevitAddins.ModelManager.TemplateManagerView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"

View File

@@ -4,8 +4,6 @@
Width="200"
d:DataContext="{d:DesignInstance Type={x:Type rvCivil1:CreateOpeningsViewModel}}"
mc:Ignorable="d"
ui:Design.Background="{DynamicResource ApplicationBackgroundBrush}"
ui:Design.Foreground="{DynamicResource TextFillColorPrimaryBrush}"
x:Class="ShrlAlgoToolkit.RevitAddins.RvCivil.CreateOpeningsView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"

View File

@@ -6,8 +6,6 @@
Width="200"
d:DataContext="{d:DesignInstance Type=rvCivil:FloorFinishesViewModel}"
mc:Ignorable="d"
ui:Design.Background="{DynamicResource ApplicationBackgroundBrush}"
ui:Design.Foreground="{DynamicResource TextFillColorPrimaryBrush}"
x:Class="ShrlAlgoToolkit.RevitAddins.RvCivil.FloorFinishesView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"

View File

@@ -254,7 +254,7 @@ namespace ShrlAlgoToolkit.RevitAddins.RvFamily.FamilyLibrary
// case "WORKSHARING":
// if (string.IsNullOrEmpty(detailValue))
// {
// WorkSharing = WorkSharingMode.Unknown;
// WorkSharing = WorkSharingMode.HCLight;
// return;
// }
@@ -274,7 +274,7 @@ namespace ShrlAlgoToolkit.RevitAddins.RvFamily.FamilyLibrary
// break;
// default:
// WorkSharing = WorkSharingMode.Unknown;
// WorkSharing = WorkSharingMode.HCLight;
// break;
// }
// break;

View File

@@ -39,7 +39,7 @@
<ControlTemplate>
<Border
Background="{TemplateBinding Background}"
BorderBrush="{TemplateBinding BorderBrush}"
BorderBrush="{TemplateBinding ControlBorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}"
Padding="{TemplateBinding Padding}"
SnapsToDevicePixels="True">

View File

@@ -8,25 +8,25 @@
public ClashResolveView()
{
InitializeComponent();
//ApplicationThemeManager.Apply(this);
//ApplicationThemeManager.Changed -= ApplicationThemeManager_Changed;
//ApplicationThemeManager.Changed += ApplicationThemeManager_Changed;
//ThemeManager.ChangeAppTheme(this);
//ThemeManager.Changed -= ApplicationThemeManager_Changed;
//ThemeManager.Changed += ApplicationThemeManager_Changed;
}
//private void ApplicationThemeManager_Changed(ApplicationTheme currentApplicationTheme, Color systemAccent)
//private void ApplicationThemeManager_Changed(ThemeType currentApplicationTheme, Color systemAccent)
//{
// ApplicationThemeManager.Apply(this);
// ThemeManager.ChangeAppTheme(this);
//}
//private void Button_Click(object sender, RoutedEventArgs e)
//{
// if (ApplicationThemeManager.GetAppTheme()==ApplicationTheme.Light)
// if (ThemeManager.GetAppTheme()==ThemeType.Light)
// {
// ApplicationThemeManager.Apply(ApplicationTheme.Dark);
// ThemeManager.ChangeAppTheme(ThemeType.Dark);
// }
// else
// {
// ApplicationThemeManager.Apply(ApplicationTheme.Light);
// ThemeManager.ChangeAppTheme(ThemeType.Light);
// }
//}
}

View File

@@ -19,5 +19,4 @@ public static class Variables
public static string FamilyFolder { get; } = Path.Combine(DirAssembly, "Libraries");
public static DockablePaneId PaneId { get; } = new(new Guid(RevitAddins.Properties.Settings.Default.DockPaneGuid));
public static System.Timers.Timer AutoSaveTimer { get; } = new() { Enabled = true };
public static SnackbarPresenter SnackbarPresenter { get; set; }
}

View File

@@ -56,7 +56,7 @@
<!--#region Converters-->
<ui:BooleanToVisConverter x:Key="BooleanToVisConverter" />
<ui:InvertBooleanConverter x:Key="InvertBooleanConverter" />
<ui:ColorToBrushConverter x:Key="ColorToBrushConverter" />
<converters:ColorToBrushConverter x:Key="ColorToBrushConverter" />
<converters:ComparisonConverter x:Key="ComparisonConverter" />
<!--#endregion-->
@@ -69,8 +69,8 @@
<Setter Property="HorizontalContentAlignment" Value="Left" />
</Style>
<Style BasedOn="{StaticResource DefaultFluentWindowExStyle}" TargetType="ui:FluentWindowEx">
<Setter Property="ui:Design.Background" Value="{DynamicResource WindowBackground}" />
<Setter Property="ui:Design.Foreground" Value="{DynamicResource WindowForeground}" />
<!-- <Setter Property="ui:Design.Background" Value="{DynamicResource WindowBackground}" /> -->
<!-- <Setter Property="ui:Design.Foreground" Value="{DynamicResource WindowForeground}" /> -->
<Setter Property="FontFamily" Value="{StaticResource SourceHanSansSC}" />
<Setter Property="SizeToContent" Value="Height" />
<Setter Property="ShowInTaskbar" Value="False" />