更新整理

This commit is contained in:
GG Z
2025-04-24 20:56:44 +08:00
parent 155cef46f8
commit 5b6d67b571
813 changed files with 14437 additions and 12362 deletions

View File

@@ -0,0 +1,39 @@
<Page
x:Class="WPFluent.Gallery.Views.Pages.Samples.MultilevelNavigationSamplePage1"
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:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:navigation="clr-namespace:WPFluent.Gallery.ViewModels.Pages.Navigation"
xmlns:samples1="clr-namespace:WPFluent.Gallery.Views.Pages.Samples"
xmlns:ui="https://github.com/ShrlAlgo/WPFluent"
Title="MultilevelNavigationSamplePage"
d:DataContext="{d:DesignInstance navigation:MultilevelNavigationSample,
IsDesignTimeCreatable=False}"
d:DesignHeight="450"
d:DesignWidth="800"
ui:NavigationView.HeaderContent="Page 1"
mc:Ignorable="d">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Button
Grid.Column="0"
HorizontalAlignment="Center"
Command="{Binding NavigateBackCommand}"
Content="Navigate back"
FontSize="24" />
<Button
Grid.Column="1"
HorizontalAlignment="Center"
Command="{Binding NavigateForwardCommand}"
CommandParameter="{x:Type samples1:MultilevelNavigationSamplePage2}"
Content="Navigate to the second page"
FontSize="24" />
</Grid>
</Page>

View File

@@ -0,0 +1,22 @@
// This Source Code Form is subject to the terms of the MIT License.
// If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT.
// Copyright (C) Leszek Pomianowski and WPF UI Contributors.
// All Rights Reserved.
using WPFluent.Controls;
using WPFluent.Gallery.ViewModels.Pages.Navigation;
namespace WPFluent.Gallery.Views.Pages.Samples;
public partial class MultilevelNavigationSamplePage1 : INavigableView<MultilevelNavigationSample>
{
public MultilevelNavigationSamplePage1(MultilevelNavigationSample viewModel)
{
ViewModel = viewModel;
DataContext = viewModel;
InitializeComponent();
}
public MultilevelNavigationSample ViewModel { get; }
}

View File

@@ -0,0 +1,39 @@
<Page
x:Class="WPFluent.Gallery.Views.Pages.Samples.MultilevelNavigationSamplePage2"
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:WPFluent.Gallery.Views.Pages.Samples"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:navigation="clr-namespace:WPFluent.Gallery.ViewModels.Pages.Navigation"
xmlns:ui="https://github.com/ShrlAlgo/WPFluent"
Title="MultilevelNavigationSamplePage2"
d:DataContext="{d:DesignInstance navigation:MultilevelNavigationSample,
IsDesignTimeCreatable=False}"
d:DesignHeight="450"
d:DesignWidth="800"
ui:NavigationView.HeaderContent="Page 2"
mc:Ignorable="d">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Button
Grid.Column="0"
HorizontalAlignment="Center"
Command="{Binding NavigateBackCommand}"
Content="Navigate back"
FontSize="24" />
<Button
Grid.Column="1"
HorizontalAlignment="Center"
Command="{Binding NavigateForwardCommand}"
CommandParameter="{x:Type local:MultilevelNavigationSamplePage3}"
Content="Navigate to the third page"
FontSize="24" />
</Grid>
</Page>

View File

@@ -0,0 +1,22 @@
// This Source Code Form is subject to the terms of the MIT License.
// If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT.
// Copyright (C) Leszek Pomianowski and WPF UI Contributors.
// All Rights Reserved.
using WPFluent.Controls;
using WPFluent.Gallery.ViewModels.Pages.Navigation;
namespace WPFluent.Gallery.Views.Pages.Samples;
public partial class MultilevelNavigationSamplePage2 : INavigableView<MultilevelNavigationSample>
{
public MultilevelNavigationSamplePage2(MultilevelNavigationSample viewModel)
{
ViewModel = viewModel;
DataContext = viewModel;
InitializeComponent();
}
public MultilevelNavigationSample ViewModel { get; }
}

View File

@@ -0,0 +1,39 @@
<Page
x:Class="WPFluent.Gallery.Views.Pages.Samples.MultilevelNavigationSamplePage3"
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:WPFluent.Gallery.Views.Pages.Samples"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:navigation="clr-namespace:WPFluent.Gallery.ViewModels.Pages.Navigation"
xmlns:ui="https://github.com/ShrlAlgo/WPFluent"
Title="MultilevelNavigationSamplePage3"
d:DataContext="{d:DesignInstance navigation:MultilevelNavigationSample,
IsDesignTimeCreatable=False}"
d:DesignHeight="450"
d:DesignWidth="800"
ui:NavigationView.HeaderContent="Page 3"
mc:Ignorable="d">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Button
Grid.Column="0"
HorizontalAlignment="Center"
Command="{Binding NavigateBackCommand}"
Content="Navigate back"
FontSize="24" />
<Button
Grid.Column="1"
HorizontalAlignment="Center"
Command="{Binding NavigateForwardCommand}"
CommandParameter="{x:Type local:MultilevelNavigationSamplePage1}"
Content="Navigate to the first page"
FontSize="24" />
</Grid>
</Page>

