Skip to content
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

feature: Use ReactiveUI bindings in the Avalonia sample app #212

Merged
merged 1 commit into from
Feb 7, 2021

Conversation

worldbeater
Copy link
Collaborator

What kind of change does this PR introduce?

This PR incorporates Avalonia.NameGenerator package that allows us to use ReactiveUI code-behind bindings and ReactiveUI.Validation bindings without writing any boilerplate code. This source generator generates strongly typed references to named Avalonia controls declared in XAML files, at compile time (almost like WPF or Windows.Forms do).

What is the current behavior?

We are mixing ReactiveUI markup bindings and code-behind bindings in LoginApp.Avalonia.
Also, we are writing FindControl getters by hand in the .xaml.cs file of our view class.

What is the new behavior?

The bindings in our updated Avalonia sample app should look pretty concise now, and we no longer have to mix markup bindings and code-behind bindings.

What might this PR break?

Hopefully nothing, we are targeting .NET 5 anyway now.

@glennawatson glennawatson merged commit 90f67ba into main Feb 7, 2021
@glennawatson glennawatson deleted the use-xaml-name-reference-source-gen branch February 7, 2021 01:34
@reactiveui reactiveui locked as resolved and limited conversation to collaborators Nov 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants