none
how to fit hubsection to screen RRS feed

  • Question

  • Hi,

    I want to make hubsection fit the screen,...

    How can i do that
    <hub>
      <hubsection>
         <datatemplate>
           <image source="Assets/Mine.png" stretch="UniformTofill"/>
          </datatemplate>
      </hubsection>
    </hub>
    Please help me.
    Thanks
    Monday, August 4, 2014 12:06 PM

Answers

  • The section will fit its contents. It isn't directly related to the size of the screen and will scroll if necessary.

    If you want the image in the section to match the size of the screen you'll need to set the Height and Width explicitly. You can bind these to properties drawn from the CoreWindow.Bounds property (which is probably what you want rather than the screen, especially if you might share the same code with a Windows Store app).

    --Rob

    • Marked as answer by Ashiq Hassan Tuesday, August 5, 2014 7:57 AM
    Monday, August 4, 2014 11:48 PM