Skip to content

Support for creating composable types #148

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

Closed
06393993 opened this issue May 18, 2020 · 4 comments · Fixed by #255
Closed

Support for creating composable types #148

06393993 opened this issue May 18, 2020 · 4 comments · Fixed by #255
Labels
enhancement New feature or request

Comments

@06393993
Copy link

Is it possible to use the Xaml Island with this crate in Rust?

It seems that it's very difficult to create the DesktopWindowXamlSource class which is under a ComposableAttribute and should be created via a factory class(IDesktopWindowXamlSourceFactory) which is undocumented.

If further efforts are planed to make, I am wondering if you could share any information on when that will be scheduled? Thanks.

@kennykerr kennykerr reopened this May 18, 2020
@kennykerr
Copy link
Collaborator

It should be possible, although it is not simple. There are a few issues that need to be addressed before broader Xaml support becomes more feasible including #119 #92 #91 and #81

We're working hard at these remaining issues. It may still be some time, but the goal is to make procedural Xaml (at the very least) very simple with Rust.

@roblabla
Copy link
Contributor

I've got a working XAML Island, see https://github.com/roblabla/ubuntu-installer

In particular the DesktopWindowXamlSource can be created with winrt::factory, see https://github.com/roblabla/ubuntu-installer/blob/master/src/main.rs#L33

@kennykerr
Copy link
Collaborator

kennykerr commented May 19, 2020

Yes, once we're done you'll be able to use use something like this:

let source = DesktopWindowXamlSource::new()?;

I'm going to reopen this issue to support this simple construction code generation before the full authoring support arrives.

@kennykerr kennykerr changed the title Support for Xaml Island Support for creating composable types May 19, 2020
@kennykerr kennykerr reopened this May 19, 2020
@kennykerr kennykerr added the enhancement New feature or request label May 20, 2020
@kennykerr
Copy link
Collaborator

This has been working for a while. Let me know if you experience any issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants