lepoco / wpfui

WPF UI provides the Fluent experience in your known and loved WPF framework. Intuitive design, themes, navigation and new immersive controls. All natively and effortlessly.
https://wpfui.lepo.co
MIT License
7.69k stars 751 forks source link

ui:NavigationView not have IsBackButtonVisible #729

Closed slaners closed 1 year ago

slaners commented 1 year ago

Describe the bug

Property 'IsBackButtonVisible' not found in type 'NavigationView'.

To Reproduce

<ui:UiWindow
    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"
    mc:Ignorable="d"
    xmlns:local="clr-namespace:aliDDNS"
    xmlns:tb="clr-namespace:H.NotifyIcon;assembly=H.NotifyIcon.Wpf"
    x:Class="aliDDNS.MainWindow"
    xmlns:ui="http://schemas.lepo.co/wpfui/2022/xaml" 
    Title="MainWindow" Height="450" Width="800" Closed="Window_Closed">
    <Grid>
        <tb:TaskbarIcon x:Name="MyTaskbarIcon"/>
        <ui:Button Appearance="Primary" Content="hello" Icon="Filmstrip24" />
        <ui:NavigationView IsBackButtonVisible="Auto" >
            <ui:NavigationView.MenuItems>
                <ui:NavigationViewItem Content="Home" Icon="Home24" />
            <ui:NavigationView.MenuItems/>
        <ui:NavigationView />
    </Grid>
</ui:UiWindow>

Expected behavior

IsBackButtonVisible can work

Screenshots

img

OS version

windows 10

.NET version

.net6

WPF-UI NuGet version

2.0.3

Additional context

No response

Cyp9715 commented 1 year ago

same problem.

MahdiJamal commented 1 year ago

You are probably using the 2.0.3 stable version

This version is not complete and you should use version 3.0.0 preview, which of course has many bugs

To download version 3.0.0 preview in nuget package manager, you must check the include prerelease option so that preview versions will be displayed to you.


Of course, you have to change some items, for example, you have to change ui:UiWindow to ui:FluentWindow and in app.xaml you have to change Theme="Dark" to ApplicationTheme="Dark" and depending on your project, there may be other things too. need to change