Posts Tagged ‘WPF’
How to create a ControlTemplate for a WPF TextBox
Posted by richard in C#, Software Development, WPF on February 13th, 2010
This is a short post, but has one specific piece of information I want to keep.
Q: If you want to create a ControlTemplate to provide a custom style for a TextBox, how do you specify where the text goes when it’s used in WPF?
A: The answer was hidden in the depths of the MSDN Documentation. You have to include a <ScrollViewer> within your ControlTemplate with an x:Name value of “PART_ContentHost”.
Here’s a noddy example:
Mozilla 1 – Microsoft 1
Posted by richard in General Rantings, Microsoft, Windows on October 19th, 2009
After silently installing their own add-ons to Firefox earlier this year as part of a Microsoft Service Pack, it appears that last last week Mozilla finally got around to blocking them on security grounds.
While Microsoft are happy modifying and ‘updating’ other people’s software in one of their updates, they then seem a bit lapse in keeping on top of the ol’ bug fixeroo, one of the primary reasons people flee from IE in the first place.
Prior to Mozilla blocking them, it turns out that this particularly nasty ‘Critical Remote Code Execution’ vulnerability applied not only to IE, but to Firefox installs containing these add-ons. So thanks guys, I’m glad someone’s watching our backs! =)
(Now, who knows what this will do to my WPF XBAP testing? After all that I might have to dust down IE!)



















