-1

わかりましたので、 msdnの WPF WPF Example を試してみたところ、ドロップダウン メニューが表示されることに気付きましたが、xaml コード自体に移動した場合にのみドロップダウン メニューが表示されます。それでも、茶色を選択すると、暗い赤が表示されますが、これはどうですか?

質問:

デフォルトの茶色を取得する方法。

コード:

Xamlコードを忘れてすみません..

<Window x:Class="WPF_Ink_Pane.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Ink Pane" Height="550" Width="370">
<Grid Background="Brown" Height="520" VerticalAlignment="Top">
    <Grid.ColumnDefinitions>
        <ColumnDefinition/>
        <ColumnDefinition Width="0*"/>
    </Grid.ColumnDefinitions>
    <InkCanvas x:Name="inkCanvas" Margin="9,9,10,68" Background="LightYellow"/>
    <Button x:Name="btnClear" Content="Clear" HorizontalAlignment="Left" Margin="9,457,0,0" VerticalAlignment="Top" Width="149" Height="39" Click="btnClear_Click"/>
    <Button x:Name="btnClose" Content="Close" HorizontalAlignment="Left" Margin="202,457,9,0" VerticalAlignment="Top" Width="150" Height="39" Click="btnClose_Click"/>

</Grid>

編集:

ここに画像の説明を入力

4

1 に答える 1

1

プロパティウィンドウ

これはあなたのプロパティウィンドウがどのように見えるかですか?

SaddleBrownはい、標準Brownには赤い色合いがあるため、 MSDNは意味しているに違いありません。

于 2013-02-01T14:54:43.773 に答える