Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Not sure what you are trying to accomplish but i think conceptually the <code>Grid</code> should be part of the <code>Expander.Content</code>, would this work for you?</p> <pre><code>&lt;Expander Header="Test" ExpandDirection="Right" HorizontalAlignment="Left" Background="LightBlue"&gt; &lt;Expander.Content&gt; &lt;Grid&gt; &lt;Grid.ColumnDefinitions&gt; &lt;ColumnDefinition Width="Auto"/&gt; &lt;ColumnDefinition Width="5"/&gt; &lt;/Grid.ColumnDefinitions&gt; &lt;TextBlock Text="Lorem ipsum dolor sit"/&gt; &lt;GridSplitter Grid.Column="1" Width="5" ResizeBehavior="PreviousAndCurrent" ResizeDirection="Columns"/&gt; &lt;/Grid&gt; &lt;/Expander.Content&gt; &lt;/Expander&gt; </code></pre> <p><strong>Edit:</strong> Removed all the triggering from the first column as it seemed unnecessary.</p> <p>Also: For this to work vertically the GridSplitter's <a href="http://msdn.microsoft.com/en-us/library/system.windows.frameworkelement.horizontalalignment.aspx" rel="noreferrer"><code>HorizontalAlignment</code></a> must be set to <code>Stretch</code>, otherwise it will have zero width by default (of course everything else that is orientation-specific must be adapted as well but that is straightforward)</p> <blockquote> <p>HorizontalAlignment is the Microsoft .NET property accessor for what is in reality a dependency property. This particular dependency property quite frequently has its apparent "default" value set differently in subclassed elements, particularly controls. [...] For example, the apparent "default" of HorizontalAlignment for a Label control will be Left, even though Label inherits HorizontalAlignment direct from FrameworkElement. This is because that value was reset within the default style of Label, within the style's control template.</p> </blockquote>
    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.
 

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