You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+87-27Lines changed: 87 additions & 27 deletions
Original file line number
Diff line number
Diff line change
@@ -210,11 +210,7 @@ The included types are:
210
210
211
211
The `IBindingContext` is a base interface for ViewModels. It is a marker for Views that the class contains observable properties to bind to.
212
212
213
-
> **Note:** In case your ViewModel doesn't have a parameterless constructor, you need to override the `GetBindingContext` method in the View.
214
-
215
-
#### Simple property
216
-
217
-
Here's an example of how to implement notification support to a custom property.
213
+
Here's an example of a simple ViewModel.
218
214
219
215
```csharp
220
216
public class CounterViewModel : IBindingContext
@@ -228,25 +224,7 @@ public class CounterViewModel : IBindingContext
228
224
}
229
225
```
230
226
231
-
#### Wrapping a non-observable model
232
-
233
-
A common scenario, for instance, when working with collection items, is to create a wrapping "bindable" item model that relays properties of the collection item model, and raises the property value changed notifications when needed.
> **Note:** You need to define `IntToStrConverter` to convert int to string. See the [PropertyValueConverter](#propertyvalueconvertertsourcetype-ttargettype) section for more information.
> **Note:** You need to define `IntToStrConverter` to convert int to string. See the [PropertyValueConverter](#propertyvalueconvertertsourcetype-ttargettype) section for more information.
352
+
353
+
#### Wrapping a non-observable model
354
+
355
+
A common scenario, for instance, when working with collection items, is to create a wrapping "bindable" item model that relays properties of the collection item model, and raises the property value changed notifications when needed.
0 commit comments