I'm familiar with C++/MFC and I'm starting to work with C# and the new WinFX, and also the new Expression environment. But for this I'm inside VS2005. One thing I want to do is remove the chrome from the default example. I understand this could be done with NavigationWindow.ShowsNavigationUI.
What I need to understand better is how entries like this are supposed to be entered. The intellesense on this comes up with options of Hidden, Visible or Auto. So I would think I could simply do something like NavigationWindow.ShowsNavigationUI.Hidden; NavigationWindow.ShowsNavigationUI.Hidden(); or maybe NavigationWindow.ShowsNavigationUI = Hidden; ... But all of these come back with bad syntax, either i'm using a variable as a method or a property as a variable or some such thing.
There's got to be some way to do this. Can someone point me in the right direction
Thanks,
KC

C# syntax?
Jean Broche
Hi KC,
Thanks for contacting with Microsoft. It's suggested posting your questions on MSDN Vista-specific forums, such as
http://forums.microsoft.com/MSDN/default.aspx forumgroupid=24&siteid=1
And here are some links on your question for your reference.
NavigationWindow Class
http://windowssdk.msdn.microsoft.com/library/default.asp url=/library/en-us/cpref34/html/T_System_Windows_Navigation_NavigationWindow.asp
NavigationWindow.ShowsNavigationUI Property
http://windowssdk.msdn.microsoft.com/library/default.asp url=/library/en-us/cpref34/html/T_System_Windows_Navigation_NavigationWindow.asp
NavigationUIVisibility Enumeration
Micky D
WolfKC,
I'm not doing any serious work on WinFX, so I don't have a way to check this directly. Anyway according to the online documentation, ShowsNavigationUI is a public property of NavigationWindow, of type bool.
I presume that if your NavigationWindow instance is named "myNav", then you should be able to write simply:
myNav.ShowsNavigationUI = false;
HTH
--mc