diff options
author | Carlos Alberto Cortez <calberto.cortez@gmail.com> | 2008-10-17 09:50:10 +0400 |
---|---|---|
committer | Carlos Alberto Cortez <calberto.cortez@gmail.com> | 2008-10-17 09:50:10 +0400 |
commit | e0500805ea61736190e7afb5e58dfbf9b0e3fbc8 (patch) | |
tree | 2362e5d55828ec0d1d89220da8902d86e050e59c /mcs/class/Managed.Windows.Forms/System.Windows.Forms/ColumnHeader.cs | |
parent | 7a559618d0f5598605b0b1692cf9a20e829f519f (diff) |
2008-10-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ColumnHeader.cs: Invalidate ListView.header_control when setting
ImageIndex/ImageKey.
* ThemeWin32Classic.cs: When drawing the column header, draw a image
for the column if available, and make the required adjustments to the
text location.
Fixes #435105.
svn path=/trunk/mcs/; revision=116165
Diffstat (limited to 'mcs/class/Managed.Windows.Forms/System.Windows.Forms/ColumnHeader.cs')
-rw-r--r-- | mcs/class/Managed.Windows.Forms/System.Windows.Forms/ColumnHeader.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ColumnHeader.cs b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ColumnHeader.cs index 2ff57ed5aa0..2edaa99d010 100644 --- a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ColumnHeader.cs +++ b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ColumnHeader.cs @@ -212,6 +212,9 @@ namespace System.Windows.Forms image_index = value; image_key = String.Empty; + + if (owner != null) + owner.header_control.Invalidate (); } } @@ -228,6 +231,9 @@ namespace System.Windows.Forms set { image_key = value == null ? String.Empty : value; image_index = -1; + + if (owner != null) + owner.header_control.Invalidate (); } } |