Skip to content

Commit 7a5e84e

Browse files
committed
ContentPropertyAttribute ile Items eklendi TabView'lara.
1 parent 327f2f6 commit 7a5e84e

File tree

2 files changed

+27
-30
lines changed

2 files changed

+27
-30
lines changed

MyFinance/MyFinance.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.2.2" />
6767
<PackageReference Include="DevExpress.Maui.Controls" Version="24.1.1-alpha-24085" />
6868
<PackageReference Include="DevExpress.Maui.Editors" Version="24.1.1-alpha-24085" />
69-
<PackageReference Include="FmgLib.MauiMarkup" Version="8.3.1-prev1.0.0" />
69+
<PackageReference Include="FmgLib.MauiMarkup" Version="8.3.1-prev1.0.1" />
7070
<PackageReference Include="LiveChartsCore.SkiaSharpView.Maui" Version="2.0.0-rc2" />
7171
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="8.0.4" />
7272
<PackageReference Include="Microsoft.Maui.Controls" Version="8.0.21" />

MyFinance/Views/ItemsPage.cs

+26-29
Original file line numberDiff line numberDiff line change
@@ -7,37 +7,34 @@ public override void Build()
77
this
88
.Content(
99
new TabView()
10-
.ItemsSource(
11-
new List<TabViewItem>()
12-
{
13-
new TabViewItem()
14-
.HeaderText("Mail")
15-
.HeaderTextColor(Black)
16-
.HeaderIcon("home.png")
17-
.HeaderIconColor(Black)
18-
.Content(
19-
new Grid()
20-
.Children(
21-
new Label()
22-
.Text("Mail List")
23-
.Center()
24-
)
25-
),
10+
.Items_ContentProp(
11+
new TabViewItem()
12+
.HeaderText("Mail")
13+
.HeaderTextColor(Black)
14+
//.HeaderIcon("home.png")
15+
//.HeaderIconColor(Black)
16+
.Content(
17+
new Grid()
18+
.Children(
19+
new Label()
20+
.Text("Mail List")
21+
.Center()
22+
)
23+
),
2624

27-
new TabViewItem()
28-
.HeaderText("Temp")
29-
.HeaderTextColor(Black)
30-
.HeaderIconColor(Black)
31-
.HeaderIcon("home.png")
32-
.Content(
33-
new Grid()
34-
.Children(
35-
new Label()
36-
.Text("Mail List")
37-
.Center()
38-
)
25+
new TabViewItem()
26+
.HeaderText("Temp")
27+
.HeaderTextColor(Black)
28+
//.HeaderIconColor(Black)
29+
//.HeaderIcon("home.png")
30+
.Content(
31+
new Grid()
32+
.Children(
33+
new Label()
34+
.Text("Mail Remt")
35+
.Center()
3936
)
40-
}
37+
)
4138
)
4239
);
4340
}

0 commit comments

Comments
 (0)