Skip to main content
Home Forums Silverlight Programming Silverlight Controls and Silverlight Toolkit Viewbox as a root control
1 replies. Latest Post by Maud on July 30, 2009.
(0)
molenator
Member
0 points
4 Posts
07-26-2009 12:00 AM |
I tried using the Viewbox as the first child of my UserControl but it does not work. Easy workaround, put it inside a Grid and it works fine.
Any reason the Viewbox control can't be the root control of a UserControl?
Maud
Contributor
3154 points
427 Posts
07-30-2009 5:44 AM |
Hi kdawg,
I can set Viewbox as root element of UserControl, working correctly.
<controlsToolkit:Viewbox Stretch="UniformToFill"> <Button Content="click1"/> </controlsToolkit:Viewbox>