This project has moved. For the latest updates, please go here.


BorderBrush, BorderThickness are ignored on Viewbox.


Viewbox inherits from Decorator, which doesn't exist in Silverlight and because Silverlight doesn't have [Add|Remove][Logical|Visual]Child, we can't inherit from FrameworkElement. The only way to render Viewbox.Child is to have Viewbox inherit from Control, which has a Template, where we can use a ContentPresenter to render Viewbox.Child. By inheriting from Control, Viewbox unfortunately inherits all Control properties/events that don't make sense to it. We compensate that by sealing Viewbox, disregard all irrelevant Control properites like BorderBrush and BorderThickness etc.
We do have to throw if user tries to set Template, since Viewbox depends on default template to work.
Closed Aug 11, 2012 at 12:00 AM by RohanTha
Bulk closing issues older than 2 years. Please reactivate if you still have this problem.


ningz wrote Nov 14, 2008 at 6:33 PM

this is by design/implementation because Silverlight doesn't have [Add|Remove][Logic|Visual]Child API. Please see for more details.

wrote Nov 14, 2008 at 6:33 PM

ningz wrote Nov 14, 2008 at 7:35 PM

** Closed by ningz 11/14/2008 11:33 AM

JustinJosefAngel wrote Nov 14, 2008 at 7:35 PM

re-open for voting.

wrote Mar 27, 2009 at 1:32 AM

wrote Sep 2, 2009 at 4:30 AM

wrote Aug 11, 2012 at 12:00 AM

wrote Feb 22, 2013 at 1:54 AM

wrote May 16, 2013 at 12:36 PM