×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    Oct 2013
    Posts
    3

    GetProperty(Application.Current.Host.Content, "ScaleFactor");

    Hi,

    with the line

    GetProperty(Application.Current.Host.Content, "ScaleFactor");

    I get 3 differnet values till now (100,150,160) depending on the screen resolution of my device. Does anyone know already what the value will be with the coming full HD devices (1980*1080)?

    Thanks for your efforts

  2. #2
    Nokia Developer Champion
    Join Date
    Feb 2013
    Location
    Dublin, Ireland
    Posts
    544

    Re: GetProperty(Application.Current.Host.Content, "ScaleFactor");

    We can only guess - none of that information has been made public but is expected to be when Nokia announces a new Windows Phone with a screen resolution of 1080p (with the GDR3 update), there's a Nokia event planned for Oct 22nd.

  3. #3
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,684

    Re: GetProperty(Application.Current.Host.Content, "ScaleFactor");

    It seems to be simple math to me: 480 is the base, 720=480*1.5, 768=480*1.6.
    For 1080 it may happen to be 225 perhaps (1080=480*2.25). Remember this is just a calculation, rumors are not commented on this site.

  4. #4
    Nokia Developer Moderator
    Join Date
    Feb 2011
    Location
    Portugal
    Posts
    933

    Re: GetProperty(Application.Current.Host.Content, "ScaleFactor");

    Quote Originally Posted by theothernt View Post
    We can only guess - none of that information has been made public but is expected to be when Nokia announces a new Windows Phone with a screen resolution of 1080p (with the GDR3 update), there's a Nokia event planned for Oct 22nd.
    Yeap... personally I would not expect the to have the confirmation before the SDK is out.

    In any case I tried to do some math and came to this conclusion.

    If 480 = 100
    then 720 = 720 * 100 / 480 = 150
    then 768 = 768 * 100 / 480 = 160
    then 1080 = 1080 * 100 / 480 = 225

    if you try to to the same with tha largest side you get:
    If 800 = 100
    then 1280 = 1280 * 100 / 800 = 160
    then 1080 = 1080 * 100 / 800 = 247.5

    My guess is that it will be 220 - 230. But this is just a guess.

    Edit: Just saw wizard post. He got to the same number as I did - 225. take it with a grain of salt

  5. #5
    Registered User
    Join Date
    Oct 2013
    Posts
    3

    Re: GetProperty(Application.Current.Host.Content, "ScaleFactor");

    Thanks for answers,
    so I have to wait to get a confirmed value

  6. #6
    Nokia Developer Moderator
    Join Date
    Feb 2011
    Location
    Portugal
    Posts
    933

    Re: GetProperty(Application.Current.Host.Content, "ScaleFactor");

    Quote Originally Posted by MaHanno11 View Post
    Thanks for answers,
    so I have to wait to get a confirmed value
    We have now the confirmation here:

    http://blogs.windows.com/windows_pho...evelopers.aspx

    It will not be 225 but will remain 150 as for 720pix.

    From the post:

    Execution on a 1080p device

    For the most part, you won’t need to know that your app is running on a 1080p phone - the existing APIs on a 1080p phone are quirked to behave as they would on a 720p phone and your app will work the same as it does today without any changes. For example:

    - Querying for a 1080p phone’s resolution will report that the app is running on a 720p phone (ScaleFactor of 150, rather than 225)

    - Apps that would letterbox on a 720p device will also letterbox on a 1080p phone

    - Apps that have been opted out by the developer from a 720p phone in the Store also will be opted out from a 1080p phone

    Because of this, most devs won’t need to do anything to target or test apps on a 1080p phone – the OS will take care of rendering for the resolution, the same as it does today. If you want to target 1080p phones with higher-DPI assets (e.g., images, splash screen, lock screen, live tiles, etc.), we suggest that you simply use high-DPI assets in your XAP package and let the OS properly downscale them as needed.

    For those who want the app to behave differently on a 1080p phone, like rendering 1080p video streams or applying an alternative layout for larger screen devices, we have introduced a few new property values in the DeviceExtendedProperties class in the update. I’ll go into this in greater detail in a few weeks when we have a 1080p emulator for you to use.

  7. #7
    Registered User
    Join Date
    Oct 2013
    Posts
    3

    Re: GetProperty(Application.Current.Host.Content, "ScaleFactor");

    Thanks for info
    Greetings
    Hanno

Similar Threads

  1. System.getProperty("microedition.platform") returns null
    By mikael_rinnetmaki in forum Mobile Java General
    Replies: 9
    Last Post: 2012-02-13, 20:09
  2. 6126: System.getProperty("internal.se.url") returns NULL
    By dpomeroy in forum Near Field Communication
    Replies: 8
    Last Post: 2009-07-02, 14:42
  3. [moved] Nokia channels "Go To Market" "Selling mobile applications and content"
    By ValentinK in forum General Development Questions
    Replies: 5
    Last Post: 2009-02-04, 15:10
  4. System.getProperty("video.snapshot.encodings") for Nokia
    By vpaoli in forum Mobile Java Media (Graphics & Sounds)
    Replies: 1
    Last Post: 2008-12-26, 16:11
  5. System.getProperty("bluetooth.api.version") is not saying the truth???
    By orsteglasy in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2007-12-02, 18:22

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×