Hello Everyone,
I need a quick help on stop resizing of dockable window. I have added WPF user control as a child to this esri dockable window and i want user cannot resize this on arcmap. It should be of fixed width. How can i achieve the same ?
Here is the code for reference
public class AddinImpl : ESRI.ArcGIS.Desktop.AddIns.DockableWindow
{
private System.Windows.Forms.Integration.ElementHost m_windowUI;
public AddinImpl()
{
}
protected override IntPtr OnCreateChild()
{
m_windowUI = new System.Windows.Forms.Integration.ElementHost();
m_windowUI.Child = new dckSafeDevt();
//m_windowUI.MaximumSize = new System.Drawing.Size(305, 500);
return m_windowUI.Handle;
}
protected override void Dispose(bool disposing)
{
if (m_windowUI != null)
m_windowUI.Dispose();
base.Dispose(disposing);
}
}
dckSafeDevt is the xaml usercontrol.
Regards