Skip to content

Commit

Permalink
docs: Tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
nickrandolph committed Jul 4, 2023
1 parent bdd5824 commit 291e1dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/Overview/Mvux/Overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public partial class MainViewModel : ObservableObject
}
}
```
The `ObservableObject` comes from the [`CommunityToolkit.Mvvm`](https://www.nuget.org/packages/CommunityToolkit.Mvvm) package and provides an implementation of the [`INotifyPropertyChanged`](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.data.inotifypropertychanged) interface, which is used to notify the UI when property values change. The `ObservableProperty` attribute (also from the `CommunityToolkit.Mvvm` package) is used to instruct the source code generator to emit properties that include raising the PropertyChanged event when the value changes. In this case the `CurrentWeather` property is generated and will raise the PropertyChanged event when the value is set in the `LoadWeather` method.
The `ObservableObject` comes from the [`CommunityToolkit.Mvvm`](https://www.nuget.org/packages/CommunityToolkit.Mvvm) package and provides an implementation of the [`INotifyPropertyChanged`](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.data.inotifypropertychanged) interface, which is used to notify the UI when property values change. The `ObservableProperty` attribute (also from the `CommunityToolkit.Mvvm` package) is used to instruct the source code generator to emit properties that include raising the `PropertyChanged` event when the value changes. In this case the `CurrentWeather` property is generated and will raise the `PropertyChanged` event when the value is set in the `LoadWeather` method.

# [MainPage](#tab/page)

Expand Down

0 comments on commit 291e1dc

Please sign in to comment.