Hi Friends
A very Happy New Year to everyone. :)
Recently, I have jumped into WPF based development and I currently I am trying to design a custom looking Application. I don't want Windows 7 Style Chrome (the Window Border). So, I am using
WindowChrome
Library which is available via
Microsoft.Windows.Shell
.
Now, here's where I am stuck. I have used
MainWindow.xaml
<shell:WindowChrome GlassFrameThickness="0" />
This actually hides the Glass Border around the Window.
Then, I created few labels so that they represent the Minimize, Maximize and Close Buttons of a Window.
The Second point is, I defined the mouse events for these Labels to behave as the three different buttons present on rightmost side of the Window and they were working when I was using this
<Window.WindowStyle>None</Window.WindowStyle>
but When I used WindowChrome I set it back to
<Window.WindowStyle>SingleBorderWindow</Window.WindowStyle>
Now, The
WindowChrome
Class I used as shown above, it hide the Chrome (The glass border) but there is surely some overlapping issues with the original buttons and my custom made controls (the labels) and the mouse event is not firing on my labels now and so, I am unable to use them that way.
Now, I am trying to somehow connect the click event of these labels to the respective buttons of a normal Window So, that they only behave as a skinning to the original control.
Here is a screenshot of my design Click Here
Please give me some pointers to move ahead.
A very Thank you to everyone.
With Regards
Tushar Srivastava