Last active
December 23, 2018 16:45
-
-
Save worldbeater/dff37763d6da9c985bcec45617fbff12 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public sealed partial class FeedbackView : Page, IViewFor<FeedbackViewModel> | |
{ | |
public static readonly DependencyProperty ViewModelProperty = DependencyProperty | |
.Register(nameof(ViewModel), typeof(FeedbackViewModel), typeof(FeedbackView), null); | |
public FeedbackView() | |
{ | |
InitializeComponent(); | |
ViewModel = new FeedbackViewModel(new UwpSender(), new Clock()); | |
this.WhenActivated(disposables => { /* handle interactions, etc. */ }); | |
} | |
public FeedbackViewModel ViewModel | |
{ | |
get => (FeedbackViewModel)GetValue(ViewModelProperty); | |
set => SetValue(ViewModelProperty, value); | |
} | |
object IViewFor.ViewModel | |
{ | |
get => ViewModel; | |
set => ViewModel = (FeedbackViewModel)value; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment