Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

How to: Set the Width of a Window from a Page

This example illustrates how to set the width of the window from a Page.

A Page can set the width of its host window by setting WindowWidth. This property allows the Page to not have explicit knowledge of the type of window that hosts it.

NoteNote

To set the width of a window using WindowWidth, a Page must be the child of a window.


<Page
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="SetWindowWidthPage"
    WindowWidth="500"
    >
</Page>


Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.