modern-ui

modern ui wpf navigation

梦想与她 提交于 2019-12-05 02:21:58
问题 I'm using modern ui wpf and trying to navigate from CheckLogin.xaml page to MainWindow.xaml page (they are in solution root directory). From inside CheckLogin.xaml I wrote this: BBCodeBlock bbBlock = new BBCodeBlock(); bbBlock.LinkNavigator.Navigate(new Uri(url, UriKind.Relative), this); I used the following values for url: "/MainWindow.xaml", "pack://application:/MainWindow.xaml", but an exception thrown "Unable to navigate to pack://application:/MainWindow.xaml, could not find a ModernFrame

Caliburn.Micro + MEF + Modern UI: IContent events

独自空忆成欢 提交于 2019-12-04 13:26:18
问题 I've started a project using Caliburn.Micro and Modern UI (https://mui.codeplex.com) and am having some difficulty getting the navigation events of IContent to fire on my view model. I've already got the two hooked up to work with each other with the following: CM Bootstrapper: public class CMBootstrapper : Bootstrapper<IShell> { private CompositionContainer container; private DirectoryCatalog catalog; public CMBootstrapper() { } protected override void Configure() { catalog = new

Modern UI for WPF- navigation

喜你入骨 提交于 2019-12-02 08:14:32
How can I pass parameter beetwen pages? I've tried to add parameters to page uri but it didn't work because I can't use onNavigatedTo event on user control. Please help You must use OnFragmentNavigation. public void OnFragmentNavigation(FragmentNavigationEventArgs e) { DoYourStuff(e.Fragment) } e.Fragement contains everything past the # in the URI. In example, using NavigationCommands.GoToPage.Execute("/Pages/CustomerPage.xaml#CustomerID=12345", this); e.Fragment will be "CustomerID=12345" It looks like you are coming from a client browser showing web pages world. With WPF you own the app! you

Modern UI how to go to another page from another link

别说谁变了你拦得住时间么 提交于 2019-12-01 01:00:45
I am currently using Modern UI from CodePlex. It is great and easy to use but there are some classes and events that I am not familiar with. Example: I have two GroupLinks named "Patients" and "Configurations". There are several pages in each of the GroupLinks. I tried to navigate from one page to another using a button click event. It worked. But when I tried navigating from Page1 of GroupLink2 to Page1 of GroupLink1, it still worked, but the problem was the active GroupLink remained in GroupLink2 instead of GroupLink1 just like the screenshots show below: Btw, I used the code behind to

WPF How to create a lateral menu like this (Modern-UI)

隐身守侯 提交于 2019-11-28 11:33:25
I'm new on WPF and I want to create a lateral menu for my App. Searching for ideas i found this picture: My idea is to add buttons like in the picture one bellow the other. When user click a button it expand the button to show sub menu options. Only one menu should be expanded at a time. My first test is to use a listbox, inside use a Expander for each button and then a stackpanel to add sub menu options. It look like this: This is my XAML: <Window x:Class="InterfazOhmio.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx

Caliburn Micro and ModernUI Examples/Tutorials

廉价感情. 提交于 2019-11-27 11:43:48
问题 does anyone have an example or tutorial on how to use Caliburn Micro together with ModernUi (https://mui.codeplex.com)? 回答1: Ok so I had a quick mess about with it and a look on the Mui forums and this seems to be the best approach: Since the window loads content from URLs you need to take a view-first approach, and then locate the appropriate VM and bind the two. The best way to do this appears to be via the ContentLoader class which is used to load the content into the ModernWindow when it

WPF How to create a lateral menu like this (Modern-UI)

故事扮演 提交于 2019-11-27 06:15:14
问题 I'm new on WPF and I want to create a lateral menu for my App. Searching for ideas i found this picture: My idea is to add buttons like in the picture one bellow the other. When user click a button it expand the button to show sub menu options. Only one menu should be expanded at a time. My first test is to use a listbox, inside use a Expander for each button and then a stackpanel to add sub menu options. It look like this: This is my XAML: <Window x:Class="InterfazOhmio.MainWindow" xmlns=