Skip to content
This repository has been archived by the owner on May 15, 2024. It is now read-only.

WPF Platform Support #338

Closed
inforithmics opened this issue Jun 27, 2018 · 12 comments
Closed

WPF Platform Support #338

inforithmics opened this issue Jun 27, 2018 · 12 comments
Assignees
Labels
feature-request A request for a new feature. needs-more-discussion This needs more discussion or info before discussing it as a proposal. proposal Proposed feature or enhancement.

Comments

@inforithmics
Copy link

inforithmics commented Jun 27, 2018

Currently Xamarin.Essentials Supports iOS, Android and UWP when I use WPF the .Net Standard version is taken where nothing is implemented.
So my question is it planned to Support WPF as a new target?

VS bug #735666

@jamesmontemagno jamesmontemagno added the proposal Proposed feature or enhancement. label Jun 27, 2018
@jamesmontemagno
Copy link
Collaborator

Xamarin.Essentials is focused currently on iOS, Android, and UWP for our first release and additional platforms will be considered in the future, but not currently on the roadmap.

@prashantvc
Copy link

@inforithmics as James mentioned above, the focus right now is to make it easy for mobile devs to use different device capabilities.

However, I am interested to know how/where are you using Essentials at the moment? What APIs would be most useful in WPF applications for you? Please reach me out if you want to talk more about it

@mattleibow
Copy link
Contributor

Just something to keep in mind... If we are doing WPF, it may overlap with WinForms. And possibly with general .NET such as console.

@inforithmics
Copy link
Author

I have a Xamarin Forms Application that targets Android, iOS, UWP. I'm currently looking into the feasability to Target WPF the main reason is that All Desktop users can use the application, not only Windows 10 Users.

Currently I have an assortment of nuget packages that solve different Features. So if Xamarin Essentials is targeting WPF I could move away from these nuget packages.

So the Areas I'm intrested in WPF are the following.

  1. Device Display Information (Orientation) for Layouting.
  2. Device Information (For Debugging purposes).
  3. MainThread (For accessing UI Elements on the right Thread)
  4. Gecoding (For Position to Adress translation)
  5. Geolocation (For getting the GPS position)
  6. Secure Storage (For saving passwords).
  7. File System Helpers (For saving offline Data).

I think this are things that are available on a Desktop PC/Tablet/Laptop.

I haven't looked througly into the Code yet, but if no WPF support is planned I might implement the WPF target myself.

The main reason I Target WPF is that it is Windows only target the .NET Framework or Console apps would need cross platform code (Linux, MacOs, ...).

@JohnGalt1717
Copy link

I'd also like the settings functionality as well that did a standardized way of getting and setting app settings into the right folder(s) as json.

And with the Secure Storage I'd like it to also do large files like videos that we could store encrypted on the file system.

@Redth Redth added needs-more-discussion This needs more discussion or info before discussing it as a proposal. azdo-sync labels Nov 26, 2018
@Redth
Copy link
Member

Redth commented Nov 28, 2018

@JohnGalt1717 thanks, but please start a new issue for different feature requests.

@xamarin-release-manager xamarin-release-manager added the feature-request A request for a new feature. label Nov 28, 2018
@jamesmontemagno
Copy link
Collaborator

Placing this under: #662

@AlexBrownShi
Copy link

I really need Xamarin.Essentials support for WPF! It really detracts from the usefulness of the library if I need to wrap it in something to get it to work on WPF.

Also, very annoying that I have to stub it out in Integration Testing as well, I should just be able to allow .NET to fill in the information.

Please add support for general .NET - how hard can it be?

@AlexBrownShi
Copy link

BTW, I'm only using Device Information and Application Information right now. I get why GeoLocation could present issues, but some of these should be easy wins.

@JohnGalt1717
Copy link

Well it can be hard but it would be nice to be there. For instance Wpf doesn't have a concept of protected storage. So you'd have to write a wrapper that did encryption/decryption or created a folder that was bitlockered with app having a key.

All non-trivial. But yes, it would be nice if certain things were incrementally added and the rest threw NotImplemented errors.

@gentledepp
Copy link

Well could you at least add some way so we can add this functionality ourselves?
Like allowing us to set static fields which currently throw "NotSupported" to our own implementation?

That way, we can already use Essentials for all our Xamarin projects and once you add support for WPF, we can gradually remove our "static overloads" and gracefully migrate to your implementation

@mattleibow
Copy link
Contributor

You could try this: https://github.com/rdavisau/essential-interfaces

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request A request for a new feature. needs-more-discussion This needs more discussion or info before discussing it as a proposal. proposal Proposed feature or enhancement.
Projects
None yet
Development

No branches or pull requests

9 participants