I would like to create a rectangular βflat 3Dβ look at one of my control patterns. In it, the simplest version means that there is a line at the bottom below that is darker than at the top, and possibly some change between the left and right lines.
A more complex version will allow me to provide on or more brushes so that gradients can be applied.
The default <Border> element in WPF allows you to specify a different thickness for each edge, but I cannot find a way to specify multiple brushes.
So, how can I produce the effect that I want as simple as possible?
EDIT was asked to publish an example of how I want to use this. Personally, I would be happy to have style or user control. A user control can be used this way:
<FourSidedBorder LeftSideBrush="#00f" RightSideBrush="#0f0" ... />
Or maybe even simpler:
<FourSidedBorder BorderBrush="#00f,#0f0,#f00,#fff" BorderThickness="1,2,3,4" ... />
These are just ideas. Any reasonable, concise solution is welcome.
Drew noakes
source share