New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InvalidOperationException in DeviceUtils.DiagonalSize #1042

Closed
schuettecarsten opened this Issue Jun 9, 2016 · 0 comments

Comments

Projects
None yet
2 participants
@schuettecarsten
Collaborator

schuettecarsten commented Jun 9, 2016

Sometimes whe get an exception on a mobile device when DeviceUtils.IsPhone() is called in a constructor of an InteractionDialog.

Code:

public CheckPinDialog()
{
    this.InitializeComponent();
    if (DeviceUtils.Current().IsPhone())
    {
        this.MaxHeight = 310;
    }
}

Exception/Callstack:

System.InvalidOperationException: InvalidOperation_NoValue. For more information, visit http://go.microsoft.com/fwlink/?LinkId=623485
at SharedLibrary!<BaseAddress>+0x56539b
   at Template10.Utils.DeviceUtils.DiagonalSize(Utils.DeviceUtils.Units units)
   at Maxdome.Uap10.Dialogs.CheckPinDialog..ctor()
   at Maxdome.Uap10.Dialogs.CheckPinDialog..ctor(Uap10.Services.VideoOrderProcess.VideoOrderProcessResult result)
   at Maxdome.Uap10!<BaseAddress>+0xb8f9f1

Device details:
Manufacturer: MicrosoftMDG
Model: RM-1085_12547
Windows: 10.0.10586.318

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment