Quantcast
Channel: Docking/MDI for WPF - Recent Posts
↧

Re: How to Add a New Tab to a Specific Tab Group in TabbedMdiHost When...

Thank you for your response. Yes, we are using an MVVM architecture, and the "item" being dropped refers to the ViewModel in the MVVM pattern. Your suggested methods are helpful, and we will co...

View Article


Re: How to Add a New Tab to a Specific Tab Group in TabbedMdiHost When...

Hi Miles, If you are using MVVM with ViewModel items for the document windows and are opening them with IsOpen=true, then you want to focus on using the options in the "Default Locations" section...

View Article


Re: Mouse cursor position is wrong sometimes

Hello, Do you have any update for this issue?

View Article

Re: Mouse cursor position is wrong sometimes

I'm sorry but we don't have any further updates on this.

View Article

How to programmatically dock a tool window under MDI area without stretching...

In our product we only use Docking/MDI programmatically, nothing is preconfigured in XAML. One of our use cases is having a document tab and a tool window at the bottom, which can be opened and clo...

View Article


Re: How to programmatically dock a tool window under MDI area without...

Hello, If you have an x:Name on the Workspace, then I believe you can call the ToolWindow.Dock(workspace, Side.Bottom) method to dock it how you are looking for, which is directly under the Works...

View Article

Create RaftingHost programatically

Hi, here is some of my docksite layout content(created by DockSiteSerializer)<RaftingHost IsMaximized="false" Location="320,63" Size="326,640" State="Floating"><Content xsi:type="ToolWindo...

View Article

Re: Create RaftingHost programatically

Hello, No, there is not a way to directly create the control related to that XML tag. Instead, you would want to call the Float method on a ToolWindow or its parent ToolWindowContainer. That wi...

View Article


InvalidOperationException: This Visual is not connected to a PresentationSource.

Hello, We encountered "InvalidOperationException: This Visual is not connected to a PresentationSource." Would you please check it? I will send sample project and video later by email. ...

View Article


Re: InvalidOperationException: This Visual is not connected to a...

Hello, Thank you for the sample. We've added a couple guards against this scenario to prevent it in the future. The updated code will be in the v24.1.3 maintenance release.

View Article

Popuped auto hide window is remained when minimize main window of application.

Hello, Popuped auto hide window is remained when minimize main window of application. We are using nested DockSite, and using WindowsFormsHost in document window. Would you please check i...

View Article

Re: Popuped auto hide window is remained when minimize main window of...

Hello, This is a tricky situation since it appears: You are using nested dock sites. You have turned off DockSite.UseHostedPopups, which enables workarounds we have to implement for airspac...

View Article

Re: Popuped auto hide window is remained when minimize main window of...

Thank you for your reply. Is it possible to re-open closed popup when the window is restored?

View Article


Re: Popuped auto hide window is remained when minimize main window of...

Hello, You would have to track the auto-hide window that was previously open via nestedDockSite.PrimaryDockHost.AutoHidePopupToolWindow. Then when the main window unminimizes, if you had tracked...

View Article

Toolwindow lost after being saved

I have a very difficult bug to produce when saving the docklayout for later use. I have hardcoded the ToolWindowsHaveCloseButtons="False" in my xaml which the issue arises. I have 2 layers deep o...

View Article


Re: Toolwindow lost after being saved

Hello, It's hard to say with little to go on, but I would suspect that trying to load/save layouts within events like WindowsOpening/Closing event handlers is likely contributing to issues since ...

View Article

Re: Toolwindow lost after being saved

I recall when I had the code in the loaded and unloaded, the views were whiped out and the saved state was wrong. It would save state with no controls. Also I have embeded dockable views within o...

View Article


Re: Toolwindow lost after being saved

I removed the windows opening and window closing code and now there are no tool windows when the view is unloaded. So I can't save the state.

View Article

Re: Toolwindow lost after being saved

I modified my code to save off the state when the datacontext is lost. I also removed the code where I nulled out the observable toolwindow array. I now, dispose of the toolwindow view models, bu...

View Article

InvalidOperationException occur when activate ToolWindow

Hello, In our application, the following exception occur sometime when activate ToolWindow. Would you please check it? For now, I'm not sure if there is particular steps or condition. And I...

View Article

Re: InvalidOperationException occur when activate ToolWindow

Hello, I'm sorry you're having trouble. We are not aware of any issues like this and would need a new simple sample project that shows it happening to debug with. That sort of thing should be r...

View Article


Hide specific floating windows in taskbar

Hi, we have a search and replace dialog in our application which is a floating window. Since we enabled the option "FloatingWindowShowInTaskBarMode", the dialog is hidden when the application is ...

View Article


Re: Hide specific floating windows in taskbar

Hi Tobias, If you use FloatingWindowShowInTaskBarMode.Default, which is the default, only floating windows with workspaces (i.e. MDI areas) will show in the taskbar. Things like Search and Repla...

View Article

Re: Hide specific floating windows in taskbar

Huh, I guess that works too. Thank you for your help.

View Article

Request for MVVM-Based Nested Dock Sites Layout Serialization Example

Dear Actipro Team, I hope this message finds you well. We are currently using Nested Dock Sites in our project. When we save and load the program, we also save and load the layout. While the sa...

View Article


Re: Request for MVVM-Based Nested Dock Sites Layout Serialization Example

