Skip to content

Commit 50c48cc

Browse files
missing Bindingcontext
BindingContext is never set in order to bindings to work
1 parent b327afb commit 50c48cc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

hub/apps/windows-dotnet-maui/tutorial-csharp-ui-maui-toolkit.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ Because the UI elements are going to be defined in the C# code, the `InitializeC
140140
```csharp
141141
public MainPage()
142142
{
143+
BindingContext = ViewModel;
143144
Content = new Grid
144145
{
145146
RowDefinitions = Rows.Define(

0 commit comments

Comments
 (0)