Results 1 to 4 of 4

Thread: [RESOLVED] How to change the title bar and buttons

  1. #1

    Thread Starter
    Hyperactive Member r0k3t's Avatar
    Join Date
    Dec 2005
    Location
    Cleveland
    Posts
    361

    Resolved [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!
    Anti DUPLO machine!!!

  2. #2
    Frenzied Member
    Join Date
    Jul 2008
    Location
    Rep of Ireland
    Posts
    1,380

    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.

  3. #3
    Pro Grammar chris128's Avatar
    Join Date
    Jun 2007
    Location
    England
    Posts
    7,604

    Re: How to change the title bar and buttons

    Quote Originally Posted by DeanMc View Post
    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
    My free .NET Windows API library (Version 2.2 Released 12/06/2011)

    Blog: cjwdev.wordpress.com
    Web: www.cjwdev.co.uk


  4. #4

    Thread Starter
    Hyperactive Member r0k3t's Avatar
    Join Date
    Dec 2005
    Location
    Cleveland
    Posts
    361

    Re: How to change the title bar and buttons

    Thanks folks... now I know!
    Anti DUPLO machine!!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width