Reactions to story from Lester's WPF blog
Clipping of child elements
http://blogs.msdn.com/ llobo/ archive/ 2008/ 04/ 07/ clipping-of-child-elements.aspx
On the forums I saw this interesting problem where there was a need to round the corners of a stackpanel inside a border with cornerradius set... The top is what you get and the bottom image is what you want. The simplest thing to do here is to set the padding on the border so that the stackpanel doesnt bleed around the corners. But when that doesnt meet your requirements you will need to set the clip property on the child in the OnRender function so that you get the correct clipping. The code for the above is attached.(thanks to Ifeanyi) Share this post
More rising blog posts
-
Entertainment »
If You Are Easily Offended -
Business »
Dombrowski: Tigers not sellers at trade deadline -
Lifestyle »
California utilities lead in solar energy, report says -
Politics »
McCain, Armstrong Live Strong -
Sports »
BASEBALL: Stuck In Traffic -
Technology »
"Handheld recording studio" mixes with Linux
More rising news stories
-
Entertainment »
Bachelor Matt Grant & Fiancée Shayne Lamas Split -
Business »
Japan's June core inflation jumps to 1.9% on-year -
Lifestyle »
Same-sex marriage foes warn of kindergarten lessons on gay matrimony -
Politics »
Obama uses Berlin symbolism to rally allies -
Sports »
Good as gold: Teammates back up LeBron's medal guarantee -
Technology »
Griping Online? Comcast Hears You and Talks Back
Recent posts from Lester's WPF blog
-
Composite Application Guidance for WPF 2008
10 days ago -
WPF WebBrowser (.NET 3.5 SP1)
42 days ago -
New features: ScrollViewer.IsDeferredScrollingEnabled; AlternationCount;IEditableCollectionView
49 days ago