前景テキストに使用するブラシ |
動的スタイル (PRIM_VS.Style) のメンバ
データタイプ - PRIM_VS.Brush - ブラシ
BackgroundBrushプロパティは、コントロールの背景に適用される Brush のインスタンスへの参照です。
スタイルの前景機能は、子コントロールに継承されます。これにより、全体で使用されるアプリケーションレベルで単一の色を適用することができます。
ForegroundBrush と TextColor の両方が同じスタイルで指定されている場合は、ForegroundBrush が優先されます。
この例では、背景 Linear Brush を使用した単純なスタイルの定義を示します。
IDE はスタイルとブラシの作成を管理します。このコードは参考目的のために提供されています。
Define_Com Class(#PRIM_VS.Style) Name(#ForeGround) Foregroundbrush(#Foregroundbrush)
Define_Com Class(#PRIM_VS.LinearBrush) Name(#Foregroundbrush) Colors(#ForegroundbrushColors)
Define_Com Class(#Prim_Vs.BrushColors) Name(#ForegroundbrushColors)
Define_Com Class(#PRIM_VS.BrushColor) Name(#ForegroundbrushColor1) Color(Silver) Parent(#ForegroundbrushColors)
Define_Com Class(#PRIM_VS.BrushColor) Name(#ForegroundbrushColor1) At(100) Color(White) Parent(#ForegroundbrushColors)