Hello, I'm sorry you're having trouble. I would not expect the title of a tool window to affect anything as long as you use the SerializationId for each tool window to give it a unique consisten...

View Article

Re: Request for MVVM-Based Nested Dock Sites Layout Serialization Example

Hello, I have identified the cause of the issue with different sizes. Before<controls:MainDockSite x:Name="DockSite" DocumentItemContainerStyle="{StaticResource SlotG...

View Article

Re: Request for MVVM-Based Nested Dock Sites Layout Serialization Example

Additionally, following your advice to load the Outer DockSite first and then the Inner DockSite has resolved the issue of the order being changed. If possible, could you add a property to bind t...

View Article

Re: Request for MVVM-Based Nested Dock Sites Layout Serialization Example

Hello, I'm very happy to hear you made some progress. I will say that the XAML snippets you posted should not need all the inner controls you added. For instance, in your Before/After scenario,...

View Article



Doubleclick on tool Window do not maximize

Hi, When click on title of toolwindow and it's in floating mode, It maximize it. I want to dock it back on double click. Thanks.

View Article

Re: Request for MVVM-Based Nested Dock Sites Layout Serialization Example

Final question then: When exactly is the point you mentioned where "everything is being loaded and arranged"? Could you let me know when this occurs, and if there’s an event or method I can o...

View Article

Re: Doubleclick on tool Window do not maximize

Hello, This is a tricky situation due to the mix of WPF and Win32 code in place. Our implementation tells Windows that the title bar area is a non-client title bar area of the window, which mea...

View Article

Re: Request for MVVM-Based Nested Dock Sites Layout Serialization Example

Hello, I would expect that when the containing Window's Loaded event fires, it has already loaded and arranged the outer DockSite.

View Article


Re: Doubleclick on tool Window do not maximize

I am holding my ToolWindow in ToolWindowContainer, can we do any thing in it to perform that functionality?Another thing I see we have a DefaultDockSide property, If an other property is added for ...

View Article

Re: Doubleclick on tool Window do not maximize

Good news, we were able to turn non-client title bar area hit testing off and still maintain all existing functionality by introducing a minimum drag distance before calling DragMove(). This allow...

View Article

Re: Doubleclick on tool Window do not maximize

Great. Thanks for update.Are you going to provide a hotfix or is it going to available in next release?

View Article


Re: Doubleclick on tool Window do not maximize

It will be available in the next release. We don't have a target date yet for that release.

View Article


Active window is changed when press END key.

Hello, When press END/HOME key, active window is sometimes changed. I'd like not to change active window by END/HOME key. Would you please tell me how to do it?

View Article

Re: Active window is changed when press END key.

Hello, We do not have any key processing code for Home/End, however after looking into it further, it appears that the base native TabControl does override OnKeyDown and handles those keys to cha...

View Article

System.ArithmeticException: Overflow or underflow in the arithmetic operation.

Version=20.1.1.0I'm not sure why this is happening. Is this something y'all can explain?System.ArithmeticException: Overflow or underflow in the arithmetic operation.at ActiproSoftware.Windows.Cont...

View Article

Re: System.ArithmeticException: Overflow or underflow in the arithmetic...

Hello, I'm sorry you're having trouble. We haven't had any recent reports of issues with the SplitContainerPanel measuring logic. First, are you able to reproduce this easily? If so, since yo...

View Article


Re: Hide tab bar if only one tab is visible

Any improvement 8 years after ?

View Article

Re: Hide tab bar if only one tab is visible

Hello, I'm sorry but this wasn't prioritized for implementation. Can you describe your use case in detail so we can add it to our notes on the related TODO item and review it again? Thanks! O...

View Article


Re: Hide tab bar if only one tab is visible

We're happy to report that v25.1 will have built-in support to hide the tab strip of the MDI area if there is only one tab present. This will be enabled by setting TabbedMdiHost.SingleTabLayoutBeha...

View Article

How to avoid tab title ellipsizing when increasing tab size

HiI use `ActiproSoftware.Docking.Legacy.Wpf.dll` 18.1.672.0. I want to increase the size of the document windows tabs.Specifically, I'm considering displaying only two tabs in the parent contain...

View Article


Re: How to avoid tab title ellipsizing when increasing tab size

Hello, I believe in that old version there was a TitleConverter used in the DockingWindow template keyed DockingWindowTabbedMdiDocumentTemplateKey. If you download our default styles/templates a...

View Article

Re: How to avoid tab title ellipsizing when increasing tab size

Thank you for your prompt support! I confirmed that by redefining the duplicated `DocingWindow.xaml` in the Application Resource as you suggested, and removing the use of `TitleConverter`, the st...

View Article

Re: How to avoid tab title ellipsizing when increasing tab size

Hello, Make sure you include the ControlTemplate.Triggers section in your cloned template update, since those are what allow the tab to change state appearance when the mouse is over the tab, the...

View Article

Re: How to avoid tab title ellipsizing when increasing tab size

Hi Yes, I am sure to include the triggers. I found that removing the following styles from the DockingWindow, <Setter Property="TabBackground" Value="{DynamicResource {x:Static themes:Asse...

View Article


Re: How to avoid tab title ellipsizing when increasing tab size

Hello, Ordinarily that shouldn't be necessary since everything works out of the box correctly with the default styles/templates. Trigger Setters normally override default Setters. However I won...

View Article