|
-
Jun 4th, 2009, 09:47 AM
#1
Thread Starter
Hyperactive Member
[RESOLVED] How to change the title bar and buttons
Hi there,
So I am just getting started with WPF / 3.5 - I have previously only used 2.0 and win forms (well asp.net but that is a different story)
Anyway - I hammered out my first little app and I figured out how to use templates for the buttons (which is soooo super nice...) but I want to change the title bar to look more like something you would see on say "Windows Live Messenger" - I am using XP so I just get the generic XP title bar... I tried searching the net but it seems like I don't yet know enough of what I am talking about to even get reasonable results...
Any pointers to useful resources?
Thanks!
-
Jun 4th, 2009, 11:55 AM
#2
Frenzied Member
Re: How to change the title bar and buttons
The issue here is that the title bar is one of those parts thats not a pure .NET control like the way buttons are in WPF. My suggestion would be to set your application to be borderless and draw your own. it could be achieved with relitive ease by using built in controls and some styling.
-
Jun 4th, 2009, 12:23 PM
#3
Re: How to change the title bar and buttons
 Originally Posted by DeanMc
The issue here is that the title bar is one of those parts thats not a pure .NET control like the way buttons are in WPF. My suggestion would be to set your application to be borderless and draw your own. it could be achieved with relitive ease by using built in controls and some styling.
Yeah thats exactly what I do and it works well. You can just use the Me.DragMove method in the MouseDown event of your 'title border' control as well and that makes the whole dragging the title bar to move the window thing a lot easier
-
Jun 4th, 2009, 08:14 PM
#4
Thread Starter
Hyperactive Member
Re: How to change the title bar and buttons
Thanks folks... now I know!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|