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

Fix and refactor Visual Studio snippets #2323

merged 2 commits into from Jan 21, 2020


Copy link

Lixfeld commented Jan 20, 2020

What kind of change does this PR introduce?
Fix interaction snippet: => replaced with { get; } =
Some minor final syntax adjustments

What is the current behavior?
Failed to find a registration for a Interaction.

What is the new behavior?
No exception. The property returns the registered Interaction instead of a new one.

@Lixfeld Lixfeld requested a review from reactiveui/core-team as a code owner Jan 20, 2020
Copy link

worldbeater left a comment

Looks good, thanks!

@@ -20,18 +20,18 @@
<Code Language="csharp">
<![CDATA[public static readonly DependencyProperty ViewModelProperty =
DependencyProperty.Register("ViewModel", typeof($classname$Model), typeof($classname$), new PropertyMetadata(null));
DependencyProperty.Register(nameof(ViewModel), typeof($classname$Model), typeof($classname$), new PropertyMetadata(null));

This comment has been minimized.

Copy link

glennawatson Jan 20, 2020


I seen people do PropertyMetadata(default($classname$Model))) instead of PropertyMetadata(null))

This way it handles value types.

This comment has been minimized.

Copy link

Lixfeld Jan 21, 2020

Author Contributor

Thanks for the info.

@glennawatson glennawatson merged commit b26c43c into reactiveui:master Jan 21, 2020
2 checks passed
2 checks passed
ReactiveUI-CI Build #11.1.18+ba0070cfc9 succeeded
license/cla All CLA requirements met.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.