tags:

views:

37

answers:

1

Hi

I'd like to create a custom window using WPF that doesn't look like the regular window. The window I want to create is similar to MacOs window, with title centered (with dropshadow effect), and controls button on left side of the window.

I did create a bordless window, but some questions I have:

1 - How can I set it functionality of maximize, minimize and close buttons in XAML (if it's possible)? 2 - How can I define a window template so every new window I create have the same look and feel? 3 - Is it possible to create the Aqua maximize, minimize and close buttons using only elements from WPF (without using images)? How? 4 - How can I make the window move when dragged?

Thanks for all help.

+3  A: 

Here's an example with custom(-izable) drawing and handling of window operations (min, max, size, drag): WPF adventures (Part III) or Windows Style

Window was set to remove any title or border; all window controls, including min/max/close buttons, were defined in the custom code.

DK
Thanks! This helps a lot!!!!
RHaguiuda
:) I actually was surprised how perfectly that article matched your question. Well, except for #3, but since all controls are custom you probably can restyle WPF buttons or find a theme that can be used for it.
DK