Click here to Skip to main content
12,455,701 members (69,319 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C# .NET WPF .NET4
I am trying to develop a floating toolbar for a .net control. Not able to find out any examples on web also. Can anyone please point me to correct source that would help me to achieve this fucntionality.

One example can be to develop a mini tool bar (as in MS Word) for a .net control.

Lets say for now we want to control the background and font size property of a control using this toolbar.
And this toolbar should pop up once I do a right click on the control.
Control can be taken as a button for a start.
Posted 11-Jul-12 3:03am
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

Hi Pranav,

I am using a third party control (Telerik) and it is having a dockable control which allows different panels to be floating. Also you could see the bellow code project example. I think this should solve your issue.

WPF Docking Library

Regards,
Darshan.
  Permalink  
Comments
Pranav_Parashar 11-Jul-12 9:53am
   
Well I am looking to achieve this using WPF only. Also my control should float without this dockable control also.
darshan_ur 11-Jul-12 10:43am
   
It seems you wish to create a custom control for your project which floats which out any docking Parent? I think this might be a bit tricky.
Then also you could try using the code which is available from the link which i mentioned above. Actually these kind of floating window could be quite useful, let me know if you need any help from my side.
Pranav_Parashar 12-Jul-12 1:57am
   
Well the link only talks about using dock manager and dock panel. I tried using a WPF popup and putting a toolbar inside that, but that dosen't seem to be an elegant solution. If you find something nice then please do share.
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

I think i have got some thing.. Do you know the child window functionality of the WPF Toolkit.
You can use these control and ChildWIndow is floating if you keep the ISModal functionality to false and all of the properties of the control is same as Window Control in the WPF.
  Permalink  
Comments
Pranav_Parashar 12-Jul-12 6:09am
   
Can you provide some link where I can refer this.
darshan_ur 12-Jul-12 6:23am
   
Here is a link bellow:

http://wpftoolkit.codeplex.com/wikipage?title=ChildWindow

Just set these property to false as bellow:
IsModal="False"
Pranav_Parashar 12-Jul-12 6:34am
   
This is a nice idea which I can use. Thanks for information. Can you point me to other products like telerik you mentioned which provide this Mini Toolbar for WPF in some way or the other.
darshan_ur 12-Jul-12 6:37am
   
http://www.telerik.com/products/wpf/overview.aspx

I am not an expert in this but you can explore the controls from here.
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 3

WPF has a PopUp control that can be used to host a control.
  Permalink  
Comments
Versatile49 23-Sep-15 10:39am
   
Why do you post it here?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160826.1 | Last Updated 9 Aug 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100