Posted 15 years ago
by Mike Benson
-
CTO,
Abakos, Inc.
Version: 9.1.0503
Platform: .NET 3.5
Environment: Windows XP (32-bit)
Its actually a really narrow scope, we have one application that gets compiled as both an XBAP and a standard exe. Since we dont want to duplicate all the code, our app checks to see if its running in xbap or not and starts either a page or window as appropriate.
Inside the main page/window is a user control that contains our actual main form.
If the NavigationBar is inside a DockPanel inside the user control and thats in a page the NavigationBar does not get its width set correctly. It works fine in a window but not a page.
The workaround is to remove it from the dockpanel and put it in a grid, then everything works fine. I have a sample app if you would like it.
Inside the main page/window is a user control that contains our actual main form.
If the NavigationBar is inside a DockPanel inside the user control and thats in a page the NavigationBar does not get its width set correctly. It works fine in a window but not a page.
The workaround is to remove it from the dockpanel and put it in a grid, then everything works fine. I have a sample app if you would like it.