File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 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
10781078}
10791079```
10801080
1081- Create a ` UsersView ` as follows.
1081+ Now we need to provide an item template for the ` UserItemViewModel ` . Create a ` UsersView ` as follows.
10821082
10831083``` csharp
10841084public class UsersView : DocumentView <UsersViewModel >
@@ -1095,6 +1095,15 @@ public class UsersView : DocumentView<UsersViewModel>
10951095}
10961096```
10971097
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+
10981107Finally, create a main ` UI Document ` named ` UsersView.uxml ` with the following content.
10991108
11001109``` xml
You can’t perform that action at this time.
0 commit comments