MaterialDesignInXamlToolkit icon indicating copy to clipboard operation
MaterialDesignInXamlToolkit copied to clipboard

Expander leads to infinitive loop in XAML Designer when `RowSpan` property is used

Open DrCQ opened this issue 1 year ago • 0 comments

Bug explanation

I have some Expander controls in the main Grid. Each Expander contains other Grid's with rows and columns. Columns are sharing the size between each other.

<Grid.ColumnDefinitions>
    <ColumnDefinition Width="Auto" SharedSizeGroup="A1"/>
    <ColumnDefinition Width="Auto" SharedSizeGroup="A2"/>
    <ColumnDefinition Width="Auto" SharedSizeGroup="A3"/>
    <ColumnDefinition/>
</Grid.ColumnDefinitions>

In one of these Grid controls, I have an Image using the RowSpan and ColumnSpan property.

<Image Grid.Row="0" Grid.RowSpan="6" Grid.Column="0" Grid.ColumnSpan="2" 
       Source="{Binding IconSource, Mode=OneWay}" Width="160" Height="120" HorizontalAlignment="Left"/>

This XAML statement leads to an infinity loop in the XAML Designer. The VS is busy, and the Designer shows the content of all columns jumping from the left to the right. After some tests, I guess the problem is the RowSpan property.

Closing VS and reopening the compiled solution seems temporarily to solve the problem, but any attempt to edit the XAML cause the problem again.

Version

4.9.0

DrCQ avatar Jan 20 '24 19:01 DrCQ