![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
|
Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
br> br> |
| |||||||
![]() |
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| Guest | How do I customize the look of the NavigationWindow? I'd like to know how to customize the look of the NavigationWindow. I'd like to change the font color, the gradiant and also add a logo on the top right of it. Any leads are appreciated thanks. Phil |
My System Specs![]() |
| | #2 (permalink) |
| Guest | Re: How do I customize the look of the NavigationWindow? Philippe Lavoie wrote: > I'd like to know how to customize the look of the NavigationWindow. > > I'd like to change the font color, the gradiant and also add a logo on > the top right of it. > > Any leads are appreciated thanks. You need to define a new Style that replaces the NavigationWindow chrome. For example, this would remove the chrome altogether: <Style x:Key="{x:Type NavigationWindow}" TargetType="{x:Type NavigationWindow}"> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="{x:Type NavigationWindow}"> <ContentPresenter ClipToBounds="True" Content="{TemplateBinding Window.Content}" /> </ControlTemplate> </Setter.Value> </Setter> </Style> So, with that simple definition as a starting point, you can now do whatever you desire around that ContentPresenter to make it look however you like. Keep in mind that you will need to provide your own navigation controls now. What I find interesting, and maybe Microsoft can address this, is that, AFAIK, there's no NavigateForward/Backward commands that you can just raise that will cause the NavigationWindow to actually navigate. So this means you need to hook event handlers to some UI elements and control the NavigationWindow yourself. Maybe I just can't find them... I would expect the commands to be fields off of NavigationWindow itself. HTH, Drew ___________________________________ Drew Marsh Chief Software Architect Mimeo.com, Inc. - http://www.mimeo.com Weblog - http://blog.hackedbrain.com/ |
My System Specs![]() |
| | #3 (permalink) |
| Guest | Re: How do I customize the look of the NavigationWindow? I wrote: > What I find interesting, and maybe Microsoft can address this, is > that, AFAIK, there's no NavigateForward/Backward commands that you can > just raise that will cause the NavigationWindow to actually navigate. > So this means you need to hook event handlers to some UI elements and > control the NavigationWindow yourself. Maybe I just can't find them... > I would expect the commands to be fields off of NavigationWindow > itself. I had thought I searched for this also, but it turns out there is a NavigationCommands class inside System.Windows.Input that contains the commands I was thinking of. So if you just bind the command to your custom buttons in your template it should "just work". HTH, Drew |
My System Specs![]() |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How do I customize? | Stray_Mongrel | General Discussion | 12 | 06-30-2008 05:28 PM |
| Positioning an app based on NavigationWindow | steve | Avalon | 1 | 03-28-2007 10:48 AM |
| NavigationWindow Example | Stefc | Avalon | 0 | 05-06-2006 01:44 AM |
| NavigationWindow Template | Stephen Planck | Avalon | 1 | 01-10-2006 03:53 PM |