Esempio n. 1
0
 public PrimaryFiles()
 {
     InitializeComponent();
     if (!mvvmContextPrimaryFiles.IsDesignMode)
     {
         InitializeBindings();
         mvvmContextPrimaryFiles.RegisterService(
             FolderBrowserDialogService.Create(FolderBrowserStyle.SkinnableWide));
         MVVMContext.RegisterFlyoutMessageBoxService();
     }
 }
Esempio n. 2
0
        void InitializeNavigation()
        {
            mvvmContext.RegisterService(DocumentManagerService.Create(tabFormControl));
            mvvmContext.RegisterService(FolderBrowserDialogService.Create(this, new FolderBrowserDialogServiceOptions()
            {
                Description = "New Folder"
            }));
            //
            var fluent = mvvmContext.OfType <MainViewModel>();

            fluent.BindCommand(tabFormControl.AddPageButton, x => x.NewFolder());
            fluent.WithEvent(this, "Load")
            .EventToCommand(x => x.OnLoad());
            fluent.WithEvent(this, "Closed")
            .EventToCommand(x => x.OnClosed());
        }