整理控件库

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

@@ -9,13 +9,13 @@
xmlns:models="clr-namespace:WPFluent.Gallery.Models"
xmlns:ui="https://github.com/ShrlAlgo/WPFluent"
Title="WindowsPage"
controls:PageControlDocumentation.Show="False"
d:DataContext="{d:DesignInstance local:WindowsPage,
IsDesignTimeCreatable=False}"
d:DesignHeight="450"
d:DesignWidth="800"
ui:Design.Background="{DynamicResource ApplicationBackgroundBrush}"
ui:Design.Foreground="{DynamicResource TextFillColorPrimaryBrush}"
Foreground="{DynamicResource TextFillColorPrimaryBrush}"
mc:Ignorable="d">

View File

@@ -8,14 +8,14 @@ using WPFluent.Gallery.ViewModels.Pages.Windows;
namespace WPFluent.Gallery.Views.Pages.Windows;
public partial class WindowsPage : INavigableView<WindowsViewModel>
public partial class WindowsPage
{
public WindowsViewModel ViewModel { get; }
public WindowsPage(WindowsViewModel viewModel)
public WindowsPage()
{
ViewModel = viewModel;
DataContext = this;
ViewModel = new WindowsViewModel(new Services.WindowsProviderService());
DataContext = ViewModel;
InitializeComponent();
}