English 中文(简体)
• 如何在XAML & WPF中实现可变控制
原标题:How to realise detachable control in XAML & WPF

我想对我的软件进行可渗透的控制,用户可以把观点(控制)拖入一个适当的窗口。 同2010年视觉演播室的Tabas一样。

At this time the specific views are created whenever a menu point is clicked and a new DataType is requested. The views get displayed in a HeaderedContenControl which has a ContentPresenter as child element. My goal is to make it possible to click on the header of this control an drag it out to become a seperate window. In addition the seperate window should not be changed by clicking a new menu point, instead the new view should be generated in the mainwindow again. The TabControl with its TabItems seems to be a better control to realise this behavoir but the standard TabItem is a pretty basic thing without such abilities.

I searched the net for a solution but didn t find anything yet. I hope I can find help on this site.

最佳回答

这一特点通常属于各种变式解决办法的一部分。 我个人建议AvalonDock,它可以确切地说,什么是你描述的,什么是自由的(和公开的来源)。

如果你想写这样的话,你就更愿意写大量的法典。

问题回答




相关问题
Manually implementing high performance algorithms in .NET

As a learning experience I recently tried implementing Quicksort with 3 way partitioning in C#. Apart from needing to add an extra range check on the left/right variables before the recursive call, ...

Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How do I compare two decimals to 10 decimal places?

I m using decimal type (.net), and I want to see if two numbers are equal. But I only want to be accurate to 10 decimal places. For example take these three numbers. I want them all to be equal. 0....

Exception practices when creating a SynchronizationContext?

I m creating an STA version of the SynchronizationContext for use in Windows Workflow 4.0. I m wondering what to do about exceptions when Post-ing callbacks. The SynchronizationContext can be used ...

Show running instance in single instance application

I am building an application with C#. I managed to turn this into a single instance application by checking if the same process is already running. Process[] pname = Process.GetProcessesByName("...

How to combine DataTrigger and EventTrigger?

NOTE I have asked the related question (with an accepted answer): How to combine DataTrigger and Trigger? I think I need to combine an EventTrigger and a DataTrigger to achieve what I m after: when ...

热门标签