Developer Express 中的 WPF 资源总结

Developer Express 中的 WPF中的样式和模板是以资源的形式存在于

DevExpress.Wpf.Core.v9.1.dll中的,在程序中引用这些样式可以迅速的改善界面的外观。

可以在资源字典中如下引入

<ResourceDictionary.MergedDictionaries>

                <ResourceDictionary Source="{dx:UtilsResource Themes/Generic.xaml}"/>

</ResourceDictionary.MergedDictionaries>

 

使用时最关键的当然是要知道每个样式或模板的资源名称,下面是通过VS2008调试器得到的所有资源名称的一个总结。

 

 

 

{/DevExpress.Wpf.Core.v9.1;component/Themes/Azure/ControlStyles/Separator.xaml}

[0] {Name = "Separator" FullName = "System.Windows.Controls.Separator"}       object {System.RuntimeType}

{/DevExpress.Wpf.Core.v9.1;component/Themes/Azure/ControlStyles/Button.xaml}

[0] "demoButton"  object {string}"demoButton"

{/DevExpress.Wpf.Core.v9.1;component/Themes/Azure/ControlStyles/Brushes.xaml}

              [0]   "NormalBlueGradient"    object {string}

              [1]   "PanelBackground" object {string}

              [2]   "hottrack-item"       object {string}

              [3]   "SelectedGreenLight"     object {string}

              [4]   "editor-button-border-gradient"     object {string}

              [5]   "radioButtonNormalGlare"     object {string}

              [6]   "ListBorder"    object {string}

              [7]   "RadioHottrackGradient"       object {string}

              [8]   "editor-button-pressed-glare" object {string}

              [9]   "RadioButtonHottrackCenter" object {string}

              [10] "RadioHottrackGlare"     object {string}

              [11] "editor-textedit-border-gradient"    object {string}

              [12] "editor-button-hottrack-glare"       object {string}

              [13] "CheckRadioFillNormal" object {string}

              [14] "DemoPanelElementsOpacity"       object {string}

              [15] "EditorButtonBorderGradient"       object {string}

              [16] "control-emboss"    object {string}

              [17] "sort-arrow-gradient"     object {string}

              [18] "EditorButtonPressedGradient"      object {string}

              [19] "editor-button-normal-gradient"     object {string}

              [20] "EditorButtonPressedGlare"   object {string}

              [21] "editor-button-pressed-gradient"    object {string}

              [22] "radioButtonNormalGradient" object {string}

              [23] "ButtonNormalGlare"     object {string}

              [24] "editor-textedit-bg-gradient"   object {string}

              [25] "PanelTopGradient" object {string}

              [26] "CheckRadioStrokeNormal"   object {string}

              [27] "RadioCenter" object {string}

              [28] "ButtonNormalGradient" object {string}

              [29] "selected-item"       object {string}

              [30] "SelectedGlareGradient" object {string}

              [31] "NormalGlareGradient"   object {string}

              [32] "PanelBottomGradient"   object {string}

              [33] "editor-button-hottrack-gradient"   object {string}

              [34] "PanelBorder"  object {string}

              [35] "PanelCenterGradient"    object {string}

              [36] "PanelShow"   object {string}

              [37] "radiobutton-normal-center"   object {string}

              [38] "GroupBoxBorderBrush"       object {string}

              [39] "OpacityMaskGradient"  object {string}

              [40] "editor-button-normal-glare"  object {string}

              [41] "RadioPoint"   object {string}

{/DevExpress.Wpf.Core.v9.1;component/Themes/Azure/ControlStyles/CheckBox.xaml}

              [0]   "EmptyCheckBoxFocusVisual"      object {string}

              [1]   {Name = "CheckBox" FullName = "System.Windows.Controls.CheckBox"}     object {System.RuntimeType}

{/DevExpress.Wpf.Core.v9.1;component/Themes/Azure/ControlStyles/CheckBoxList.xaml}

              [0]   "CheckBoxList"      object {string}

{/DevExpress.Wpf.Core.v9.1;component/Themes/Azure/ControlStyles/ListBox.xaml}

              [0]   "DemoListBox"      object {string}

              [1]   "demoListBoxItemStyle" object {string}

              [2]   "DemoContainerListBox"       object {string}

              [3]   "demoListBoxItemTemplate"  object {string}

              [4]   "DemoScrollViewerControlTemplate"    object {string}

{/DevExpress.Wpf.Core.v9.1;component/Themes/Azure/ControlStyles/CheckRadioFocused.xaml}

              [0]   "CheckRadioFocusVisual"      object {string}

{/DevExpress.Wpf.Core.v9.1;component/Themes/Azure/ControlStyles/ComboBox.xaml}

+            [0]   {Name = "ComboBox" FullName = "System.Windows.Controls.ComboBox"}   object {System.RuntimeType}

+            [1]   {Name = "ComboBoxItem" FullName = "System.Windows.Controls.ComboBoxItem"}    object {System.RuntimeType}

              [2]   "ComboBoxEditableTemplate"       object {string}

              [3]   "ComboBoxFocusVisual"       object {string}

              [4]   "ComboBoxTransparentButtonStyle"     object {string}

