This commit is contained in:
GG Z
2025-07-31 20:12:24 +08:00
parent 4f6cd2137c
commit f209e7d3ad
426 changed files with 15854 additions and 6612 deletions

View File

@@ -1,15 +1,15 @@
<Application x:Class="WebUITest.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
StartupUri="ShrlAlgoWindow.xaml">
StartupUri="MainWindow.xaml">
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<!--<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/ShrlAlgo.Toolkit.Wpf;component/Themes/Colors.xaml"/>
<ResourceDictionary Source="/ShrlAlgo.Toolkit.Wpf;component/Themes/Controls.xaml"/>
<ResourceDictionary Source="/ShrlAlgo.Toolkit.Wpf;component/Themes/Generic.xaml"/>
<ResourceDictionary Source="/ShrlAlgo.Toolkit.Wpf;component/Controls/MaterialWindow.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary.MergedDictionaries>-->
</ResourceDictionary>
</Application.Resources>
</Application>

20
WebUITest/MainWindow.xaml Normal file
View File

@@ -0,0 +1,20 @@
<Window x:Class="WebUITest.MainWindow"
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:WebUITest"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
Width="800"
Height="450"
mc:Ignorable="d"
Title="MainWindow">
<Grid>
<!--<Grid.Background>
--><!-- 确保你的项目中 Assets/background.jpg 的“生成操作”为“Resource” --><!--
<ImageBrush ImageSource="/WebUITest;component/background.avif" Stretch="UniformToFill"/>
</Grid.Background>-->
</Grid>
</Window>

View File

@@ -0,0 +1,27 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
namespace WebUITest
{
/// <summary>
/// MainWindow.xaml 的交互逻辑
/// </summary>
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
}
}
}

View File

@@ -6,6 +6,9 @@
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<UseWPF>True</UseWPF>
</PropertyGroup>
<ItemGroup>
<None Remove="background.avif" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Html\index.html" />
</ItemGroup>
@@ -17,6 +20,11 @@
<PackageReference Include="Nice3point.Revit.Api.RevitAPIUI" Version="2020.*" PrivateAssets="All" />
<PackageReference Include="Newtonsoft.Json.Bson" Version="1.0.3" />
</ItemGroup>
<ItemGroup>
<Resource Include="background.avif">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Resource>
</ItemGroup>
<ItemGroup>
<Compile Update="WebUIWindow.xaml.cs">
<SubType>Code</SubType>

View File

@@ -1,7 +1,4 @@
using System;
using System;
using System.IO;
using System.Linq;
using System.Reflection;

BIN
WebUITest/background.avif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.4 KiB