WPF - Combine brushes
-
Hi there, i wonder if there is a workaround to combine several brushes? i want to set the background of a small custom control and i need two different gradientbrushes (linear and radial). overlaying e.g. two canvas and setting their opacity to smthg. like 0.5 is no option for me. i´d be glad for any idea ;)
-
Hi there, i wonder if there is a workaround to combine several brushes? i want to set the background of a small custom control and i need two different gradientbrushes (linear and radial). overlaying e.g. two canvas and setting their opacity to smthg. like 0.5 is no option for me. i´d be glad for any idea ;)
Why not overlay two Canvas panels, each using a different brush, and then just use that as the Visual for a VisualBrush?
:josh: My WPF Blog[^] All of life is just a big rambling blog post.
-
Why not overlay two Canvas panels, each using a different brush, and then just use that as the Visual for a VisualBrush?
:josh: My WPF Blog[^] All of life is just a big rambling blog post.
i tried that and it worked great! thanks, you probably saved me a lot of time :)
-
i tried that and it worked great! thanks, you probably saved me a lot of time :)
Joachim Kerschbaumer wrote:
thanks, you probably saved me a lot of time
I charge a commission of five seconds for every minute I saved you. :)
:josh: My WPF Blog[^] All of life is just a big rambling blog post.
-
Joachim Kerschbaumer wrote:
thanks, you probably saved me a lot of time
I charge a commission of five seconds for every minute I saved you. :)
:josh: My WPF Blog[^] All of life is just a big rambling blog post.
cha, ching! :cool:
Cheers, Karl
My Blog | Mole's Home Page | How To Create Screen Capture Videos For Your ArticlesJust a grain of sand on the worlds beaches.