locked
Migrate to Windows 8.1: Window.Current.SizeChanged not fired between 320px and 500px? RRS feed

  • Frage

  • Hi there,

    I try to migrate a Windows 8 Store App to run and support Windows 8.1 using Visual Studio 2012.
    (I do not want to retarget my app because I want one code base for Windows 8 AND Windows 8.1!)

    I want to use the SizeChanged-Event to react on the different sizes of my app (the visual states like "Snapped" are no more supported).

    Window.Current.SizeChanged += OnWindowSizeChanged;
    

    But this Event is not fired when the apps size is between 320px (Snapped) and 500 px!

    Seems that Windows 8 apps do not get the Size Events between Snapped and FullScreen-Mode.

    Do I have to add a minimal size on the package.appxmanifest?

    Thanks,

    Andi

    Montag, 18. November 2013 14:21

Antworten

  • Hi Andi,

    Yes, you'll need to maintain two branches for Windows 8 and Windows 8.1. Where it makes sense you can share code between them via linked files, Portable Class Libraries, etc.

    --Rob

    Montag, 18. November 2013 19:44
    Moderator

Alle Antworten

  • You need to upgrade the app to target Windows 8.1 to use the new Windows 8.1 features.

    Windows 8 apps don't support sizes which weren't available on Windows 8.

    --Rob

    Montag, 18. November 2013 15:10
    Moderator
  • Hi Rob,

    retargeting my app has the consequence to maintain two branches Windows 8 AND Windows 8.1. Why is MS going this way of incompatibility?
    New features must be implemented twice (if not mergable) and not all users will imediately switch to 8.1.
    Andi


    • Bearbeitet duck42 Montag, 18. November 2013 17:50
    Montag, 18. November 2013 17:49
  • Hi Andi,

    Yes, you'll need to maintain two branches for Windows 8 and Windows 8.1. Where it makes sense you can share code between them via linked files, Portable Class Libraries, etc.

    --Rob

    Montag, 18. November 2013 19:44
    Moderator
  • and about the way of incompatibility; what you expected? windows 8.1 features in windows 8? wouldnt give that some other problems?

    Microsoft Certified Solutions Developer - Windows Store Apps Using C#

    Montag, 18. November 2013 21:10