Using the XamDockManager from 14.201.20142 I get a "Prefix 'igDock' does not map to a namespace." exception thrown whenever I set the theme to "Office2013". Looking through the samples this is supported and works for your example but not my use case, also all other themes I have tried work fine.
I am using Brian Laguna's region adapter in a document content host so views can be injected via regions, see the below code snippet:
<dockManager:XamDockManager> <igWPF:DocumentContentHost> <dockManager:SplitPane > <dockManager:TabGroupPane x:Name="_tabGroupPaneOne" cal:RegionManager.RegionName="{Binding RegionName}" /> </dockManager:SplitPane> </igWPF:DocumentContentHost>
</dockManager:XamDockManager>
I think i got it fixed.
When using my Approach to include the files manually and not by Setting the Theme-Property to "Office2013" you need to edit the file "DockManagerOffice2013.xaml".
Within this file there are 15 appearances of Binding to the igDock-Namespace which look like "Binding (igDock:".
You need to edit these lines to this "Binding Path=(igDock:".
Just add "Path=", save the file and the error is gone. Why exactly this is i can not tell you.
I also tried the following. Perhaps it gives someone an idea. I tried to include the desired xaml-Files as Merged-Dictionaries. So in my app.xaml i reference the File:
<ResourceDictionary Source="Themes/Office2013/DockManagerOffice2013.xaml"></ResourceDictionary>
I got the file from the Installation path. All other needed files are also included in the Project.
DockManagerAero_Brushes.xaml, DockManagerGeneric.xaml and DockManagerOffice2013_Brushes.xaml.
The same error occurs when "DockManagerOffice2013.xaml" is included. When it is included the Design-View appears different for the XamDockManager, so i think it works as intended. If i comment the "DockManagerOffice2013.xaml" so it is not included anymore the error is gone.
All this is without Setting the Theme-Property directly to "Office2013", as my idea was to use the definitions in the XAML-File as default. Sadly it does not work. I´m really sstuck as to where the Problem can be found.
btw. Same Problem with 14.1
I have the exact same Problem. I updated all References to IG14.2 and with the Change of selecting the Theme "Office2013" these Errors occur.
xmlns:igDock="clr-namespace:Infragistics.Windows.DockManager;assembly=InfragisticsWPF4.DockManager.v14.2"
...
<igDock:XamDockManager x:Name="dockManagerMain" InitializePaneContent="DockManagerMain_InitializePaneContent" ActivePaneChanged="DockManagerMain_ActivePaneChanged" Theme="Office2013"></igDock:XamDockManager>
In my cs file i populate the dockmanager this way:
dockManagerDocumentContentHost = new DocumentContentHost(); dockManagerDocumentContentHostSplitPane = new SplitPane(); dockManagerDocumentContentHostTabGroupPane = new TabGroupPane { TabStripPlacement = Dock.Top, AllowDrop = true };
dockManagerDocumentContentHost.Name = "DockManagerDocumentContentHost"; dockManagerDocumentContentHostSplitPane.Name = "DockManagerDocumentContentHostSplitPane"; dockManagerDocumentContentHostTabGroupPane.Name = "DockManagerDocumentContentHostTabGroupPane";
dockManagerMain.Content = dockManagerDocumentContentHost;
dockManagerDocumentContentHost.Panes.Add(dockManagerDocumentContentHostSplitPane); dockManagerDocumentContentHostSplitPane.Panes.Add(dockManagerDocumentContentHostTabGroupPane); <---- Here the Debugger throws that exception.
HI
I am facing the similar exception Prefix 'igDock' does not map to a namespace." when using the default theme xaml files.
Any help in this regard will be appreciated.
Regards,
Mudassir