mahapps.metro

WPF // MahApps.Metro // Caliburn.Micro // Flyout // HeaderedContentControl

三世轮回 提交于 2019-12-06 12:07:26
Since a change in MahApps.Metro 1.5.0 the base element of a Flyout was changed from ContentControl to HeaderContentControl . Now the MVVM approach with Caliburn.Micro and this suggestion doesn't work anymore. Has anybody else tried to solve this issue in a nice MVVM way? While I haven't tried it myself but since the new Flyout control is now based on HeaderedContentControl it would be a simple logic choice to attempt to do this instead of the previous, which was based on ContentControl . Looks like the advantages of this change were the elimination of a couple of dependency properties...

KeyUp event is doubling using “mahapps.metro”

给你一囗甜甜゛ 提交于 2019-12-06 08:32:53
Complete project: https://uploadfiles.io/wz8ji Follow code: Code C#: public partial class MainWindow : MetroWindow { public MainWindow() { InitializeComponent(); } private void Textbox_KeyUp(object sender, KeyEventArgs e) { if (textbox.Text != string.Empty) { this.ShowMessageAsync("This is the title", "Some message"); } } } Code xaml: <Controls:MetroWindow x:Class="Wpf.MainWindow" xmlns:Controls="http://metro.mahapps.com/winfx/xaml/controls" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft

Setting WindowButtonCommands styles in Mahapps.Metro

烈酒焚心 提交于 2019-12-06 04:10:39
问题 I want to change the style of the Min, Max and Close buttons for my WPF application. I'm using Mahapps.Metro and I have successfully managed to achieve the result I want, but only with the obsolete WindowMinButtonStyle , WindowMaxButtonStyle and WindowCloseButtonStyle properties in the MetroWindow class. The obsolete message on for example the WindowMinButtonStyle property reads: This property will be deleted in the next release. You should use LightMinButtonStyle or DarkMinButtonStyle in

Hide all visible Metro Dialogs before showing another one

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-05 02:33:00
问题 I'm using MahApps.Metro on my WPF project, and I am building a class to help me showing Dialogs. I would like to know if there's a way of closing all visible dialogs before showing up another one. Sometimes, when I show a ProgressDialog and then a MessageDialog the ProgressDialog isn't correctly closed, and stays in the background, so when I close the MessageDialog, it stays there freezing the UI. Here's how I'm currently trying to hide all Dialogs: public static async void HideVisibleDialogs

Changing The MahApps Metro Theme

和自甴很熟 提交于 2019-12-04 18:15:23
问题 I know that the MahApps metro theme comes with "themes" (colour sets), but I don't know how to change them from the default settings in my WPF application. I have followed the beginners tutorial at MahApps.Metro Documentation (including adding the resource libraries at the top of the page), but it makes no mention about changing the theme. The component/Styles/Colours.xaml file has the comment "from the cosmopolitan theme pack", which may be a helpful clue to someone better versed in WPF

Setting WindowButtonCommands styles in Mahapps.Metro

杀马特。学长 韩版系。学妹 提交于 2019-12-04 10:07:50
I want to change the style of the Min, Max and Close buttons for my WPF application. I'm using Mahapps.Metro and I have successfully managed to achieve the result I want, but only with the obsolete WindowMinButtonStyle , WindowMaxButtonStyle and WindowCloseButtonStyle properties in the MetroWindow class. The obsolete message on for example the WindowMinButtonStyle property reads: This property will be deleted in the next release. You should use LightMinButtonStyle or DarkMinButtonStyle in WindowButtonCommands to override the style. The problem is that I can't figure out how specifically to do

Customizing Mahapps.MetroWindow Close Button

不羁岁月 提交于 2019-12-03 14:22:31
I'm using Mahapps.MetroWindow ( http://mahapps.com/ ) to style my applications appearance and right now I'm looking for the right way to customize the appearance of the X / Close button. By default MetroWindow applies custom styling to all three command buttons. I would like to either match Windows in always having the Close button be red or on mouse over become red. What I found so far was, that I can set the WindowCloseButtonStyle attribute to a custom style. I did so like this: <controls:MetroWindow x:Class="WpfApplication2.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml

WPF Metro Window full screen

瘦欲@ 提交于 2019-12-03 13:44:20
问题 I'm currently working on a WPF application and I don't find how to make my application in full screen. I am using MahApps.Metro so my mainwindow's type is Controls.MetroWindow. I tried this : <Controls:MetroWindow x:Class="MyProject.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:Controls="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro" xmlns:Views="clr-namespace:MyProject.Views"

Changing The MahApps Metro Theme

对着背影说爱祢 提交于 2019-12-03 10:59:29
I know that the MahApps metro theme comes with "themes" (colour sets), but I don't know how to change them from the default settings in my WPF application. I have followed the beginners tutorial at MahApps.Metro Documentation (including adding the resource libraries at the top of the page), but it makes no mention about changing the theme. The component/Styles/Colours.xaml file has the comment "from the cosmopolitan theme pack", which may be a helpful clue to someone better versed in WPF design than me. I'm talking about an app-wide theme change, not an individual control. If you want to

WPF Metro Window full screen

本秂侑毒 提交于 2019-12-03 02:57:54
I'm currently working on a WPF application and I don't find how to make my application in full screen. I am using MahApps.Metro so my mainwindow's type is Controls.MetroWindow. I tried this : <Controls:MetroWindow x:Class="MyProject.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:Controls="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro" xmlns:Views="clr-namespace:MyProject.Views" WindowStyle="None" ResizeMode="NoResize" WindowState="Maximized" Title="MyProject"> But it doesn't hide the