.NET Native Compilation with Desktop Bridge to UWP - wpf

I have a wpf application which I want to host on windows app store. I am thinking of using the desktop bridge to convert WPF to UWP without code changes. However, is it possible to make use of .net native compilation while using the desktop bridge approach in visual studio 2017???

No, this is not possible today for your WPF code - even with the Desktop Bridge. You can only do it for regular UWP projects that are targeting the .NET Core for UWP runtime.

Related

I can not find the WPF App (.Net Core) template in visual studio 2019?

I have read all the topics on this. I actually have it working on Visual Studio on one computer. I have used the installer to install the necessary work loads. I have tried downloading dotnet 5 and .net core 3.1. It just will not show up on the create projects window of Visual Studio. I only get WPF App(.NET Framework) or WPF App(.NET). I want to make WPF .netcore applications and this is a roadblock. Else, I can only make .Net Framework applications that can not be used for multi-platform development. I can make a core project in the Visual Studio with wpf .netcore template and then move it to my other computer and it works fine. The template just will not show up for core project (wpf). I am taking a wpf udemey course and it tells of the advantages of using core wpf in many applications.
Open the Visual Studio Installer (This is for VS2022, but the same should apply for 2019.)
Add the ".NET desktop development" Workload (see image below) which allows you to "Build WPF, Windows Forms, and console apps using C#, VB, & F#... "
And then it will appear (or should):

Is there any way to port a WPF application so it can run on mac-OS X?

I have a GUI which I created using WPF I not want to port this so it's available for use on mac OS X.
I heard mono can be used but it looks like they don't have any support for WPF's as of right now so any suggestions would be great Thanks.
.NET Core 3.0 has WPF but it works only for Windows platform, so there is no build-in support for multi-platform desktop GUI.
You could try port WPF application using Avalonia, but I never tried it. Avalonia works with .NET Core 2.0, .NET Standard 2.0.

How to develop OSX application using Visual studio for Mac preview

I have .Net Winform project(c#) working in windows.Now,i want to do same project, to work as OSX App in Mac. As per my understanding Microsoft recently launched Visual studio for Mac preview and also it support OSX app development using Xamarin.Mac and also it support .Netcore .
Instead of creating Osx app from scratch,i need to reuse the code which is available in .net winform project.
can i develop UI application using .netcore project? I think .netframework and .netcore more or less same.can i port .netframework to .netcore project and create osx app ?
or
can i use xamarin.mac and reuse the .netframework c# code to create osx app?
I am new to this,so kindly suggest the best way to create OSX app using Visual studio for Mac preview. (Basically i need Tabel view,form controls and graph(there i use zedgraph).Is these view are available here.
In general, the "standard" way of developing cross platform applications is to separate as much of your logic as possible into shared libraries of some type and create "thin" UIs specific to each platform.
Depending on your need, you could easily make that shared code netstandard/PCL/etc compatible and share between platforms or just recompile the project in each solution.
NSTableView will likely solve your needs, but expect it to be significantly more primitive that what you are used to on Windows. Graph controls don't come built in, so you'll need to find a vendor that ships Cocoa controls or draw them yourself.
Here is the quickstart documentation.
Xamarin.Forms support for macOS is coming in the future, currently earmarked for Q2 this year.

UI development for windows (desktop + web application) and windows CE

I am working on a project where there is requirement of GUI to be created in Silverlight. Some key requirements are:
Extremely rich GUI
Real time visualization process graphics
Support multiple themes
Support different display size
Support charting / trending controls
Same functionality for Desktop / Web using same code base
Same functionality to be available on embedded controller (based on Windows CE)
I understand that using Silverlight we can have same codebase for desktop / web applications. However challenge is to have the Silverlight application (windows and/or web) for Windows CE. I would like to understand what is the best way to implement Silverlight application on Windows CE with as much code reuse as possible.
I would appreciate if you could provide some inputs on what should our architecture approach be for this application development. Also, please let me know if you need more inputs on the requirement side...
"Silverlight" for Windows Embedded (SWE) is a bad name. It's not really what most would call Silverlight. It's simply a XAML-based engine that you can use Blend to develop for. For Windows CE, you must use C++ to develop for SWE. You cannot reuse SWE assemblies in other Silverlight projects. You cannot use other Silverlight assemblies in an SWE project. Your XAML itself will probably have some reusability, but XAML sharing from a code perspective is a challenge in its own right.

silverlight for embedded systems

Hi
I am developing silverlight application using Blend2 and VS2008 for Embedded systems and I installed all the requirements.
Now i need to develop my silverlight application using C++
But in blend2 when i start silverlight application its showing only C# and VB only
Previously i did one sample application in blend2 and i gave control for that buttons using C# in VS2008
now i want make it control using C++
Can anyone please help me in this regard?
Silverlight = C# or VB only. No C++.

Resources