Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
325
Textbox Resizes in a SplitPane?
posted

In the example below, the TextBox will resize if the text ever grows past the width of the TextBox. How do I prevent the Textbox from increasing in width? I want neither the Textbox or the SplitPane to change size if the text is too large to fit in the Textbox.

 

<igDock:SplitPane Name="splitPaneWFProperties" igDock:XamDockManager.InitialLocation="DockedRight" ScrollViewer.HorizontalScrollBarVisibility="Disabled">
   <igDock:ContentPane x:Name="variableToolboxPane"  AllowClose="False" AllowDockingBottom="False" AllowDockingTop="False"
      AllowDockingFloating="False" AllowFloatingOnly="False" AllowInDocumentHost="False" AllowDockingInTabGroup="False" Header="Variable Toolbox" 
      ScrollViewer.HorizontalScrollBarVisibility="Disabled">
         <TextBox></TextBox>
   </igDock:ContentPane>
</igDock:SplitPane>

 Thanks.

Parents
  • 54937
    Offline posted

    Since there is no Width set on the root SplitPane, it will size based on the content. So for a pane docked left/right you can set a Width on the root SplitPane.

Reply Children