Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <blockquote> <p>is there some WPF equivalent of nobr?</p> </blockquote> <p>Remember that you can nest panels:</p> <pre><code>&lt;WrapPanel Orientation="Horizontal"&gt; &lt;StackPanel Orientation="Horizontal"&gt; &lt;Label&gt;Some field&lt;/Label&gt; &lt;TextBox&gt;Some value&lt;/TextBox&gt; &lt;/StackPanel&gt; &lt;StackPanel Orientation="Horizontal"&gt; &lt;Label&gt;Another field&lt;/Label&gt; &lt;TextBox&gt;Another value&lt;/TextBox&gt; &lt;/StackPanel&gt; ... &lt;/WrapPanel&gt; </code></pre> <p>Also, for columnar layouts, the shared size scope of the Grid can coordinate any number of grids that use it:</p> <pre><code>&lt;StackPanel Orientation="Vertical" Grid.IsSharedSizeScope="True"&gt; &lt;Grid&gt; &lt;Grid.ColumnDefinitions&gt; &lt;ColumnDefinition Width="Auto" SharedSizeGroup="Label"/&gt; &lt;ColumnDefinition Width="*"/&gt; &lt;/Grid.ColumnDefinitions&gt; &lt;Label Grid.Column="0"&gt;Some field&lt;/Label&gt; &lt;TextBox Grid.Column="1"&gt;Some value&lt;/TextBox&gt; &lt;/Grid&gt; &lt;Grid&gt; &lt;Grid.ColumnDefinitions&gt; &lt;ColumnDefinition Width="Auto" SharedSizeGroup="Label"/&gt; &lt;ColumnDefinition Width="*"/&gt; &lt;/Grid.ColumnDefinitions&gt; &lt;Label Grid.Column="0"&gt;Another field&lt;/Label&gt; &lt;TextBox Grid.Column="1"&gt;Another value&lt;/TextBox&gt; &lt;/Grid&gt; &lt;/StackPanel&gt; </code></pre> <p>I kind of hate how verbose the XAML for this is, especially that you have to repeat the column definitions. Though if you structure your classes properly and use templates it's not so terrible. And notice that you aren't keep track of row numbers anywhere in this scheme, so reordering fields is simple.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload