drop window in application into the main window like tab - c#

i am working on application with multiple windows, but i want to drop any window in the application into the main window like tab and can drop it back like window.
i have tried to used drop event in C# and MouseDown event in xaml but didn't work
so any idea how to do that?

You can't have a child "Window" within a window.
You can have a child user control.
If you still want to have a child window, it would have to appear as a popup
Or you can do a custom implementation like
http://clipflair.codeplex.com/
http://www.c-sharpcorner.com/uploadfile/mahesh/wpf-child-window/
Updated Answer
For docking window you can use third party tools like
Devexpress
Avalon
Telerik
Or for a custom implementation you can try these examples
http://www.codeproject.com/Articles/140209/Building-a-Docking-Window-Management-Solution-in-W
http://www.codeproject.com/Articles/439873/Simple-Visual-Studio-like-Pane-Resizing-Docking-an
http://www.codeproject.com/Articles/22927/Multiple-Window-Interface-for-WPF
http://www.codeproject.com/Articles/18812/WPF-Docking-Library

Related

WPF: Display notification box when my application is minimized

How to implement, using WPF, notifications mechanism similar to what eg. Chrome has?
By which I mean: custom content pop-up, displaying especially when my main application window is minimized.
Things I have tried out so far:
WPF Popup class with StaysOpen property set to true. Seems okay, except that it disappears when I minimize the main window.
Custom template window: well, it's a window, so it appears as another application window in the taskbar, which I'd like to avoid.

Is it possible for loading a Window inside a GridView in WPF?

In my task, I need to load a Window inside a GridView in WPF. It looks like MDI in Windows Form C# but I can't find the way for applying to WPF.I've used WPF MDI, but it seems to create a control looks like Window instead, not the Window tag
Thank you for your support
In WPF, only one windows can be created at a time. So unlike Winform, we can't add Window as a control of parent Window.

wpf application which shows all forms in one window

hi I want to make a wpf c# application which shows every form(Ex:- user registration, reports , etc..)in one window in other words I want to make an application which have one window and every user control appears and closed there when I want just like games in some games like middle of honor warfighter they have one window and if we chose option option buttons appear in the same window and if we chose graphics that graphic page content appear in that same window.
and I want to know is there any frame work or special method is there which I should fallow other than putting wpf controls one over another and changing there visibility and isopen status.If there is any examples please give me a link
You can use ContentControl for holding any element. also PRISM is best approach.
You can use WPF Popup forms below are some links for more info:-
http://www.dzone.com/articles/understanding-wpf-popups
http://www.c-sharpcorner.com/Blogs/11700/
Take a look at this MDI Control. It helps you to show any kind of usercontrol in one container as window.

Create Visual Studio style Options/Settings Dialog

I am currently in the process of improving my options dialog for a winforms application. At the moment I am using a tab control.
I would like to create a form/dialog for settings that is similar to Visual Studio's. How is this done? I can see a treeview like control on the left hand side but what control are they using to display each of the options pages, it doesn't appear to be a tab control. I would like to be able to build the controls for each of the settings at design time.
Thanks.
They look to me like UserControls. I can't say how exactly they implement it, but it would be simple enough to build a UserControl for each option type and swap out the current control when the tree view selection changes. In your designer you would simply have the TreeView and a parent panel to host the UserControls. At runtime you would perform the swap.

How would i make another application's child window into a tab? (C#)

For instance, I have an application that has a main window and then child windows inside of it.
http://screenshots.rd.to/sn/e3hek/sapienfullwindow.png
http://screenshots.rd.to/sn/e3hek/appscreen8.png
What i need is to grab each individual child window of that application, and display them as tabs in my application, or on a panel's handle.
I already have code to kidnap the application and put it into mine, and it works great.
MDI support is already present in the C#. So the first screenshot is using the MDI option.
The second screenshot is using tabbed windows. Now you have two options:
Use this opensource library DockPanelSuite which will let you have tabs in your application. something similar to visual studio interface. You can create forms and then tab it based on your needs. You can even dock them anywhere in the parent form by drag and drop. Just like in visual studio.
The second option is to create a form with tab control covering the whole windows. There you create tabs using the resource editor and hide/show based on the forms you want to display to the end user.
In my opinion, use the first option which gives you lot more customization. Also if you use the dockpanel, you can switch between the views shown in your first screenshot and second one. So user has better control as to how he wants to view. Dockpanel is free to use even in commerical apps and comes with source code. So you can either use the dll or directly incorporate the code in your application.

Categories