2011-12-07 15 views

答えて

5

:ちょうどActualWidthプロパティを使用し

<Window x:Class="MainWindow" 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    Title="MainWindow" Height="350" Width="525"> 
    <Grid> 
     <Label Content="{Binding RelativeSource={RelativeSource AncestorType={x:Type Window}, Mode=FindAncestor}, Path=ActualWidth}"></Label> 
    </Grid> 
</Window> 

3

Widthの代わりにActualWidthを使用してください。

5

ActualWidthも最大化状態の幅を与えます。

これについて何
関連する問題