Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
215
Theming the selected/higlighted item background
posted

I have set a listview set to the office 2007 theme and when an item is selected, it looks like this.

Can you let me know how I can update this old school look so a selection is like with your grid control 

 

tl;dr

How can I get the selected background colour to look the above shade of orange instead of the solid block of blue.

 

Thanks

 

Abz

Parents
No Data
Reply
  • 69832
    Suggested Answer
    Offline posted

    This is an approximation; there are quite a few Office2007 colors and I don't know exactly which ones the gid uses, but this is the basic approach:

    UltraListView.ViewSettingsDetails.FullRowSelect = true;
    UltraListView.ItemSettings.SelectedAppearance.BackColor =
        Office2007ColorTable.Colors.OutlookNavPaneHotGroupHeaderGradientLight;

    UltraListView.ItemSettings.SelectedAppearance.BackColor2 =
        Office2007ColorTable.Colors.OutlookNavPaneHotGroupHeaderGradientDark;

    UltraListView.ItemSettings.SelectedAppearance.BackGradientStyle = GradientStyle.GlassTop20;

    UltraListView.ItemSettings.SelectedAppearance.ForeColor =
        Office2007ColorTable.Colors.OutlookNavPaneBorder;

Children
No Data