Changeset 1500 for trunk/eraser6
- Timestamp:
- 1/11/2010 6:56:45 AM (3 years ago)
- File:
-
- 1 edited
-
trunk/eraser6/Eraser.Util/UxThemeApi.cs (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/eraser6/Eraser.Util/UxThemeApi.cs
r1431 r1500 44 44 control.Font.Size, control.Font.Style); 45 45 46 if (control is ListView) 46 if (control is ButtonBase) 47 UpdateControlTheme((ButtonBase)control); 48 else if (control is ListView) 47 49 UpdateControlTheme((ListView)control); 48 50 else if (control is ToolStrip) … … 54 56 foreach (Control child in control.Controls) 55 57 UpdateControlTheme(child); 58 } 59 60 /// <summary> 61 /// Updates the control's theme to fit in with the latest Windows visuals. 62 /// </summary> 63 /// <param name="button">The ButtonBase control to set the theme on.</param> 64 public static void UpdateControlTheme(ButtonBase button) 65 { 66 if (button.FlatStyle == FlatStyle.Standard) 67 button.FlatStyle = FlatStyle.System; 56 68 } 57 69
Note: See TracChangeset
for help on using the changeset viewer.
