Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 15 additions & 2 deletions CommunityToolkit.IssueTest/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<TestModel, object?>, 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<TestModel, object?>, string)[]
{
(vm => vm, nameof(TestModel.NestedObject)),
(vm => vm.NestedObject, nameof(TestModel.NestedObject.Test)),
},
(TestModel model, string value) => model.NestedObject.Test = value),

}
}
Expand Down