File tree 1 file changed +10
-1
lines changed
1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -1078,7 +1078,7 @@ public class UsersViewModel : IBindableContext
1078
1078
}
1079
1079
```
1080
1080
1081
- Create a ` UsersView ` as follows.
1081
+ Now we need to provide an item template for the ` UserItemViewModel ` . Create a ` UsersView ` as follows.
1082
1082
1083
1083
``` csharp
1084
1084
public class UsersView : DocumentView <UsersViewModel >
@@ -1095,6 +1095,15 @@ public class UsersView : DocumentView<UsersViewModel>
1095
1095
}
1096
1096
```
1097
1097
1098
+ Starting with Unity 2023, you can select an ItemTemplate directly in the UI Builder.
1099
+
1100
+ <details ><summary >UI Builder Inspector</summary >
1101
+ <br />
1102
+
1103
+ ![ collection-item-template] ( https://github.com/LibraStack/UnityMvvmToolkit/assets/28132516/2dba3a31-7ca9-45c3-a704-5f847262449c )
1104
+
1105
+ </details >
1106
+
1098
1107
Finally, create a main ` UI Document ` named ` UsersView.uxml ` with the following content.
1099
1108
1100
1109
``` xml
You can’t perform that action at this time.
0 commit comments