{/DevExpress.Wpf.Core.v9.1;component/Themes/Azure/ControlStyles/ExpanderButton.xaml}

              [0]   "AzureExpanderDownHeaderStyle"       object {string}

{/DevExpress.Wpf.Core.v9.1;component/Themes/Azure/ControlStyles/ExpanderPanel.xaml}

              [0]   "expanderPanel"     object {string}

{/DevExpress.Wpf.Core.v9.1;component/Themes/Azure/ControlStyles/GroupBox.xaml}

+            [0]   {Name = "GroupBox" FullName = "System.Windows.Controls.GroupBox"}     object {System.RuntimeType}

              [1]   "elementMargin"     object {string}

              [2]   "controlMargin"      object {string}

              [3]   "groupMargin"       object {string}

{/DevExpress.Wpf.Core.v9.1;component/Themes/Azure/ControlStyles/Label.xaml}

+            [0]   {Name = "Label" FullName = "System.Windows.Controls.Label"}     object {System.RuntimeType}

{/DevExpress.Wpf.Core.v9.1;component/Themes/Azure/ControlStyles/Panel.xaml}

              [0]   "DemoPanelTemplate"    object {string}

{/DevExpress.Wpf.Core.v9.1;component/Themes/Azure/ControlStyles/PopupPanel.xaml}

              [0]   "DemoPopupPanelStyle" object {string}

{/DevExpress.Wpf.Core.v9.1;component/Themes/Azure/ControlStyles/RadioButton.xaml}

+            [0]   {Name = "RadioButton" FullName = "System.Windows.Controls.RadioButton"}       object {System.RuntimeType}

{/DevExpress.Wpf.Core.v9.1;component/Themes/Azure/ControlStyles/RadioButtonList.xaml}

              [0]   "RadioButtonList"   object {string}

{/DevExpress.Wpf.Core.v9.1;component/Themes/Azure/ControlStyles/ScrollBar.xaml}

+            [0]   {ScrollButtonLeftStyle} object {DevExpress.Wpf.Utils.Themes.ScrollBarThemeKeyExtension}

+            [1]   {ScrollButtonUpStyle}   object {DevExpress.Wpf.Utils.Themes.ScrollBarThemeKeyExtension}

+            [2]   {ScrollButtonDownStyle}     object {DevExpress.Wpf.Utils.Themes.ScrollBarThemeKeyExtension}

+            [3]   {ScrollBarHorzStyle}     object {DevExpress.Wpf.Utils.Themes.ScrollBarThemeKeyExtension}

+            [4]   {ScrollBarVertStyle}      object {DevExpress.Wpf.Utils.Themes.ScrollBarThemeKeyExtension}

+            [5]   {ScrollButtonRightStyle}       object {DevExpress.Wpf.Utils.Themes.ScrollBarThemeKeyExtension}

+            [6]   {ScrollThumbHorzStyle}      object {DevExpress.Wpf.Utils.Themes.ScrollBarThemeKeyExtension}

+            [7]   {ScrollThumbVertStyle} object {DevExpress.Wpf.Utils.Themes.ScrollBarThemeKeyExtension}

+            [8]   {PageButtonStyle}  object {DevExpress.Wpf.Utils.Themes.ScrollBarThemeKeyExtension}

              [9]   "DemoVerticalScrollBarMargin"     object {string}

{/DevExpress.Wpf.Core.v9.1;component/Themes/Azure/ControlStyles/Slider.xaml}

              [0]   "VerticalSliderThumbTopAccentHover" object {string}

              [1]   "VerticalSliderThumbShadeGradient"     object {string}

              [2]   "HorizontalSliderTrackNormalBorder"   object {string}

              [3]   "VerticalSliderThumbBottomAccentHover"   object {string}

              [4]   "VerticalSliderThumbTopAccentPressed"      object {string}

              [5]   "VerticalSliderThumbTopAccent"   object {string}

              [6]   "SliderPointedThumbOuterBorderGeometry"       object {string}

              [7]   "VerticalSliderThumbShadeGradientInverted"       object {string}

              [8]   "HorizontalSliderThumbBorderInverted"       object {string}

              [9]   "HorizontalSliderTrackNormalBackground"  object {string}

              [10] "HorizontalSliderThumbBorder"     object {string}

              [11] "DemoSlider"  object {string}

              [12] "VerticalSliderThumbStyle"    object {string}

              [13] "HorizontalSliderThumbBottomAccentHoverInverted"  object {string}

              [14] "VerticalSliderThumbBottomAccentHoverInverted"      object {string}

              [15] "VerticalSliderThumbBottomAccentInverted"       object {string}

              [16] "VerticalSliderRightThumbStyle"    object {string}

              [17] "VerticalSliderThumbTopAccentInverted"     object {string}

              [18] "HorizontalSliderThumbTopAccentInverted" object {string}

              [19] "HorizontalSliderThumbShadeGradientInverted"   object {string}

              [20] "HorizontalSliderThumbTopAccentPressedInverted"    object {string}

              [21] "VerticalSliderThumbTopAccentPressedInverted" object {string}

              [22] "ZoomSliderWithTextBox"     object {string}

              [23] "HorizontalSliderThumbTopAccentHover"    object {string}

              [24] "SliderLeftButton"   object {string}

              [25] "SliderThumbBackgroundInverted"       object {string}

              [26] "VerticalSliderTrackNormalBackground"      object {string}

              [27] "HorizontalSliderDownThumbStyle"     object {string}

              [28] "SliderTextAlignment"    object {string}

              [29] "VerticalSliderThumbBottomAccentPressed" object {string}

              [30] "VerticalSliderThumbBottomAccent"     object {string}

              [31] "VerticalSliderThumbBorderInverted"    object {string}

              [32] "HorizontalSliderThumbTopAccentHoverInverted"      object {string}

              [33] "HorizontalSliderThumbShadeGradient" object {string}

              [34] "ZoomSlider"  object {string}

              [35] "HorizontalSliderThumbBottomAccentPressed"    object {string}

              [36] "VerticalSliderThumbTopAccentHoverInverted"   object {string}

              [37] "SliderThumbTopAccentGeometry"      object {string}

              [38] "VerticalSliderThumbBorder"  object {string}

              [39] "VerticalSliderLeftThumbStyle"     object {string}

              [40] "HorizontalSliderThumbStyle"       object {string}

              [41] "SliderThumbBackground"    object {string}

              [42] "SliderThumbOuterBorderGeometry"    object {string}

              [43] "HorizontalSliderThumbBottomAccentHover"      object {string}

              [44] "SliderThumbBottomAccentGeometry" object {string}

              [45] "HorizontalSliderThumbBottomAccentInverted"   object {string}

              [46] "SliderPointedThumbBottomAccentGeometry"     object {string}

              [47] "SliderRepeatButtonStyle"      object {string}

              [48] "HorizontalSliderThumbTopAccentPressed"  object {string}

              [49] "HorizontalSliderThumbTopAccent"      object {string}

              [50] "HorizontalSliderUpThumbStyle"   object {string}

              [51] "VerticalSliderTrackNormalBorder"       object {string}

              [52] "SliderPointedThumbTopAccentGeometry"  object {string}

              [53] "HorizontalSliderThumbBottomAccent" object {string}

{/DevExpress.Wpf.Core.v9.1;component/Themes/Azure/ControlStyles/TabControl.xaml}

              [0]   "TabControlPaneBottomNormalBackground"       object {string}

              [1]   "demoTabControl"  object {string}

              [2]   "TabControlPaneRightNormalBackground"   object {string}

              [3]   "TabControlNormalBorderBrush"   object {string}

              [4]   "TabControlPaneTopNormalBackground"     object {string}

              [5]   "TabControlPaneLeftNormalBackground"     object {string}

{/DevExpress.Wpf.Core.v9.1;component/Themes/Azure/ControlStyles/TabItem.xaml}

              [0]   "TabItemSelectedBackground"      object {string}

              [1]   "TabItemDisabledBackground"      object {string}

              [2]   "TabItemHotBorderBackround"     object {string}

              [3]   "TabItemNormalBackground"       object {string}

              [4]   "TabItemSelectedBorderBrush"     object {string}

              [5]   "TabItemFocusVisual"    object {string}

              [6]   "demoTabItem"      object {string}

              [7]   "TabItemSelectedBorderBackround"     object {string}

              [8]   "TabItemDisabledBorderBrush"     object {string}

              [9]   "TabItemHotBackground"      object {string}

              [10] "TabItemHotBorderBrush"     object {string}

{/DevExpress.Wpf.Core.v9.1;component/Themes/Azure/ControlStyles/TextBox.xaml}

              [0]   "demoTextBox"      object {string}

{/DevExpress.Wpf.Core.v9.1;component/Themes/Azure/ControlStyles/ToolTip.xaml}

+            [0]   {Name = "ToolTip" FullName = "System.Windows.Controls.ToolTip"}     object {System.RuntimeType}

              [1]   "DemoToolTipPanel"      object {string}

{/DevExpress.Wpf.Core.v9.1;component/Themes/Azure/ControlStyles/XamlTextBox.xaml}

              [0]   "XamlTextBoxScrollViewerControlTemplate"       object {string}

              [1]   "contextMenuStyle"       object {string}

              [2]   "xamlTextBox"       object {string}

              [3]   "contextMenuItemStyle" object {string}

              [4]   "ScrollingCornerStyle"   object {string}

{/DevExpress.Wpf.Core.v9.1;component/Themes/Azure/ControlStyles/SimpleImage.xaml}

              [0]   "demoSimplePanel" object {string}

 

posted @ 2009-04-29 21:18  OYJJ  阅读(1370)  评论(1编辑  收藏  举报