Skip to main content

Microsoft Silverlight

Viewbox as a root controlRSS Feed

(0)

molenator
molenator

Member

Member

0 points

4 Posts

Viewbox as a root control

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?

Cheers,

kdawg

Maud
Maud

Contributor

Contributor

3154 points

427 Posts

Re: Viewbox as a root control

Hi kdawg,

I can set Viewbox as root element of UserControl, working correctly. 

    <controlsToolkit:Viewbox Stretch="UniformToFill">
        <Button Content="click1"/>
    </controlsToolkit:Viewbox>
 Could your share your xaml?

Maud
  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities