mahapps.metro

Adding custom styles to Mahapps.Metro existing ones

本秂侑毒 提交于 2021-02-08 05:36:16
问题 I use MahApps.Metro. In the guide to setting it up, it tells you to include some code into the App.xaml . So I did. Now I wanted to be able to add my own styles to it. This for instance includes all windows to have a border by default. But that doesn't work. Borders are not applied. I know how to style stuff when not using MahApps.Metro, but with it, I can't get both working. What's wrong here? <Application x:Class="ProjectName.App" xmlns="http://schemas.microsoft.com/winfx/2006/xaml

Adding custom styles to icons inside Title bar of MetroWindow

主宰稳场 提交于 2021-01-29 15:23:06
问题 I am using MahApps.Metro in my WPF app. The default behavior of the title bar of its MetroWindow is that any icon inside it has low opacity (dimmed) display unless you mouseover the icon. Even if you don't mouseover the icon, I would like to look it the same as when you mouseover it. How can we achieve this? With mouseover on CupCakes icon [I would like it to look the same even without mouseover]: Without mouseover : MetroWindow.xaml : <mah:MetroWindow x:Class="WPF_Mah_Metro_Test.MainWindow"

How to hide task bar and maximize window using WPF through Xamarin Forms

夙愿已清 提交于 2021-01-29 11:46:37
问题 I have already tried different options including info in this question Make my wpf application Full Screen (Cover taskbar and title bar of window), but nothing helped me Only IgnoreTaskbarOnMaximize property works correct, but it is used from the MahApps, which is not compatible with Xamarin Forms. Maybe you know how to implement IgnoreTaskbarOnMaximize manually? 回答1: As far as I can tell from this tutorial on using Xamarin.Forms with WPF, the Xamarin.Forms application is created from a

How to correctly add icon or image to each menu item inside Mahapp DropDownButton

左心房为你撑大大i 提交于 2020-02-16 08:06:25
问题 I am using Mahapp's DropDownButton Here is what I have: using xmlns:mah="http://metro.mahapps.com/winfx/xaml/controls" <mah:DropDownButton Content="my button" Icon="{DynamicResource appbar_projector_screen}" ItemsSource="{Binding Path=MySource}"> <mah:DropDownButton.ItemContainerStyle> <Style TargetType="MenuItem"> <Setter Property="Header" Value="{Binding Path=Title}"/> <Setter Property="Command" Value="{Binding Path=Command}"/> <Setter Property="CommandParameter" Value="{Binding Path=Id }"/

Use ScrollBar in DropDownButton?

纵然是瞬间 提交于 2020-01-17 05:32:09
问题 I want use a scrollbar like ComboBox in my DropDown button, the structure actually is this: <Controls:DropDownButton Content="Nazioni" Width="120" Margin="0, 0, 20, 0" ScrollViewer.VerticalScrollBarVisibility="Visible" ScrollViewer.CanContentScroll="True" ItemsSource="{Binding Countries}" ItemTemplate="{StaticResource CombinedTemplate}"/> but I don't see any ScrollViewer as you can see in the image below: 回答1: The drop-down of the DropDownButton already contains a ScrollViewer (it is named

Mahapps 1.3 dialogs and Avalon.Wizard

橙三吉。 提交于 2020-01-13 20:35:09
问题 I've integrated the popular UI library Mahapps with the Avalon.Wizard control. It integrates nicely, but I have an issue with the Mahapps dialogs. The Wizard control defines an InitializeCommand to handle the entering on a wizard page. Apparently the InitializeCommand is triggered before the Dependency Property attached to the View is initialized (DialogParticipation.Register). This cause the following error: Context is not registered. Consider using DialogParticipation.Register in XAML to

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

↘锁芯ラ 提交于 2020-01-13 19:40:25
问题 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? 回答1: 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 .

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

老子叫甜甜 提交于 2020-01-13 19:39:06
问题 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? 回答1: 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 .

How to add Text under a MahApps MetroCircleButtonStyle icon?

守給你的承諾、 提交于 2020-01-05 05:49:08
问题 I am using the MahApps Metro controls in a WPF application with their FlyOut control on the bottom of the window. I am using their MetroCircleButtonStyle button like so: <Button Width="55" Height="55" VerticalAlignment="Top" Style="{DynamicResource MetroCircleButtonStyle}"> <Rectangle Width="20" Height="20"> <Rectangle.Fill> <VisualBrush Stretch="Fill" Visual="{StaticResource appbar_city}" /> </Rectangle.Fill> </Rectangle> </Button> My question is how do I add Text below these icons in the

Make the ProgressRing in MahApps.Metro Smaller

喜你入骨 提交于 2020-01-01 09:42:18
问题 It looks like the MahApps.Metro ProgressRing control defaults to a Minimum size of 60x60. There is a property for the ProgressRing called "IsLarge", but even when it is set to "False" it seems to have no effect on being able to make to ProgressRing smaller than 60x60. Obiviously changing the Height and Width properties do not affect this either. Looking on GitHUb as the actual c# code for the ProgressRing, it looks like there are several properties to affect ellipse diameter, etc, but these