Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > Avalon

Vista - compound pens in WPF

 
 
Old 03-12-2007   #1 (permalink)
avesty@gmail.com


 
 

compound pens in WPF

Hi,

In GDI+ it was possible to create compound pens using
SetCompoundArray. Is this possible in WPF? I've only just started
poking around, but it looks like the idea of pens/brushes is gone and
has been replaced by just brushes. Is that correct? If it is possible,
would anyone be able to tell me where in the relevant docs I could
look to find some info?

Cheers,

Ad.


My System SpecsSystem Spec
Old 03-23-2007   #2 (permalink)
WPCoder


 
 

Re: compound pens in WPF

Pens really are just brushes with a thickness. One alternative idea,
depending on what you're trying to accomplish would be to use the OnRender
method of UIElement and custom draw the lines needed to make the
CompoundArray pen. Depending on the complexity of the shape however, I
realize that could be extremely complicated. Unfortunately, the Pen class is
sealed so you can't override its behavior.

--Aaron
http://www.wiredprairie.us


<avesty@gmail.com> wrote in message
news:1173721029.941059.311430@n33g2000cwc.googlegroups.com...
> Hi,
>
> In GDI+ it was possible to create compound pens using
> SetCompoundArray. Is this possible in WPF? I've only just started
> poking around, but it looks like the idea of pens/brushes is gone and
> has been replaced by just brushes. Is that correct? If it is possible,
> would anyone be able to tell me where in the relevant docs I could
> look to find some info?
>
> Cheers,
>
> Ad.
>


My System SpecsSystem Spec
 

Thread Tools


Similar Threads
Thread Forum
IC Diamond 7 The Best Compound Overclocking & Cooling
Thermoelectric Compound Breakthrough Could Alter the Materials of the Future Vista News
Keyboard/Mouse compound device won't install Vista hardware & devices
CPU Thermal Compound and Thermal Grease. Which is better? Vista hardware & devices


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46