12">Control Properties</TextBlock><TextBlockStyle="{StaticResource titleText}">Background Color</TextBlock><StackPanelMargin="10,10,10,10"><RadioButtonName="rdbtnOriginalBackColor"IsChecked="True"Click="BackColorChanged">Original</RadioButton><RadioButtonName="rdbtnBackGreen"Click...
CalendarItem テンプレートでは、次のように外側の Border に対して新しい Background ブラシを追加しました。コピー <LinearGradientBrush StartPoint="0 0" EndPoint="0 1"> <GradientStop Offset="0" Color="#FFFFC0" /> <GradientStop Offset="0.5" Color="#FFE0B0" /> <GradientStop Offset=...
次の例では、ButtonのBackgroundプロパティをアニメーション化します。 技術的には、プロパティ要素の構文では空白のSolidColorBrushがBackgroundとして設定され、SolidColorBrushのColorプロパティはアニメーション化されます。 XAML <ButtonContent="I am animated"><Button.Background><SolidColorBrushx...
ColorName プロパティの型が文字列で Background プロパティの型が Brushであるにもかかわらず、このバインドが機能することを不思議に思うかもしれません。 このバインドでは、既定の型変換が使用されます。これについては、「データ変換」セクションで説明します。
ColorName プロパティの型が文字列で Background プロパティの型が Brushであるにもかかわらず、このバインドが機能することを不思議に思うかもしれません。 このバインドでは、既定の型変換が使用されます。これについては、「データ変換」セクションで説明します。
"XAML" での SolidColorBrush の使用 XAML で領域を純色で塗りつぶすには、次のオプションのいずれかを使用します。 定義済みの純色のブラシを名前で選択します。 たとえば、ボタンのBackgroundを "Red" または "MediumBlue" に設定できます。 その他の定義済みの純色ブラ...
たとえば、特定のボタンのBackgroundにSolidColorBrushが設定されているという想定でその色をアニメーション化しようとしたところ、実際にはボタンの背景を設定するためにLinearGradientBrushが使用されていたとします。 このような場合、例外はスローされませんが、LinearGradientBrushがColorプロパティ...
publicBrush Background {get;set; }publicBrush BorderBrush {get;set; }publicThickness BorderThickness {get;set; }publicFontFamily FontFamily {get;set; }publicdoubleFontSize {get;set; }publicFontStretch FontStretch {get;set; }publicFontStyle FontStyle {get;set; }publicFontWeight F...
(System.Drawing.Color) WindowsFormsHost 要素を使用して、ホストされているコントロールの BackColor プロパティとホストされているコントロールの BackgroundImage プロパティを設定します。 マッピングは、次の規則を使用して実行されます。 - Background が純色の場合、変換され、ホストされ...
<Button.Style> <Style TargetType="{x:Type Button}"> <Setter Property="Background" Value="Blue"/> <Style.Triggers> <Trigger Property="IsMouseOver" Value="True"> <Setter Property="Background" Value="Yellow" /> </Trigger> </Style.Triggers> </Style> </Button.Style> Which color do yo...