This repository has been archived by the owner on May 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 470
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix tab view item font family (ios and uwp) (#1979)
- Loading branch information
1 parent
65b048e
commit 5a6062f
Showing
7 changed files
with
63 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<pages:BasePage xmlns="http://xamarin.com/schemas/2014/forms" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | ||
xmlns:pages="clr-namespace:Xamarin.CommunityToolkit.Sample.Pages" | ||
xmlns:vm="clr-namespace:Xamarin.CommunityToolkit.Sample.ViewModels.TestCases" | ||
xmlns:xct="http://xamarin.com/schemas/2020/toolkit" | ||
x:Class="Xamarin.CommunityToolkit.Sample.Pages.TestCases.Issue1978Page"> | ||
<pages:BasePage.BindingContext> | ||
<vm:Issue1978ViewModel /> | ||
</pages:BasePage.BindingContext> | ||
<ContentPage.Content> | ||
<xct:TabView> | ||
<xct:TabViewItem Text="" | ||
TextColor="Green" | ||
FontSize="24" FontSizeSelected="28" | ||
FontFamily="FARegular" | ||
IsSelected="True"> | ||
<Label Text="TabViewItem text should be an icon." | ||
HorizontalTextAlignment="Center" /> | ||
</xct:TabViewItem> | ||
<xct:TabViewItem Text="" | ||
TextColor="Black" | ||
FontSize="24" FontSizeSelected="28" | ||
FontFamily="FARegular"> | ||
<Label Text="TabViewItem text should be an icon." | ||
HorizontalTextAlignment="Center" /> | ||
</xct:TabViewItem> | ||
</xct:TabView> | ||
</ContentPage.Content> | ||
</pages:BasePage> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
using Xamarin.Forms.Xaml; | ||
|
||
namespace Xamarin.CommunityToolkit.Sample.Pages.TestCases | ||
{ | ||
[XamlCompilation(XamlCompilationOptions.Compile)] | ||
public partial class Issue1978Page : BasePage | ||
{ | ||
public Issue1978Page() | ||
{ | ||
InitializeComponent(); | ||
} | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
samples/XCT.Sample/ViewModels/TestCases/Issue1978ViewModel.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
namespace Xamarin.CommunityToolkit.Sample.ViewModels.TestCases | ||
{ | ||
public class Issue1978ViewModel : BaseViewModel | ||
{ | ||
public Issue1978ViewModel() | ||
{ | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters