07/08/17 00:23:21
<Page xmlns="URLリンク(schemas.microsoft.com)
xmlns:x="URLリンク(schemas.microsoft.com)
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Viewbox Grid.Column="0" Stretch="Fill">
<DockPanel>
<Grid DockPanel.Dock="Top" Background="red" Height="100"/>
<TabControl>
<TabItem Name="item1" Header="a">
<StackPanel>
<Rectangle Name="rect" Width="100" Height="100" Fill="Yellow"/>
</StackPanel>
</TabItem>
<TabItem Header="b" Height="{Binding Source=rect,Path=ActualHeight}"/>
</TabControl>
</DockPanel>
</Viewbox>
<Grid Grid.Column="1">
<Rectangle Width="{Binding Source=rect,Path=Width}"
Height="{Binding Source=rect,Path=Height}" Fill="Yellow"/>
</Grid>
</Grid>
</Page>
右側の黄色の四角を左側の黄色の四角と同じ大きさにするには?
タブ"a"と"b"を選んだ時でスケールが変わらないようにするには?