T
Tom P.
This is a design question: I have a customized ListView with three
columns Name, Size, and Date.
I am painting each of these with a LinearGradientBrush so each of them
has a Color1, Color2, and Direction.
There is also a different color for Files and Directories and those
colors can change when the mouse passes over and/or when the item is
selected by the user.
This leads to an inordinate amount of Properties:
PlainDirNameColor1, PlainDirNameColor2, PlainDirNameDirection,
MouseOverDirNameColor1, MouseOverDirNameColor2,
MouseOverDirNameDirection,
SelectedDirNameColor1, SelectedDirNameColor2,
SelectedDirNameDirection,
SelectedMouseOverDirNameColor1, SelectedMouseOverDirNameColor2,
SelectedMouseOverDirNameDirection... etc.
And that's just the Directory Name properties!
3*3*2*4 = 72 properties just to pain the darn thing.
I'm looking for design suggestions for how to deal with this abundance
of properties.
What would you suggest?
Thanks for the help,
Tom P.
columns Name, Size, and Date.
I am painting each of these with a LinearGradientBrush so each of them
has a Color1, Color2, and Direction.
There is also a different color for Files and Directories and those
colors can change when the mouse passes over and/or when the item is
selected by the user.
This leads to an inordinate amount of Properties:
PlainDirNameColor1, PlainDirNameColor2, PlainDirNameDirection,
MouseOverDirNameColor1, MouseOverDirNameColor2,
MouseOverDirNameDirection,
SelectedDirNameColor1, SelectedDirNameColor2,
SelectedDirNameDirection,
SelectedMouseOverDirNameColor1, SelectedMouseOverDirNameColor2,
SelectedMouseOverDirNameDirection... etc.
And that's just the Directory Name properties!
3*3*2*4 = 72 properties just to pain the darn thing.
I'm looking for design suggestions for how to deal with this abundance
of properties.
What would you suggest?
Thanks for the help,
Tom P.