Пример #1
0
        public Previewer(Dictionary <Type, object> viewModelsMapping)
        {
            this.viewModelsMapping = viewModelsMapping;
            var quitLive = new ToolbarItem
            {
                Text    = "Quit live preview",
                Command = new Command(() =>
                {
                    HidePreviewPage(previewPage);
                    presented = false;
                }),
            };

            previewPage = new PreviewPage(quitLive);
            errorPage   = new ErrorPage();
        }