本文整理汇总了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);
}
示例2: AppWindowDocument_Workflow
public AppWindowDocument_Workflow(IServiceProvider services)
{
_documentPane = new LayoutDocument();
_documentPane.Content = new AfxWorkflowView(new AfxWorkflow());
_documentPane.Title = "New Workflow";
_documentSvcs = services;
}
示例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();
}
示例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)
{
}
}
示例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;
}
示例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);
}
}
示例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;
}
示例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;
}
示例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);
}
}
示例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);
}
示例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;
}
示例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();
}
示例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();
}
示例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;
}
示例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;
}