wpfui icon indicating copy to clipboard operation
wpfui copied to clipboard

NavigationView Problem

Open mfcharaf opened this issue 1 year ago • 7 comments

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" Screenshot 2023-11-03 223606

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

mfcharaf avatar Nov 04 '23 09:11 mfcharaf

same question. How to use?

chenzanyu avatar Nov 04 '23 18:11 chenzanyu

use '3.0.0-preview.8' Solved my problem

chenzanyu avatar Nov 04 '23 18:11 chenzanyu

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

ScreenShot

anesdiaf avatar Nov 05 '23 12:11 anesdiaf

@mfcharaf could you try this with the latest preview (preview-10) to see if the bug is resolved?

niels9001 avatar Nov 23 '23 10:11 niels9001

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

turswiming avatar Dec 12 '23 13:12 turswiming

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. image

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

pomianowski avatar Dec 12 '23 15:12 pomianowski

@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.

mfcharaf avatar Feb 27 '24 20:02 mfcharaf