Community
I'm trying to set the window docking to DockLeft but I'm getting an exeption ( Parameter is Incorrect )
public static void LoadProjectsWindow(IntPtr pageHandle, string WindowName, string WindowInternalName, ref DockableWindow DockWindow)
{
DockableWindows windows;
windows = m_DockableWindows;
PojectsDockWindow = windows.Add(Resources.Projects_ClientID, WindowInternalName, WindowName);
if (PojectsDockWindow == null)
return;
double screenWidth = System.Windows.SystemParameters.WorkArea.Width;
int mDockWindowWidth = (int)(screenWidth / 7);
PojectsDockWindow.DockingState = DockingStateEnum.kDockLeft; // Exception here
PojectsDockWindow.Width = mDockWindowWidth;
PojectsDockWindow.Visible = true;
PojectsDockWindow.AddChild(pageHandle);
}
How can I fix this problem?
Try enable docking states before setting enum to DockingStates.
dockWindow.DisabledDockingStates = False
Can't find what you're looking for? Ask the community or share your knowledge.