[U8.1][C#]Window Size Aspect Ratio RRS feed

  • Question

  • Hi,

    Suppose I have an application that is playing video that I know will be at a 16:9 aspect ratio. How do I force the application window to maintain that aspect ratio when being re-sized? I can make the calculations but the window size from Windows.UI.Core.WindowSizeChangedEventArgs is read only. 


    Wednesday, April 29, 2015 2:43 PM


  • You cannot force the size of the Window. The user is in control.

    If you need a specific aspect ratio you'll need to letterbox or stretch within the app.

    • Marked as answer by duffybr Wednesday, April 29, 2015 4:44 PM
    Wednesday, April 29, 2015 4:11 PM