mahapps.metro

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

How to use properties from Metrowindow above framed page

扶醉桌前 提交于 2019-12-08 10:50:52
问题 Using Mahapps.metro, and stumbling into a problem. I want to page paged content, all controlled via a frame within metro window. There are two things I cannot figure out how to do, which was easy enough whilst working all within one window without the pages. First off, I want to use their dialogs. The following line worked previousely whilst used directly within the window: await this.ShowMessageAsync("This is the title", "User Setting: " + x); However, it now gives the following error:

Metro Flyouts with MVVM

蹲街弑〆低调 提交于 2019-12-08 08:59:18
问题 I'm trying to use the Flyouts from MahApps.Metro in my application. So I added this part to my MainWindow.xaml: <controls:MetroWindow.Flyouts> <controls:FlyoutsControl ItemsSource="{Binding Flyouts}"> <controls:FlyoutsControl.ItemTemplate> <DataTemplate DataType="{x:Type viewModel:SettingsViewModel}"> <view:SettingsFlyout/> </DataTemplate> </controls:FlyoutsControl.ItemTemplate> </controls:FlyoutsControl> </controls:MetroWindow.Flyouts> The ItemTemplate will contain the mappings from my

System.Windows.Interactivity for .NET 4.5 wpf project for .NET 4.5 wpf project

南笙酒味 提交于 2019-12-08 08:10:24
问题 Recently i have migrated my WPF project from .NET4.0 to .NET 4.5 and i am facing System.Windows.Interactivity issue which was otherwise working fine. Error : Could not load file or assembly 'System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) 来源: https://stackoverflow.com/questions/39929394/system

how to highlight tiles of MahApps.Metro on mouseover?

↘锁芯ラ 提交于 2019-12-07 19:46:13
问题 I've just discovered a very great UI toolkit for WPF: MahApps.Metro. I created a window with tiles of type MahApps.Metro.Controls.Tile. I am not able to find the right way to highlight a tile when the mouse passes over. Do you know how can I do that? Do I need to use templates and storyboard (seems to be a bit complex to set up...) ? Thank you [EDIT] Here is the control with the tiles: <mah:TransitioningContentControl x:Name="LeftControl" Grid.Row="1" Grid.Column="1" Transition="Default"

Can't use await on ShowMessageAsync

风流意气都作罢 提交于 2019-12-07 13:24:53
问题 I'm using Mahapp and I'm trying to wait for the result of the dialog, but the compiler underlined ShowMessageAsync and display me: ShowMessageAsync doesn't exist in the current context this is the code: private async void ShowMessageBox(object sender, RoutedEventArgs e) { var result = await ShowMessageAsync("Hello!", "Welcome to the world of metro!", MahApps.Metro.Controls.MessageDialogStyle.AffirmativeAndNegative); if (result == MessageDialogResult.Affirmative) { this.ShowMessageAsync(

Organize Items in DropDownButton?

丶灬走出姿态 提交于 2019-12-07 05:11:20
I've a collection of items inside an ObservableCollection , each item have a specific nation name (that's only a string). This is my collection: private ObservableCollection<League> _leagues = new ObservableCollection<League>(); public ObservableCollection<League> Leagues { get { return _leagues; } set { _leagues = value; OnPropertyChanged(); } } the League model have only a Name and a NationName properties. The Xaml looks like this: <Controls:DropDownButton Content="Leagues" x:Name="LeagueMenu" ItemsSource="{Binding Leagues}" ItemTemplate="{StaticResource CombinedTemplate}" > <Controls

System.Windows.Interactivity for .NET 4.5 wpf project for .NET 4.5 wpf project

筅森魡賤 提交于 2019-12-06 20:48:28
Recently i have migrated my WPF project from .NET4.0 to .NET 4.5 and i am facing System.Windows.Interactivity issue which was otherwise working fine. Error : Could not load file or assembly 'System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) 来源: https://stackoverflow.com/questions/39929394/system-windows-interactivity-for-net-4-5-wpf-project-for-net-4-5-wpf-project

Mahapps 1.3 dialogs and Avalon.Wizard

六月ゝ 毕业季﹏ 提交于 2019-12-06 14:32:46
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 bind in the DataContext. A sample project that reproduce the issue is available here . Any suggestion on

How to call MahApps Metro Dialog box in Usercontrol in Wpf

点点圈 提交于 2019-12-06 13:42:20
When I tried to call MahApps Metro Dialog Boxes I am getting error while Passing Values while calling Dialog Control when Passing parameters I need to pass Metrowindow parameter But I need to call it in User control Below is the Method I will call when I need Dialog control public async void ShowMessageDialog(object sender, RoutedEventArgs e) { // This demo runs on .Net 4.0, but we're using the Microsoft.Bcl.Async package so we have async/await support // The package is only used by the demo and not a dependency of the library! var mySettings = new MetroDialogSettings() { AffirmativeButtonText