
Hi,
Inittially i am setting the HasTitleBar property to false.Toolwindow displayed in main application using PrismIntegration has no titlebar.
I am able to drag and move the ToolWindow without dragging the titlebar.
As i write the command bahaviour for MouseDown event for the toolwindow and that is bindee to a command and command handler for that commad is
privatevoid MouseDown(objectparam)
{
toolWindow.DragMove();
}
Docksite for the above toolwindow have the window state changed event.
dockSite.WindowStateChanged +=newEventHandler<DockingWindowStateChangedEventArgs>(dockSite_WindowStateChanged);
when i drag the toolwindow from the docked state to floated state , i am setting the HasTitleBar to false and height and width of the toolwindow.But i am not getti ting the same height and width but showing toolwindow with the titlebar.
As i dragged the toolwindow and floated its height and width should be same as ita was in the docking state.But when i drag the toolwindow and floated that toolwindow its height and width are different.
void dockSite_WindowStateChanged(object sender, DockingWindowStateChangedEventArgse)
{
stringstate = (e.Window.State).ToString();
if (state == "Floating"){
toolWindow.HasTitleBar =true;
toolWindow.Height=100;
toolWindow.Width=600;
}
else
{
toolWindow.HasTitleBar =
false;}
}