mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-04-05 16:56:34 +08:00
添加项目文件。
This commit is contained in:
24
Dragablz/DragablzDemo/BoundExampleInterTabClient.cs
Normal file
24
Dragablz/DragablzDemo/BoundExampleInterTabClient.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
using System;
|
||||
using System.Windows;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Threading;
|
||||
using Dragablz;
|
||||
|
||||
namespace DragablzDemo
|
||||
{
|
||||
public class BoundExampleInterTabClient : IInterTabClient
|
||||
{
|
||||
public INewTabHost<Window> GetNewHost(IInterTabClient interTabClient, object partition, TabablzControl source)
|
||||
{
|
||||
var view = new BoundExampleWindow();
|
||||
var model = new BoundExampleModel();
|
||||
view.DataContext = model;
|
||||
return new NewTabHost<Window>(view, view.InitialTabablzControl);
|
||||
}
|
||||
|
||||
public TabEmptiedResponse TabEmptiedHandler(TabablzControl tabControl, Window window)
|
||||
{
|
||||
return TabEmptiedResponse.CloseWindowOrLayoutBranch;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user