문제

I have a StackPanel (tried with a Grid as well) on my page.

<StackPanel Grid.IsSharedSizeScope="True">
    <Partials:BaseInfo x:Name="baseInfo" />
    <Partials:ExtraInfo x:Name="extraInfo" />
</StackPanel>

Both partials are using a grid with the same ColumnDefinitions:

<Grid.ColumnDefinitions>
    <ColumnDefinition Width="90" SharedSizeGroup="C1" />
    <ColumnDefinition Width="Auto" SharedSizeGroup="C2" />
    <ColumnDefinition Width="Auto" SharedSizeGroup="C3" />
    <ColumnDefinition Width="Auto" SharedSizeGroup="C4" />
    <ColumnDefinition Width="Auto" SharedSizeGroup="C5" />
    <ColumnDefinition Width="Auto" SharedSizeGroup="C6" />
    <ColumnDefinition Width="Auto" SharedSizeGroup="C7" />
    <ColumnDefinition Width="Auto" SharedSizeGroup="C8" />
</Grid.ColumnDefinitions>

Somehow 'C5' is acting up. If i set a fixes size there, everything works. If i leave it at auto, both the designer and the app will jump left/right in something that looks like an attempt to adjust the widths. The columns size up and down like crazy. I also tried with Width="*" and without a Width.

If i only Share the first 4 groups, everthing is fine as well. Also i use some ColumnSpans across different coulmns, which are different in the two usercontrols

What gives?

올바른 솔루션이 없습니다

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top