fit silverlight webpart completely inside Visual webpart RRS feed

  • Question

  • hi,

    I am using silver light tree view control & this silverlight xap file is deployed in share point visual webpart.
    but when I change visual web part's height & width by doing edit web part , only visual web parts height & width is changed & silverlight control's height & width remains same.

    can we avoid this through code?

    thanks in advance..


    Monday, November 7, 2011 1:20 PM


  • Hi shwetank,


    Thanks for your post.

    The Silverlight control’s height and width should be edited in the mainPage.xml file in the project.


    d:DesignHeight="300" d:DesignWidth="400" xmlns:dataInput="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data.Input


    don’t forget to clear the temperature file for IE browser after you change it.

    • Marked as answer by Shimin Huang Thursday, November 17, 2011 9:42 AM
    Wednesday, November 9, 2011 11:30 AM

All replies