当前位置: 首页>>代码示例>>C#>>正文


C# Layout.LayoutDocument类代码示例

本文整理汇总了C#中Xceed.Wpf.AvalonDock.Layout.LayoutDocument的典型用法代码示例。如果您正苦于以下问题:C# LayoutDocument类的具体用法?C# LayoutDocument怎么用?C# LayoutDocument使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


LayoutDocument类属于Xceed.Wpf.AvalonDock.Layout命名空间,在下文中一共展示了LayoutDocument类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: HaloScreenshot

        public HaloScreenshot(string tempImageLocation, LayoutDocument tabItem)
        {
            InitializeComponent();

            // Convert DDS to BitmapImage
            _bitmapImage = DDSConversion.Deswizzle(tempImageLocation);

            // DateTime Creation
            DateTime date = DateTime.Now;
            _datetime_long = date.ToString("yyyy-MM-dd,hh-mm-ss");
            _datetime_shrt = date.ToString("hh:mm.ss");

            // Set Tab Header
            tabItem.Title = "Screenshot {" + _datetime_shrt + "}";

            // Set Image Name
            lblImageName.Text = _datetime_long + ".png";

            // Set Image
            imageScreenshot.Source = _bitmapImage;

            // Should I save the image?
            if (!App.AssemblyStorage.AssemblySettings.XdkAutoSave) return;

            if (!Directory.Exists(App.AssemblyStorage.AssemblySettings.XdkScreenshotPath))
                Directory.CreateDirectory(App.AssemblyStorage.AssemblySettings.XdkScreenshotPath);

            string filePath = App.AssemblyStorage.AssemblySettings.XdkScreenshotPath + "\\" + _datetime_long + ".png";
            SaveImage(filePath);
        }
开发者ID:Nibre,项目名称:Assembly,代码行数:30,代码来源:HaloScreenshot.xaml.cs

示例2: AppWindowDocument_Workflow

 public AppWindowDocument_Workflow(IServiceProvider services)
 {
     _documentPane = new LayoutDocument();
     _documentPane.Content = new AfxWorkflowView(new AfxWorkflow());
     _documentPane.Title = "New Workflow";
     _documentSvcs = services;
 }
开发者ID:recurry,项目名称:Angelfish,代码行数:7,代码来源:AppWindowDocument_Workflow.cs

示例3: HaloMap

        /// <summary>
        ///     New Instance of the Halo Map Location
        /// </summary>
        /// <param name="cacheLocation"></param>
        /// <param name="tab"></param>
        /// <param name="tagSorting"> </param>
        public HaloMap(string cacheLocation, LayoutDocument tab, Settings.TagSort tagSorting)
        {
            InitializeComponent();
            AddHandler(CloseableTabItem.CloseTabEvent, new RoutedEventHandler(CloseTab));

            // Setup Context Menus
            InitalizeContextMenus();

            _tab = tab;
            _tagSorting = tagSorting;
            _cacheLocation = cacheLocation;

            // Update dockpanel location
            UpdateDockPanelLocation();

            // Show UI Pending Stuff
            doingAction.Visibility = Visibility.Visible;

            tabScripts.Visibility = Visibility.Collapsed;

            // Read Settings
            cbShowEmptyTags.IsChecked = App.AssemblyStorage.AssemblySettings.HalomapShowEmptyClasses;
            cbShowBookmarkedTagsOnly.IsChecked = App.AssemblyStorage.AssemblySettings.HalomapOnlyShowBookmarkedTags;
            cbTabOpenMode.SelectedIndex = (int) App.AssemblyStorage.AssemblySettings.HalomapTagOpenMode;
            App.AssemblyStorage.AssemblySettings.PropertyChanged += SettingsChanged;

            var initalLoadBackgroundWorker = new BackgroundWorker();
            initalLoadBackgroundWorker.DoWork += initalLoadBackgroundWorker_DoWork;
            initalLoadBackgroundWorker.RunWorkerCompleted += BackgroundWorker_RunWorkerCompleted;

            initalLoadBackgroundWorker.RunWorkerAsync();
        }
开发者ID:Nibre,项目名称:Assembly,代码行数:38,代码来源:HaloMap.xaml.cs

示例4: AfterInsertDocument

		public void AfterInsertDocument(LayoutRoot layout, LayoutDocument anchorableShown)
		{
			var parent = anchorableShown.Parent as LayoutDocumentPane;
			if (parent == null)
				parent = anchorableShown.FindParent<LayoutDocumentPane>();
			if (parent != null)
			{
			}
		}
开发者ID:saeednazari,项目名称:Rubezh,代码行数:9,代码来源:LayoutUpdateStrategy.cs

示例5: TaskVM_requestTaskCreation

        private void TaskVM_requestTaskCreation(object sender, EventArgs<TaskCreationViewModel> e)
        {
            TaskCreationPage t = new TaskCreationPage(e.Data);

            LayoutDocument d = new LayoutDocument();
            d.Title = "Создание задачи";
            d.Content = t;

            parentArea.Children.Add(d);
            d.IsActive = true;
        }
开发者ID:UNN-Data-Mining-Group,项目名称:Data-Mining-Tool-System,代码行数:11,代码来源:TaskDirectoryPage.xaml.cs

示例6: open_Click

 private void open_Click(object sender, RoutedEventArgs e)
 {
     Frame _frame = new Frame();
     _frame.Content = Page1.getIndexPage();
     LayoutDocument layoutDoc = new LayoutDocument() { Title="测试而已"};
     layoutDoc.Content = _frame;
     if (!isActive(layoutDoc))
     {
         mainShowSpace.Children.Add(layoutDoc);
     }
 }
开发者ID:huzhihui,项目名称:qpgl,代码行数:11,代码来源:MainWindow.xaml.cs

示例7: TaskVM_requestSelectionCreation

        private void TaskVM_requestSelectionCreation(object sender, EventArgs<SelectionCreationViewModel> e)
        {
            CreateSelectionPage t = new CreateSelectionPage(e.Data);

            LayoutDocument d = new LayoutDocument();
            d.Title = e.Data.ParentTask + "/Создание выборки";
            d.Content = t;

            parentArea.Children.Add(d);
            d.IsActive = true;
        }
开发者ID:UNN-Data-Mining-Group,项目名称:Data-Mining-Tool-System,代码行数:11,代码来源:TaskDirectoryPage.xaml.cs

示例8: TaskVM_requestSelectionInfoShow

        private void TaskVM_requestSelectionInfoShow(object sender, EventArgs<SelectionInfoViewModel> e)
        {
            SelectionInfoPage t = new SelectionInfoPage(e.Data);

            LayoutDocument d = new LayoutDocument();
            d.Title = e.Data.TaskName + "/" + e.Data.SelectionName + "/Информация";
            d.Content = t;

            parentArea.Children.Add(d);
            d.IsActive = true;
        }
开发者ID:UNN-Data-Mining-Group,项目名称:Data-Mining-Tool-System,代码行数:11,代码来源:TaskDirectoryPage.xaml.cs

示例9: PartstypeEditorBtn_Click

 private void PartstypeEditorBtn_Click(object sender, RoutedEventArgs e)
 {
     Frame _frame = new Frame();
     _frame.Content = new PartstypeEditor();
     LayoutDocument layoutDoc = new LayoutDocument() { Title = "配件详情管理" };
     layoutDoc.Content = _frame;
     layoutDoc.IsActive = true;
     if (!isActive(layoutDoc))
     {
         mainShowSpace.Children.Add(layoutDoc);
     }
 }
开发者ID:huzhihui,项目名称:qpgl,代码行数:12,代码来源:MainWindow.xaml.cs

