OmegaLol21
OmegaLol21
CC#
Created by OmegaLol21 on 4/26/2023 in #help
❔ How to handle navigation in WinUI between pages?
I am using WinUI 3 and Windows App SDK 1.2 for reference. I have this setup right now where I have a main window, which just has a frame in it. The frame hosts a page which is the RootView, and that RootView hosts a NavigationView in it and again has another frame for navigation. How would I handle the navigation between pages inside the frame? Like for example, let's say I have the home page currently shown, and I want to go to the settings page from the home page, not from the NavigationView, how would I handle that (preferably with MVVM in mind)
2 replies
CC#
Created by OmegaLol21 on 11/6/2022 in #help
Difference between variable using and statement using?
Im just wondering if there is any difference to using a using statement by doing this:
using var foo = new Bar();
foo.DoStuff();
using var foo = new Bar();
foo.DoStuff();
as opposed to doing
using (var foo = new Bar())
{
foo.DoStuff();
}
using (var foo = new Bar())
{
foo.DoStuff();
}
7 replies
CC#
Created by OmegaLol21 on 9/23/2022 in #help
Host custom control with handle in WPF or WinUI?
Hi, I am just wondering if it is possible to have a control that is hosted inside of a WPF or WinUI application, to have a handle, like WinForms? In WPF, I know it is possible to use the WindowsFormsHost control but it requries adding the WinForms dll and I am just wondering if there is another way to do it without referencing the framework libraries? And also if it would be possible in WinUI too.
2 replies