This commit is contained in:
ShrlAlgo
2025-07-11 09:20:23 +08:00
parent c7b104f44f
commit 4d35cadb56
840 changed files with 102347 additions and 11595 deletions

View File

@@ -8,8 +8,9 @@
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:models="clr-namespace:WPFluent.Gallery.Models"
xmlns:ui="https://github.com/ShrlAlgo/WPFluent"
xmlns:vm="clr-namespace:WPFluent.Gallery.ViewModels.Pages.Navigation"
mc:Ignorable="d"
d:DataContext="{d:DesignInstance local:NavigationPage,
d:DataContext="{d:DesignInstance vm:BreadcrumbBarViewModel,
IsDesignTimeCreatable=False}"
Foreground="{DynamicResource TextFillColorPrimaryBrush}"
Title="NavigationPage"
@@ -98,12 +99,7 @@
</Grid>
</TabItem>
</TabControl>
<Button
HorizontalAlignment="Center"
VerticalAlignment="Center"
Content="Navigate to the first page"
FontSize="24" />
<ui:BreadcrumbBar ItemsSource="{Binding ViewModel.Strings, Mode=OneWay}" />
<ui:BreadcrumbBar ItemsSource="{Binding Strings, Mode=OneWay}" />
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
@@ -112,8 +108,8 @@
<ui:BreadcrumbBar
x:Name="BreadcrumbBar2"
Grid.Column="0"
Command="{Binding ViewModel.FolderSelectedCommand, Mode=OneWay}"
ItemsSource="{Binding ViewModel.Folders, Mode=OneWay}">
Command="{Binding FolderSelectedCommand, Mode=OneWay}"
ItemsSource="{Binding Folders, Mode=OneWay}">
<ui:BreadcrumbBar.ItemTemplate>
<DataTemplate DataType="{x:Type models:Folder}">
<TextBlock Text="{Binding Name, Mode=OneTime}" />
@@ -122,7 +118,7 @@
</ui:BreadcrumbBar>
<Button
Grid.Column="1"
Command="{Binding ViewModel.ResetFoldersCommand, Mode=OneWay}"
Command="{Binding ResetFoldersCommand, Mode=OneWay}"
Content="Reset" />
</Grid>
</ui:StackPanel>