This repository was archived by the owner on May 1, 2024. It is now read-only.
File tree 7 files changed +63
-1
lines changed
7 files changed +63
-1
lines changed Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" utf-8" ?>
2
+ <pages : BasePage xmlns =" http://xamarin.com/schemas/2014/forms"
3
+ xmlns : x =" http://schemas.microsoft.com/winfx/2009/xaml"
4
+ xmlns : pages =" clr-namespace:Xamarin.CommunityToolkit.Sample.Pages"
5
+ xmlns : vm =" clr-namespace:Xamarin.CommunityToolkit.Sample.ViewModels.TestCases"
6
+ xmlns : xct =" http://xamarin.com/schemas/2020/toolkit"
7
+ x : Class =" Xamarin.CommunityToolkit.Sample.Pages.TestCases.Issue1978Page" >
8
+ <pages : BasePage .BindingContext>
9
+ <vm : Issue1978ViewModel />
10
+ </pages : BasePage .BindingContext>
11
+ <ContentPage .Content>
12
+ <xct : TabView >
13
+ <xct : TabViewItem Text ="  "
14
+ TextColor =" Green"
15
+ FontSize =" 24" FontSizeSelected =" 28"
16
+ FontFamily =" FARegular"
17
+ IsSelected =" True" >
18
+ <Label Text =" TabViewItem text should be an icon."
19
+ HorizontalTextAlignment =" Center" />
20
+ </xct : TabViewItem >
21
+ <xct : TabViewItem Text ="  "
22
+ TextColor =" Black"
23
+ FontSize =" 24" FontSizeSelected =" 28"
24
+ FontFamily =" FARegular" >
25
+ <Label Text =" TabViewItem text should be an icon."
26
+ HorizontalTextAlignment =" Center" />
27
+ </xct : TabViewItem >
28
+ </xct : TabView >
29
+ </ContentPage .Content>
30
+ </pages : BasePage >
Original file line number Diff line number Diff line change
1
+ using Xamarin . Forms . Xaml ;
2
+
3
+ namespace Xamarin . CommunityToolkit . Sample . Pages . TestCases
4
+ {
5
+ [ XamlCompilation ( XamlCompilationOptions . Compile ) ]
6
+ public partial class Issue1978Page : BasePage
7
+ {
8
+ public Issue1978Page ( )
9
+ {
10
+ InitializeComponent ( ) ;
11
+ }
12
+ }
13
+ }
Original file line number Diff line number Diff line change
1
+ namespace Xamarin . CommunityToolkit . Sample . ViewModels . TestCases
2
+ {
3
+ public class Issue1978ViewModel : BaseViewModel
4
+ {
5
+ public Issue1978ViewModel ( )
6
+ {
7
+ }
8
+ }
9
+ }
Original file line number Diff line number Diff line change @@ -63,7 +63,12 @@ protected override IEnumerable<SectionModel> CreateItems() => new[]
63
63
new SectionModel (
64
64
typeof ( Issue1900Page ) ,
65
65
"BadgeView Issue GitHub #1900" ,
66
- "BadgeView default text" )
66
+ "BadgeView default text" ) ,
67
+
68
+ new SectionModel (
69
+ typeof ( Issue1978Page ) ,
70
+ "TabView Issue GitHub #1978" ,
71
+ "TabView font family" )
67
72
} ;
68
73
}
69
74
}
Original file line number Diff line number Diff line change 32
32
<EmbeddedResource Update =" Pages\TestCases\Issue1900.xaml" >
33
33
<Generator >MSBuild:UpdateDesignTimeXaml</Generator >
34
34
</EmbeddedResource >
35
+ <EmbeddedResource Update =" Pages\TestCases\Issue1978.xaml" >
36
+ <Generator >MSBuild:UpdateDesignTimeXaml</Generator >
37
+ </EmbeddedResource >
35
38
<EmbeddedResource Update =" Pages\TestCases\Popups\PopupModalPage.xaml" >
36
39
<Generator >MSBuild:UpdateDesignTimeXaml</Generator >
37
40
</EmbeddedResource >
Original file line number Diff line number Diff line change @@ -69,6 +69,7 @@ protected override void OnParentSet()
69
69
text . SetBinding ( Label . TextColorProperty , "CurrentTextColor" ) ;
70
70
text . SetBinding ( Label . FontSizeProperty , "CurrentFontSize" ) ;
71
71
text . SetBinding ( Label . FontAttributesProperty , "CurrentFontAttributes" ) ;
72
+ text . SetBinding ( Label . FontFamilyProperty , "CurrentFontFamily" ) ;
72
73
73
74
badge . SetBinding ( TabBadgeView . BackgroundColorProperty , "CurrentBadgeBackgroundColor" ) ;
74
75
badge . SetBinding ( TabBadgeView . BorderColorProperty , "CurrentBadgeBorderColor" ) ;
Original file line number Diff line number Diff line change @@ -65,6 +65,7 @@ protected override void OnParentSet()
65
65
text . SetBinding ( Label . TextColorProperty , "CurrentTextColor" ) ;
66
66
text . SetBinding ( Label . FontSizeProperty , "CurrentFontSize" ) ;
67
67
text . SetBinding ( Label . FontAttributesProperty , "CurrentFontAttributes" ) ;
68
+ text . SetBinding ( Label . FontFamilyProperty , "CurrentFontFamily" ) ;
68
69
69
70
badge . SetBinding ( TabBadgeView . BackgroundColorProperty , "CurrentBadgeBackgroundColor" ) ;
70
71
badge . SetBinding ( TabBadgeView . TextProperty , "BadgeText" ) ;
You can’t perform that action at this time.
0 commit comments