From e4adb84a0995db63eedc30b1c380893f023e1c9b Mon Sep 17 00:00:00 2001 From: Brandon Minnick <13558917+brminnick@users.noreply.github.com> Date: Wed, 29 Nov 2023 12:02:19 -0800 Subject: [PATCH] Update App.xaml.cs --- CommunityToolkit.IssueTest/App.xaml.cs | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/CommunityToolkit.IssueTest/App.xaml.cs b/CommunityToolkit.IssueTest/App.xaml.cs index 3dff93a..34e67cc 100644 --- a/CommunityToolkit.IssueTest/App.xaml.cs +++ b/CommunityToolkit.IssueTest/App.xaml.cs @@ -36,12 +36,25 @@ public TestView() new Label { - }.Bind(Label.TextProperty, getter: static (TestModel myModel) => myModel.NestedObject.Test), + }.Bind(Label.TextProperty, + static (TestModel myModel) => myModel.NestedObject.Test, + new (Func, string)[] + { + (vm => vm, nameof(TestModel.NestedObject)), + (vm => vm.NestedObject, nameof(TestModel.NestedObject.Test)), + }), new Entry { - }.Bind(Entry.TextProperty, static (TestModel model) => model.NestedObject.Test, (TestModel model, string value) => model.NestedObject.Test = value), + }.Bind(Entry.TextProperty, + static (TestModel model) => model.NestedObject.Test, + new (Func, string)[] + { + (vm => vm, nameof(TestModel.NestedObject)), + (vm => vm.NestedObject, nameof(TestModel.NestedObject.Test)), + }, + (TestModel model, string value) => model.NestedObject.Test = value), } }