嘿,亲!知识可是无价之宝呢,但咱这精心整理的资料也耗费了不少心血呀。小小地破费一下,绝对物超所值哦!如有下载和支付问题,请联系我们QQ(微信同号):813200300
本次赞助数额为: 2 元微信扫码支付:2 元
请留下您的邮箱,我们将在2小时内将文件发到您的邮箱
组件合成功能
using System;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Input;
using MahApps.Metro.Controls;
using MahApps.Metro.Controls.Dialogs;
namespace MahMaterialDragablzMashUp
{
public class DialogsViewModel
{
public ICommand ShowInputDialogCommand { get; }
public ICommand ShowProgressDialogCommand { get; }
public ICommand ShowLeftFlyoutCommand { get; }
private ResourceDictionary DialogDictionary = new ResourceDictionary() { Source = new Uri("pack://application:,,,/MaterialDesignThemes.MahApps;component/Themes/MaterialDesignTheme.MahApps.Dialogs.xaml") };
public DialogsViewModel()
{
ShowInputDialogCommand = new AnotherCommandImplementation(_ => InputDialog());
ShowProgressDialogCommand = new AnotherCommandImplementation(_ => ProgressDialog());
ShowLeftFlyoutCommand = new AnotherCommandImplementation(_ => ShowLeftFlyout());
}
public Flyout LeftFlyout { get; set; }
private void InputDialog()
{
var metroDialogSettings = new MetroDialogSettings
{
CustomResourceDictionary = DialogDictionary,