How To Change the Alternating Row Color on PLEX C# (.Net) Client Grids

How To Change the Alternating Row Color on PLEX C# (.Net) Client Grids

There is an alternative to change the alternating row color that displays on the C# client grids. By default there is a pattern selected based on the Theme on the Windows System that sets the original color point to the System color as Dynamic mode. 
For example, an alternative light blue/white:


To change this, the XAML file associated with the EXE that launches the application needs to be modified. For this example there is an EXE called HHLAUNCHER.EXE therefore the XAML file is:
HHLauncher.App.xaml
And it is located in the GEN\SRC folder:


Locate such file using Windows Explorer or Visual Studio as CA PLEX Gen and Build window, View Source doesn't list it.
Open such file with a text editor and locate the following entry:
<SolidColorBrush x:Key="ObGridAlternateBAckground" Color="{DynamicResource {x:Static SystemColors.GradientActiveCaptionColorKey}}"/>


Change the Color property to the expected color for the alternating pattern, for example, change to:
<SolidColorBrush x:Key="ObGridAlternateBAckground" Color="Green"/>
Then re-build the EXE. You don’t need to recreate the function itself, just rebuild the EXE
Test by re-launching the application and loading any grid. Observe the new alternating color:

 

To choose a color you can make use of a Hex Color Picker such as the following for a ‘light green’:
http://www.w3schools.com/colors/colors_picker.asp
Hex Code: #00ff99
Therefore updated the XAML file to:
<SolidColorBrush x:Key="ObGridAlternateBAckground" Color="#00ff99"/>
And rebuilt the EXE (create EXE):

 

Test the change:



    • Related Articles

    • How To Change The Color of Selected Row On PLEX C# (.Net) Client Grids

      Please look at the attached file(s)
    • How to Change the Save Options on iSeries (AS400) Login screen for a C# PLEX Client

      For a C# PLEX Client that uses the iSeries (AS400) as the backend it is possible to control the different SAVE options that are presented in the iSeries’ Sign On to IBM I dialog. Follow the instructions below:  1. Open the Config file associated with ...
    • Client/Server Guidelines

      This document is intended to help CM First customers appropriately size CM evolveIT Client and Server hardware and windows configuration for a CM evolveIT installation. A typical CM evolveIT installation would include a Windows server and a CM ...
    • MatchPoint Client Installation Process

      Installation Process 1 - Create the Next Folders: a. C:\MatchPoint\Client b. C:\MatchPoint\Docs 2 - Double Click MatchPoint Installer **  3- Select Install Client Components click forward 4 - Accept the License 5 - Select the Folder ...
    • Installing the CA Plex Dispatcher

      See the following steps for installing the CA Plex IBM i components / dispatcher. See the CA Plex Getting started PDF. Replace 710 with your version of CA Plex   Chapter 6 details what is supplied on the CD for your System I and how to install them. ...