コード例 #1
0
        public DocumentPreviewViewModel(IShellNavigationService navigationService)
        {
            _navigationService = navigationService;

            OpenAsDocumentCommand = new RelayCommand(async doc => await OpenAsDocument(doc), _ => CanOpenAsDocument);

            SplitOrientation = Properties.Settings.Default.DocumentPreview_SplitOrientation;
            ContentMaxLength = Properties.Settings.Default.DocumentPreview_ContentMaxLength;
        }
コード例 #2
0
 public ApplicationInteraction(IWindowManager windowManager, IShellNavigationService navigationService)
 {
     _windowManager     = windowManager;
     _navigationService = navigationService;
 }