modern-ui

Modern UI how to go to another page from another link

百般思念 提交于 2019-12-19 04:15:12
问题 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

Access floats of XMMatrix - () operator not working

折月煮酒 提交于 2019-12-12 12:16:10
问题 I'm trying to do some 3D stuff in DirectX (I'm migrating from OpenGL) and I've hit a snag. I want to access the values of an XMMATRIX and looking at the Microsoft documentation there should be an () operator: float& operator ()( size_t Row, size_t Column ); So I tried using as such: XMMATRIX i = XMMatrixIdentity(); float j = i(0,0); But Intellisense gives me the error: IntelliSense: call of an object of a class type without appropriate operator() or conversion functions to pointer-to-function

Splash screen(MetroFramework) is not displaying C#?

大憨熊 提交于 2019-12-11 18:56:18
问题 I used metro framework for create splash screen, but when i use .Abort() function for thread then the splash screen is not working at all. But if i use .Suspend() it's working but even after the main form load, splash screen is not disposing. Here is the code, public Login() { Thread t = new Thread(new ThreadStart(loading)); t.Start(); InitializeComponent(); for(int i = 0; i <= 1000; i++) { Thread.Sleep(10); t.Abort(); } } void loading() { Splash frmsplash = new Splash();Application.Run

JavaScript in SHarepoint Modern UI

只谈情不闲聊 提交于 2019-12-11 15:39:47
问题 We have created a SharePoint Communication site with Modern UI. We need to execute some Javascript code for chatbot integration. All we have to do is just reference some external js files. How this can be achieved as modern UI blocks client scripting? 回答1: You need to create a 'classic' page because, as you mentioned, JS cannot be executed in modern pages. To do this: Go to: Site Content-Site Pages. Click on 'New' then either create a 'Web part' or 'wiki' page. Then, in that page, simply

How to open a new window click on a menu link in Modern UI wpf?

删除回忆录丶 提交于 2019-12-11 13:48:29
问题 In my project I want to open a new window whenever the user click on a menu link. There is no click event in ModernUI menu link. The menu link have only one option Source . Is there any way to open a new window clicking on a menu link. Menu link code snippet is here: <mui:ModernWindow.MenuLinkGroups > <mui:LinkGroup DisplayName="File" x:Name="FileMenuGroup" > <mui:LinkGroup.Links > <mui:Link DisplayName="New Project" Source="/NewProjectUC.xaml" /> <mui:Link DisplayName="Open Recent" Source="

WPF Net Framework 3.5 Window Metro Style

感情迁移 提交于 2019-12-11 06:36:44
问题 I want to make Window with Metro style. I found the 3 following libraries: http://elysium.asvishnyakov.com/en/ https://github.com/MahApps/MahApps.Metro http://mui.codeplex.com/ All are for Net Framework 4+. Is there anything for 3.5? I also tried to make it on my own (Didnt finish - still need to design it and add Resize [which I dont know how]) but I dont really like how it's made...: <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft

How to create MahApps.Metro accent resource from specific color?

烂漫一生 提交于 2019-12-10 11:57:57
问题 I've noticed this on the MahApps site (bottom of the page): "It is also possible to create an accent resource dictionary dynamically by using a specific color.", but I found more nowhere. Is there really a built-in method (or anything else) for this? I've only found ThemeManager.AddAccent(string name, Uri resourceAddress) , and creating a new accent (currently) possible with new Accent(string name, Uri resourceAddress) , so a name and a resource uri is everyhow needed... Any ideas? 回答1: Here

Metro UI for WPF differences [closed]

会有一股神秘感。 提交于 2019-12-08 12:23:00
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . Does exist any real difference among "Modern UI for WPF", "MahApps" and "Elysium"? What would you suggest? I can find any list of features, or comparison. Testing them all deeply would take some time, so if anyone has already through this, I'd really appreciate him to share experience. 回答1: I did similar mini

Refresh/Reload MUI WPF Page when Tab is Changed

人盡茶涼 提交于 2019-12-06 09:17:02
问题 I am developing a desktop application using Modern UI for WPF. I try to refresh my tab page when I go to a new tab page, but I couldn't. I want to refresh my MUI WPF tab page when I go to another page using my tab controller. Can anyone help me? 回答1: You can use SelectionChanged event to handle this. You can refresh MUI WPF tab page by using SelectionChanged. <TabControl x:Name="MyTab" SelectionChanged="MyTabControl_SelectionChanged"> <TabItem x:Name="TabItem1" Header="Tab 1"/> <TabItem x

How to prevent automatic scaling in Modern UI IE 11 on Windows 8.1/8?

♀尐吖头ヾ 提交于 2019-12-05 23:24:44
Windows 8.1/8 has a split screen feature which is nice while using multiple apps (like modern UI version IE11) in one screen. Most of the time when you set the IE split screen very narrow, you'll notice the web page zoomed out automatically, but some pages (like microsoft.com) are different. They doesn't zoom out and recognise the narrow width correctly, so it's easy to do some responsive deign. My question is: What code made that difference? I've tried <meta name='viewport' content='width=device-width, user-scalable=0, initial-scale=1.0' /> but IE11 still zooms out the page. I got the answer