View File

@@ -0,0 +1,22 @@
// This Source Code Form is subject to the terms of the MIT License.
// If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT.
// Copyright (C) Leszek Pomianowski and WPF UI Contributors.
// All Rights Reserved.
using WPFluent.Controls;
using WPFluent.Gallery.ViewModels.Pages.Navigation;
namespace WPFluent.Gallery.Views.Pages.Samples;
public partial class MultilevelNavigationSamplePage3 : INavigableView<MultilevelNavigationSample>
{
public MultilevelNavigationSamplePage3(MultilevelNavigationSample viewModel)
{
ViewModel = viewModel;
DataContext = viewModel;
InitializeComponent();
}
public MultilevelNavigationSample ViewModel { get; }
}

View File

@@ -0,0 +1,43 @@
<Page
x:Class="WPFluent.Gallery.Views.Pages.Samples.SamplePage1"
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:WPFluent.Gallery.Views.Pages.Samples"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
Title="SamplePage1"
d:DesignHeight="450"
d:DesignWidth="800"
mc:Ignorable="d">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="*" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<Border
Grid.Row="0"
Grid.RowSpan="2"
Grid.Column="0"
Margin="8"
Background="Aquamarine"
CornerRadius="8" />
<Border
Grid.Row="0"
Grid.Column="1"
Margin="8"
Background="Gray"
CornerRadius="8" />
<Border
Grid.Row="1"
Grid.Column="1"
Margin="8"
Background="DarkOrange"
CornerRadius="8" />
</Grid>
</Page>

View File

@@ -0,0 +1,16 @@
// This Source Code Form is subject to the terms of the MIT License.
// If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT.
// Copyright (C) Leszek Pomianowski and WPF UI Contributors.
// All Rights Reserved.
using System.Windows.Controls;
namespace WPFluent.Gallery.Views.Pages.Samples;
public partial class SamplePage1 : Page
{
public SamplePage1()
{
InitializeComponent();
}
}

View File

@@ -0,0 +1,43 @@
<Page
x:Class="WPFluent.Gallery.Views.Pages.Samples.SamplePage2"
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:WPFluent.Gallery.Views.Pages.Samples"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
Title="SamplePage2"
d:DesignHeight="450"
d:DesignWidth="800"
mc:Ignorable="d">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="*" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<Border
Grid.Row="0"
Grid.RowSpan="2"
Grid.Column="1"
Margin="8"
Background="Gray"
CornerRadius="8" />
<Border
Grid.Row="0"
Grid.Column="0"
Margin="8"
Background="Aquamarine"
CornerRadius="8" />
<Border
Grid.Row="1"
Grid.Column="0"
Margin="8"
Background="DarkOrange"
CornerRadius="8" />
</Grid>
</Page>

View File

@@ -0,0 +1,16 @@
// This Source Code Form is subject to the terms of the MIT License.
// If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT.
// Copyright (C) Leszek Pomianowski and WPF UI Contributors.
// All Rights Reserved.
using System.Windows.Controls;
namespace WPFluent.Gallery.Views.Pages.Samples;
public partial class SamplePage2 : Page
{
public SamplePage2()
{
InitializeComponent();
}
}

View File

@@ -0,0 +1,43 @@
<Page
x:Class="WPFluent.Gallery.Views.Pages.Samples.SamplePage3"
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:WPFluent.Gallery.Views.Pages.Samples"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
Title="SamplePage3"
d:DesignHeight="450"
d:DesignWidth="800"
mc:Ignorable="d">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="*" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<Border
Grid.Row="0"
Grid.Column="1"
Margin="8"
Background="GreenYellow"
CornerRadius="8" />
<Border
Grid.Row="0"
Grid.Column="0"
Margin="8"
Background="Salmon"
CornerRadius="8" />
<Border
Grid.Row="1"
Grid.Column="0"
Grid.ColumnSpan="2"
Margin="8"
Background="Aquamarine"
CornerRadius="8" />
</Grid>
</Page>

View File

@@ -0,0 +1,16 @@
// This Source Code Form is subject to the terms of the MIT License.
// If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT.
// Copyright (C) Leszek Pomianowski and WPF UI Contributors.
// All Rights Reserved.
using System.Windows.Controls;
namespace WPFluent.Gallery.Views.Pages.Samples;
public partial class SamplePage3 : Page
{
public SamplePage3()
{
InitializeComponent();
}
}