32
32
33
33
## Getting Started
34
34
35
- ### 1: Install NuGet Package
36
- Install the ` WinUI.TableView ` NuGet package in your Uno Platform project:
37
- ``` bash
38
- Install-Package WinUI.TableView
35
+ ### 1. Create a New WinUI3 or Uno Project
39
36
40
- # ## 1: Install NuGet package to your project
37
+ If you don't already have a WinUI 3 project or Uno prject, create one in Visual Studio.
41
38
42
- You can install the ` WinUI.TableView` NuGet package using the NuGet Package Manager or by running the following command in the Package Manager Console:
39
+ ### 2: Install NuGet Package
40
+ Inatall ` WinUI.TableView ` NuGet package to your app with your preferred method. Here is the one using NuGet Package Manager:
43
41
44
42
``` bash
45
43
Install-Package WinUI.TableView
46
44
```
47
-
48
- # ## 2. Create a New WinUI 3 Project
49
-
50
- If you don' t already have a WinUI 3 project, create one in Visual Studio.
51
-
52
45
### 3. Add ` WinUI.TableView ` to Your XAML
53
46
54
47
In your ` MainWindow.xaml ` , add the ` WinUI.TableView ` control:
@@ -66,8 +59,7 @@ In your `MainWindow.xaml`, add the `WinUI.TableView` control:
66
59
67
60
<Grid >
68
61
<tv : TableView x : Name =" MyTableView"
69
- ItemsSource="{x:Bind ViewModel.Items}"
70
- AutoGenerateColumns="True" />
62
+ ItemsSource =" {x:Bind ViewModel.Items}" />
71
63
</Grid >
72
64
</Window >
73
65
```
@@ -101,6 +93,7 @@ public class MainViewModel
101
93
{
102
94
new Item { Name = " Item 1" , Price = 10 . 0 , Quantity = 1 },
103
95
new Item { Name = " Item 2" , Price = 15 . 0 , Quantity = 2 },
96
+ new Item { Name = " Item 3" , Price = 20 . 0 , Quantity = 3 },
104
97
// Add more items here
105
98
};
106
99
}
0 commit comments