wpfui
wpfui copied to clipboard
NavigationView Problem
Describe the bug
I'm trying to use NavigationView in my program, but without window (maximize, minimize, close) buttons.
Also tried other codes from your samples, but getting errors such as "the member PanDisplayMode was not found or not accessible"
I'm trying to follow documentation and the codes in your WPF UI Gallery but It seems not working
Please provide a clear and updated documentation.
To Reproduce
Adding NavigationView
Expected behavior
a Working NavigationView
Screenshots
No response
OS version
win 10 / 11
.NET version
4.8
WPF-UI NuGet version
2.1.0
Additional context
No response
same question. How to use?
use '3.0.0-preview.8' Solved my problem
Hi, First of all, I doubt that the 2.1 version does have a "NavigationView" control, it's interface or it's setup, rather it has a "NavigationCompact" control (in case you use the compact navigation template).
Now if you want to implement your needed changes here's what you'll have to do, add ExtendsContentIntoTitleBar="True" to your UIWindow, to hide the native Title bar
<ui:UiWindow
...
+ ExtendsContentIntoTitleBar="True" >
then customize your TitleBar control by adding this
<ui:TitleBar
...
+ ShowMaximize="False"
+ ShowMinimize="False"
+ ShowClose="False">
You'll get something like this
@mfcharaf could you try this with the latest preview (preview-10
) to see if the bug is resolved?
use '3.0.0-preview.8' Solved my problem
thank you! do you know how to use 3.0.0? I can only find 2.1.0 from nuget
use '3.0.0-preview.8' Solved my problem
thank you! do you know how to use 3.0.0? I can only find 2.1.0 from nuget
Hey @turswiming, te 3.0.0 version is still in preview. To enable searching for preview packages, you have to check the checkbox in the Visual Studio or manually change the version in the .csproj
file.
Remember that there are a lot of changes in 3.0.0, you can see an implementation example in Wpf.Ui.Demo.Simple https://github.com/lepoco/wpfui/tree/main/src/Wpf.Ui.Demo.Simple
@mfcharaf could you try this with the latest preview (
preview-10
) to see if the bug is resolved?
I have changed the UI toolkit for my project to another one, because I was on deadline limit. Bit I will try it again and get back to you with my feedback.