-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UWP UI application in Rust #53
Comments
It's currently not possible, because creating a UI requires inheritance (you have to define at least your own subclass of Since I also have never built a UWP UI App in any other language, I lack experience with this, which is why I haven't yet tackled this area in winrt-rust. Furthermore, I expect that |
Quick answer from my side: I don't know (because I've never used inheritance in UWP). Probably it's a rather large effort. Help appreciated! |
Could you offer some pointers on understanding how inheritance is implemented in cppwinrt? I've used that library before so I'd be willing to explore how its implementation works. |
Rustc doesn't need to do anything .appx related - packaging is done with separate tooling, though integration with cargo would be nice. @DJankauskas, inheritance in C++ (and COM, which the Windows Runtime is built on) is implemented with vtables (pointers to virtual functions). That said, I'd also be interested in an effort like this. I think it would be pretty cool to have Rust running on HoloLens. |
Related: rust-lang/rust#60260 (UWP support for Rust) |
Also related: https://docs.microsoft.com/en-us/windows/uwp/xaml-platform/xaml-host-controls You can now (on new enough versions of Windows) use some amount of UWP UI outside of an appcontainer. |
Is it possible to create a uwp app with a ui with this library? If so can an example for that use case be added? If not what's preventing this: technical issues or something else?
The text was updated successfully, but these errors were encountered: