I'm trying to emulate a high resolution screen for development purposes; however, from looking around, it looks like the VS emulator will only work with Store Apps / UWP. Is there a way to trick / configure VS into using the emulator for a WPF desktop application?
Alternatively, has anyone found any other, imaginative solution to this kind of issue?
My fallback is to set-up a Hyper-V VM for this, but this feels like overkill for what I need (I'm also not sure I'll be able to set this to the screen ratio that I need).
EDIT:
Having looked into Hyper-V, I can't see any way to configure the display to the desired (portrait) resolution of 2160x3840.
You don't want the emulators for this. You want the simulator.
The Windows Simulator creates an RDP session back to the current machine. It simulates the input and output to the session, but it does not emulate the actual code: that's still running on the same machine.
While VS only launches the simulator for you for UWP apps, once it's running you can run other apps such as your WPF app, Visual Studio, remote debugger hosts, etc.
You can also run the simulator explicitly. It should be installed somewhere like C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Simulator\15.0\Microsoft.Windows.Simulator.exe
The emulators are Hyper-V images of the target OS (e.g. Windows 10 Mobile) and won't run your WPF app.
If getting a 4k monitor is not an option you need to use something like this.
http://www.hdtvsupply.com/display-emulator.html
Related
The problem :- I have to test an APP in a landscape display (which is a digital standee) and is there any emulator which I can test with?
I think you are asking for simulator.
You can run the simulator directly. It should be installed somewhere like C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Simulator\14.0\Microsoft.Windows.Simulator.exe. The emulators are Hyper-V images of the target OS.
I am generally tasting my WPF application by changing the screen resolution. i.e Right click on desktop > Display settings > Advanced display settings > Resolution. From here you can change any resolution, and verify you application in different resolution.
Hope this helps.
This might be a dumb question but I've been developing for a while and I still can't figure this out. Sometimes when I download samples for WP7 applications it shades out the "run application". I can build it and it succeeds but I can't run it. Anyone know how I can run these samples?
The sample I'm looking at is the "Farseer Physics Engine 3.3.1 Samples XNA" at http://farseerphysics.codeplex.com/releases/view/64108.
The WP7 project hasn't been set as the default one. In the Solution Explorer, right-click on Samples XNA WP7 and click Set as Startup Project. You should then be able to deploy.
Edit - If you find that you can't deploy because you get:
The application could not be launched for debugging. Verify that the
application is installed on the target device.
go to Properties...Configuration Settings and make sure Build and Deploy are both checked
In the device dropdown is Windows Phone Emulator or Windows Phone Device selected?
Sometimes with samples that dropdown will have neither selected and therefore can not run until one is selected.
I am thinking of making a website using a WPF browser application, but would like to know the minimum requirement a client/internet user must have to access this website made by using WPF.
Please state even the very basic requirements, like does he need to run Windows or will even Mac and Linux do, with any browser to view the application?
Three main requirements:
User has to run the application under Windows;
The browser should be either Interned Explorer or Firefox;
The .Net Framework should be installed on user's machine.
One requirement is to have the .NET framework installed (same version as you used to build your application), so that means it will only run under Windows.
Also I think only Internet Explorer and Firefox support XBAP applications.
Also I assume that you know there is a lot of restrictions for you, the developer, on what is allowed or not compared to a full trust program. For example, the file system and registry among other things are restricted in a WPF browser application.
I’ve been working on integrating some controls which call in to COM classes in to a Silverlight client. Since my controls use COM, they only work out of browser. The client does have out of browser installation options turned on, and when I launch the client from visual studio, I can right click it, and install it to the desktop. That all seems to be working fine. The strange part though is that my controls don’t work when they’re out of browser – I get an error that the COM server can’t be started.
The stranger part is that if I go in to the clientproperties, and set the Start Action from “Dynamically generate a test page” to “Out of browser application”, my controls work fine, and I get no COM errors. So I guess I don’t understand the difference between installing the application to the desktop through the right click menu and setting the application to start as an out of browser application. Any idea what's going on here?
Edit
It looks like this may be related specifically to debugging. If (in Visual Studio) I choose Debug->Start Debugging, my COM code works. If I choose Debug->Start Without Debugging, it doesn't work. It also doesn't work if installed directly from the XAP file.
This turned out to be an elevation problem. The COM process I was trying to access was running elevated, and I was trying to launch the SL app elevated as well. However, the sllauncher.exe would start up elevated, and then immediately drop its elevated status, and become un-elevated. So we had a non-elevated process trying to talk to an elevated process, which of course would fail. Visual Studio was elevated, so launching the app from there kept it elevated, which is why it worked from there.
I resolved it by making sure the elevation matched on my two apps - not launching the COM process elevated.
Our company has a handful of Mac users. I recently built a Winform application and now my main user is using a Mac. Is it possible to run this application on a Mac? What would have to be done to convert it? If it is too much, I may just rebuild it is asp.net as a web application.
Thanks in advance!
JCC
Maybe. Many .Net programs can be compiled with mono as well, winforms usually is not a problem, but some libraries (e. g. MS Office libraries for editing Excel files). I am not sure about VB, as mono coders mostly use C#, but you can analyse your code with the Mono Migration Analyzer for portability to mono.
Depending a bit on features and controls used, it may run on Mono. Since you can run Mono on Windows as well it's rather easy to download and test it.
Your basic options are (from least intrusive to most intrusive, from the point of view of a Mac user):
Convert it to a web app.
Run it on a Terminal Server and have them use Remote Desktop.
Run the application in a virtual machine (VMWare or Parallels) that is running Windows.
Try to get it running under Mono.
If there isn’t a strong reason for it to be a desktop application, you really should be thinking in terms of web apps for new applications—at least, that’s an unwritten rule where I work.