I am new in windows app development. Actually I want to develop an app for Windows surface pro 4 tablet using WPF(XAML). So I have to use Plain WPF application or Surface SDK ? I am not sure that Plain WPF application will support for surface tablet. Am I correct?
Related
I have a simple question : Is it possible to create a windows 10 app (tablet for my case) in WPF instead of UWP ? Because actually my app need a framework that allow to create pdf, but none free framework exist in UWP yet, but un WPF this is quite different. Thank you.
WPF apps are fully supported on Windows 10, so nothing stops you from using WPF instead of UWP!
In fact, you can even take advantage of UWP features in WPF apps by using the Desktop Bridge (Centennial)
I have an existing Winforms project that currently runs on our Win 7 machines. Now I need to add camera access to it so that we can also run it on Win 8.1 tablets and take photos.
I understand that I can build WPF application for Win 8.1 to access camera.
I know that I can run my Winforms application on Win 8.1 as is.
My question is - do I have to rewrite my whole winforms application into Win 8.1 WPF to get access to the camera, or I can somehow create just the image capture form in Win 8.1 WPF and call it from my existing Winform application?
I was hoping that creating WPF Custom Control would work, but it seems that I only can create WPF Custom Controls for Windows 7, not for Win 8.1.
My question is - do I have to rewrite my whole winforms application
into Win 8.1 WPF to get access to the camera...
You can use Version to check if an OS is Win8, then do appropriate actions.
Version win8Version = new Version(6, 2, 9200, 0);
if (Environment.OSVersion.Platform == PlatformID.Win32NT &&
Environment.OSVersion.Version >= win8Version)
{
// Win8 or higher
}
else
{
// Do something if it isn't
}
I tried porting my entire windows phone 8.1 Silverlight app to windows mobile 10 uwp (universal) app, I see that the control size has increased a lot and even the fonts are bigger, Do we need to adjust the font size and control sizes when porting the apps from Silverlight phone 8.1 to uwp(universal) windows mobile 10?
There are some subtle differences between 8.1 and UWP as explained
here. For instance, the font size you refer to has to do with the view pixel now being abstracted in 'effective pixels' or epx in UWP. The link and links therein provide all the answers.
I am developing an app in WP8.1 silverlight in which in a case it is necessary to kill instance of background audio player because in this case i am using currently played song for other purpose .
How can I do this?
The AudioPlayerAgent and AudioStreamingAgent classes, which supported background audio playback for Windows Phone 8 apps, are not supported in Silverlight 8.1. If you want to support background audio playback, you can continue to use a Windows Phone 8 app or create a Windows Phone Store app, which supports new background audio APIs.
Source: Platform compatibility and breaking changes for Windows Phone Silverlight 8.1 apps
We have an in-house .net 2.0 winforms app currently developed on Visual Studio 2005 in Windows XP. Everyone in the office until now is running Windows XP, and there are no issues.
We recently ordered a new computer with Windows 7 for one of our managers we were hoping to use, and the app installs fine. The issue is the spacing around every label, textbox, and button - making some forms not fit.
Is there some setting that we can use to make Windows 7 display each control where it is placed in our XP development environment and like the rest of our XP clients show?
Ugh, what kind of idiot management team gives a new machine to a manager instead of a programmer?
Control Panel + Display, Advanced tab, change the DPI setting to repro the problem on your XP machine. Read the docs for the Form.AutoScaleMode to find out what's going on.