Skip to content

Commit b41522b

Browse files
authored
Update README.md
1 parent 8bc9529 commit b41522b

File tree

1 file changed

+6
-13
lines changed

1 file changed

+6
-13
lines changed

README.md

+6-13
Original file line numberDiff line numberDiff line change
@@ -32,23 +32,16 @@
3232

3333
## Getting Started
3434

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
3936

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.
4138

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:
4341

4442
```bash
4543
Install-Package WinUI.TableView
4644
```
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-
5245
### 3. Add `WinUI.TableView` to Your XAML
5346

5447
In your `MainWindow.xaml`, add the `WinUI.TableView` control:
@@ -66,8 +59,7 @@ In your `MainWindow.xaml`, add the `WinUI.TableView` control:
6659

6760
<Grid>
6861
<tv:TableView x:Name="MyTableView"
69-
ItemsSource="{x:Bind ViewModel.Items}"
70-
AutoGenerateColumns="True" />
62+
ItemsSource="{x:Bind ViewModel.Items}" />
7163
</Grid>
7264
</Window>
7365
```
@@ -101,6 +93,7 @@ public class MainViewModel
10193
{
10294
new Item { Name = "Item 1", Price = 10.0, Quantity = 1 },
10395
new Item { Name = "Item 2", Price = 15.0, Quantity = 2 },
96+
new Item { Name = "Item 3", Price = 20.0, Quantity = 3 },
10497
// Add more items here
10598
};
10699
}

0 commit comments

Comments
 (0)