8000 Using XAML for my own UI framework · Issue #7736 · dotnet/wpf · GitHub
[go: up one dir, main page]

Skip to content

Using XAML for my own UI framework #7736

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

Open
DrMaxP opened this issue Apr 17, 2023 · 3 comments
Open

Using XAML for my own UI framework #7736

DrMaxP opened this issue Apr 17, 2023 · 3 comments
Labels
Question General question, not a problem in source code or documentation (yet)

Comments

@DrMaxP
Copy link
DrMaxP commented Apr 17, 2023

So, this might be somewhat off topic, but I'm trying to find places where people in the know might have a view on this. I've used WPF for many years (10+) but now do VR development in Unity. I'd like to adopt a XAML based markup language for my own UI system (for procedurally building 3D UIs in Unity) and am not sure how to approach this. Ideally I'd like to leverage support in the .NET framework or elsewhere to do the heavy lifting going from my markup/UI types using XAML ->my object graph but don't know where sensible to start. Clearly XAML as markup is used by more than WPF, so should be extensible - but how? Does anyone have any advice or can propose a good resource to look at.

Also, the level of support Unity exposes could also be an issue in implementing any suggestion.

Thanks.

@miloush miloush added Question General question, not a problem in source code or documentation (yet) and removed Untriaged labels Apr 17, 2023
@miloush
Copy link
Contributor
miloush commented Apr 17, 2023

You can use the XAML readers to instantiate any kind of object. There is System.Windows.Markup.XamlReader.Load for example, see XamlReader documentation.

I think you need to be a bit more concrete about what you expect to get out of it.

@giovanni-a
Copy link

I understand your interest in using XAML to develop VR / AR applications. I wanted to share that this is precisely what we're working on (albeit without Unity). Please take a look here and share your feedback: https://xrsharp.io/

@erikzhang
Copy link

If I replace the value of xmlns with my own namespace, Visual Studio's XAML IntelliSense will complain that the type cannot be found.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Question General question, not a problem in source code or documentation (yet)
Projects
None yet
Development

No branches or pull requests

4 participants
0