wpf - Problems with Column content and GridSplitter -
how can set width of content of 1st 3rd or 5th columns, , still have splitters work properly?
<window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:local="clr-namespace:infinity.shell.controls.text;assembly=infinity.shell" xmlns:dock="clr-namespace:infinity.shell.controls.docking;assembly=infinity.shell" xmlns:syncfusion="http://schemas.syncfusion.com/wpf" x:class="infinity.mainwindow" mc:ignorable="d" title="mainwindow" height="350" width="499.573" background="#ff1e1e1e"> <grid> <grid.columndefinitions> <columndefinition width="*"/> <columndefinition width="auto"/> <columndefinition width="*"/> <columndefinition width="auto"/> <columndefinition width="*"/> </grid.columndefinitions> <button content="first" grid.column="0"/> <gridsplitter grid.column="1" width="5" verticalalignment="stretch" horizontalalignment="center"/> <button content="second" grid.column="2"/> <gridsplitter grid.column="3" width="5" verticalalignment="stretch" horizontalalignment="center"/> <button grid.column="4" content="third"/> </grid>
Comments
Post a Comment