Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>This produces the same issue, but it may not be the same exact cause. Still, if we can resolve this it might give a hint for your issue.</p> <p><code></p> <p></p> <pre><code>&lt;Grid Background="Transparent"&gt; &lt;Grid.ColumnDefinitions&gt; &lt;ColumnDefinition Width="*" /&gt; &lt;ColumnDefinition Width="*" /&gt; &lt;ColumnDefinition Width="*" /&gt; &lt;/Grid.ColumnDefinitions&gt; &lt;Grid.RowDefinitions&gt; &lt;RowDefinition Height="3*" /&gt; &lt;RowDefinition Height="3*" /&gt; &lt;RowDefinition Height="3*" /&gt; &lt;RowDefinition Height="*" /&gt; &lt;/Grid.RowDefinitions&gt; &lt;Label Grid.Column="0" Grid.Row="0" Background="PaleGoldenrod" /&gt; &lt;Label Grid.Column="1" Grid.Row="0" Background="White" /&gt; &lt;Label Grid.Column="2" Grid.Row="0" Background="PaleGoldenrod" /&gt; &lt;Label Grid.Column="0" Grid.Row="1" Background="White" /&gt; &lt;!-- This is in the significant cell --&gt; &lt;Label Grid.Column="1" Grid.Row="1" x:Name="SizeChangeLabel" Background="PaleGoldenrod"&gt; Watch this cell &lt;/Label&gt; &lt;Label Grid.Column="2" Grid.Row="1" Background="White" /&gt; &lt;Label Grid.Column="0" Grid.Row="2" Background="PaleGoldenrod" /&gt; &lt;Label Grid.Column="1" Grid.Row="2" Background="White" /&gt; &lt;Label Grid.Column="2" Grid.Row="2" Background="PaleGoldenrod" /&gt; &lt;Button x:Name="ReduceContentSize" Grid.Row="3" Grid.Column="0" Click="ReduceContentSize_Click"&gt;Reduce&lt;/Button&gt; &lt;Button x:Name="IncreaseContentSize" Grid.Row="3" Grid.Column="1" Click="IncreaseContentSize_Click"&gt;Increase&lt;/Button&gt; &lt;TextBlock Grid.Row="3" Grid.Column="2" Foreground="White"&gt; The window is black &lt;/TextBlock&gt; &lt;/Grid&gt; </code></pre> <p> </code></p> <p>The click events adjust the MinWidth of the label in the centre cell. When you bump it up, you get lines which I assume are the same as your issue.</p> <p><code></p> <pre><code>private const double _sizeChangeAmount = 150; private void IncreaseContentSize_Click(object sender, RoutedEventArgs e) { SizeChangeLabel.MinWidth = SizeChangeLabel.ActualWidth + _sizeChangeAmount; SizeChangeLabel.MinHeight = SizeChangeLabel.ActualHeight + _sizeChangeAmount; } private void ReduceContentSize_Click(object sender, RoutedEventArgs e) { if (SizeChangeLabel.MinWidth &gt; 150) SizeChangeLabel.MinWidth = SizeChangeLabel.ActualWidth - _sizeChangeAmount; if (SizeChangeLabel.MinHeight &gt; 150) SizeChangeLabel.MinHeight = SizeChangeLabel.ActualHeight - _sizeChangeAmount; } </code></pre> <p></code></p> <p>Is this a reasonable approximation that can help lead to a solution?</p>
 

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