背景として使用するブラシ |
動的スタイル (PRIM_VS.Style) のメンバ
データタイプ - PRIM_VS.Brush - ブラシ
BackgroundBrush プロパティは、コントロールの背景に適用される Brush のインスタンスへの参照です。
スタイルの背景機能は、子コントロールには継承されません。したがって、フォームに適用された背景は、そのまま子コントロールに繰り返されることはありません。
Panels と Labels はデフォルトで透明であり、メインページの背景を定義するために、多くの場合にのみ必要です。
BackgroundBrush と NormBackColor の両方が同じスタイルで指定されている場合は、BackgroundBrush が優先されます。
この例では、背景 Linear Brush を使用した単純なスタイルの定義を示します。
IDE はスタイルとブラシの作成を管理します。このコードは参考目的のために提供されています。
Define_Com Class(#PRIM_VS.Style) Name(#BackGround) Backgroundbrush(#Backgroundbrush)
Define_Com Class(#PRIM_VS.LinearBrush) Name(#Backgroundbrush) Colors(#BackgroundbrushColors)
Define_Com Class(#Prim_Vs.BrushColors) Name(#BackgroundbrushColors)
Define_Com Class(#PRIM_VS.BrushColor) Name(#BackgroundbrushColor1) Color(Silver) Parent(#BackgroundbrushColors)
Define_Com Class(#PRIM_VS.BrushColor) Name(#BackgroundbrushColor1) At(100) Color(White) Parent(#BackgroundbrushColors)