Create full screen XAML element

windows-8, winrt-xaml, xaml

Solution

Don't set the width and height of the TextBox in the xaml. Instead, set HorizontalAlignment and VerticalAlignment to Stretch.

Problem

Just starting to play around with the Windows 8 SDK. Trying to create a TextBox that fills up the whole screen. Unfortunately at different resolutions the TextBox does not fill up the screen. How do I bind the width and height of the TextBox to the width and height of the screen? Thanks!

Original source