WPFとSilverlight 3 BetaにあってSilverlight 2にないシリーズ「SystemColorsクラス」
SystemColorsクラス(System.Windows名前空間)は、システムに依存した色情報を提供してくれるクラスです。Silverlight 2でこのクラスはサポートされていませんでしたが、Silverlight 3 Beta 1で追加されました。
WPFでは、1つの色につき、「Brush」、「Brushのリソースキー」、「Color」、「Colorのリソースキー」の4つの値を返す静的プロパティが用意されていますが、Silverlight 3 Beta 1では「Color」のみとなっています。また、一部の色がSilverlight 3 Beta 1にはありません。下記に比較表を掲載しておきます
WPF | Silverlight 3 Beta 1 |
---|---|
ActiveBorderColor | ActiveBorderColor |
ActiveCaptionColor | ActiveCaptionColor |
ActiveCaptionTextColor | ActiveCaptionTextColor |
AppWorkspaceColor | AppWorkspaceColor |
ControlColor | ControlColor |
ControlDarkColor | ControlDarkColor |
ControlDarkDarkColor | ControlDarkDarkColor |
ControlLightColor | ControlLightColor |
ControlLightLightColor | ControlLightLightColor |
ControlTextColor | ControlTextColor |
DesktopColor | DesktopColor |
GradientActiveCaptionColor | - |
GradientInactiveCaptionColor | - |
GrayTextColor | GrayTextColor |
HighlightColor | HighlightColor |
HighlightTextColor | HighlightTextColor |
HotTrackColor | - |
InactiveBorderColor | InactiveBorderColor |
InactiveCaptionColor | InactiveCaptionColor |
InactiveCaptionTextColor | InactiveCaptionTextColor |
InfoColor | InfoColor |
InfoTextColor | InfoTextColor |
MenuBarColor | - |
MenuColor | MenuColor |
MenuHighlightColor | - |
MenuTextColor | MenuTextColor |
ScrollBarColor | ScrollBarColor |
WindowColor | WindowColor |
WindowFrameColor | WindowFrameColor |
WindowTextColor | WindowTextColor |