示例10: dockManager_Loaded

        private void dockManager_Loaded(object sender, RoutedEventArgs e)
        {
            LayoutDocument document = new LayoutDocument();
            document.CanClose = true;
            document.CanFloat = true;
            //document.DockAsDocument();
            document.Title = "test";

            WindowsFormsHost host = new WindowsFormsHost();
            host.Child = new RoomListPanel();

            documentsPane.Children.Add(document);
        }
开发者ID:carriercomm,项目名称:ZeusMud,代码行数:13,代码来源:GameMainWindow.xaml.cs

示例11: OpenDocument

		void OpenDocument(string fileName)
		{
			SqDocument doc = new SqDocument(fileName);
			Xceed.Wpf.AvalonDock.Layout.LayoutDocument layoutDoc = new Xceed.Wpf.AvalonDock.Layout.LayoutDocument();
			layoutDoc.Content = doc;
			layoutDoc.Closed += layoutDoc_Closed;
			m_CodeDocumentPane.InsertChildAt(0, layoutDoc);
			doc.Loaded += (s, e) =>
			{
				layoutDoc.Title = System.IO.Path.GetFileName(doc.DocumentFileName);
			};
			m_DockingManager.ActiveContent = doc;
		}
开发者ID:kidleon,项目名称:Squirt,代码行数:13,代码来源:MainWindow.xaml.cs

示例12: HaloInfo

        public HaloInfo(string infoLocation, LayoutDocument tab)
        {
            InitializeComponent();
            _blfLocation = infoLocation;

            var fi = new FileInfo(_blfLocation);
            _tab = tab;
            tab.Title = fi.Name;
            lblBLFname.Text = fi.Name;

            var thrd = new Thread(LoadMapInfo);
            thrd.SetApartmentState(ApartmentState.STA);
            thrd.Start();
        }
开发者ID:Nibre,项目名称:Assembly,代码行数:14,代码来源:HaloInfo.xaml.cs

示例13: HaloImage

        public HaloImage(string imageLocation, LayoutDocument tab)
        {
            InitializeComponent();

            _blfLocation = imageLocation;

            var fi = new FileInfo(_blfLocation);
            tab.Title = fi.Name;

            _tab = tab;

            lblBLFname.Text = fi.Name;

            var thrd = new Thread(loadBLF);
            thrd.Start();
        }
开发者ID:Nibre,项目名称:Assembly,代码行数:16,代码来源:HaloImage.xaml.cs

示例14: isActive

 private Boolean isActive(LayoutDocument layoutDoc)
 {
     Boolean flg = false;
     foreach (var i in mainShowSpace.Children)
     {
         ((LayoutDocument)i).IsActive = false;
         if (layoutDoc.Title== ((LayoutDocument)i).Title)
         {
           if (!((LayoutDocument)i).IsActive)
           {
               ((LayoutDocument)i).IsActive = true;
           }
           flg = true;
         }
     }
     return flg;
 }
开发者ID:huzhihui,项目名称:qpgl,代码行数:17,代码来源:MainWindow.xaml.cs

示例15: AddSlave

        private void AddSlave(SlaveViewModel slave)
        {
            var view = new SlaveView()
            {
                DataContext = slave
            };

            var layoutDocument = new LayoutDocument()
            {
                Content = view,
                Title = "Slave"
            };

            layoutDocument.Closing += SlaveClosing;
            layoutDocument.Closed += SlaveClosed;

            //Add it to the UI
            SlaveDocumentPane.Children.Add(layoutDocument);

            //Select it
            SlaveDocumentPane.SelectedContentIndex = SlaveDocumentPane.ChildrenCount - 1;
        }
开发者ID:CaptiveAire,项目名称:ModbusRegisterViewer,代码行数:22,代码来源:SlaveSimulatorView.xaml.cs


注:本文中的Xceed.Wpf.AvalonDock.Layout.LayoutDocument类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。