WPF Browser App Size/Dimensions

A

Adam Clauss

We are writing a WPF browser application. We are attempting to retrieve
the size of our control/page. On my machine, this works fine. On one
of my coworkers machines, these calls return NaN. It is not just those
two properties either. Running in the debugger, it looks like NO
properties that have to do with size in any way come back correctly on
his machine. In both cases, the application is being accessed via a URL
("publish" from Visual Studio 2008) - http://***

We started running down differences between our machines. I am running
IE8, he was running IE7. So he upgraded to IE8, no luck. Any ideas on
what might cause something like this??

Thanks,
Adam
 
H

Hillbilly

I need to learn how to do this too I think. Are you saying you are building
what appears to be your own desktop by using a browser with no chrome to
completely fill the entire screen of the display used by various device
types? This is what I need to do myself. Can you give me an early Christmas
present and send me any links to stuff you might have found already?
Generally speaking this type of detection would be done using JavaScript
that can be found all over the web in script libraries.
 
H

Hillbilly

Sorry I forgot to mention that NaN can be reported when some variable or
return property that is null is not being logically determined before using
with some function. Refactor your logical branching if statements if needed
to test for null.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top