Skip to content

Commit

Permalink
Merge branch 'develop' into fix/localize_tabbar_by_settings
Browse files Browse the repository at this point in the history
  • Loading branch information
unchase authored Mar 24, 2020
2 parents 35f6182 + aaa8b1b commit a7f9181
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 27 deletions.
18 changes: 9 additions & 9 deletions DotNetRu.Clients.UI/AppShell.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
xmlns:about="clr-namespace:DotNetRu.Clients.UI.Pages.About;assembly=DotNetRu.Clients.UI"
xmlns:home="clr-namespace:DotNetRu.Clients.UI.Pages.Home;assembly=DotNetRu.Clients.UI"
xmlns:meetups="clr-namespace:DotNetRu.Clients.UI.Pages.Meetups;assembly=DotNetRu.Clients.UI"
xmlns:speakers="clr-namespace:DotNetRu.Clients.UI.Pages.Speakers;assembly=DotNetRu.Clients.UI"
xmlns:speakers="clr-namespace:DotNetRu.Clients.UI.Pages.Speakers;assembly=DotNetRu.Clients.UI" xmlns:ui="clr-namespace:DotNetRu.Clients.UI"
FlyoutBehavior="Disabled">

<Shell.Resources>
Expand All @@ -25,33 +25,33 @@
</Shell.Resources>

<TabBar Route="root">
<Tab
<ui:CustomTab
x:Name="NewsTab"
Title="{Binding Resources[News]}"
Icon="tab_feed.png"
Route="news">
<ShellContent ContentTemplate="{DataTemplate home:NewsPage}" />
</Tab>
<Tab
</ui:CustomTab>
<ui:CustomTab
x:Name="SpeakersTab"
Title="{Binding Resources[Speakers]}"
Icon="tab_speakers.png"
Route="speakers">
<ShellContent ContentTemplate="{DataTemplate speakers:SpeakersPage}" />
</Tab>
<Tab
</ui:CustomTab>
<ui:CustomTab
x:Name="MeetupsTab"
Title="{Binding Resources[Meetups]}"
Icon="tab_events.png"
Route="meetups">
<ShellContent ContentTemplate="{DataTemplate meetups:MeetupsPage}" />
</Tab>
<Tab
</ui:CustomTab>
<ui:CustomTab
x:Name="AboutTab"
Title="{Binding Resources[About]}"
Icon="tab_about.png"
Route="about">
<ShellContent ContentTemplate="{DataTemplate about:AboutPage}" />
</Tab>
</ui:CustomTab>
</TabBar>
</Shell>
14 changes: 14 additions & 0 deletions DotNetRu.Clients.UI/CustomTab.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
using System.Threading.Tasks;
using Xamarin.Forms;

namespace DotNetRu.Clients.UI
{
public class CustomTab : Tab
{
protected override Task<Page> OnPopAsync(bool animated)
{
// temporary workaround while https://github.com/xamarin/Xamarin.Forms/issues/8581 not fixed
return base.OnPopAsync(animated: false);
}
}
}
21 changes: 3 additions & 18 deletions DotNetRu.Clients.UI/Localization/AppResources.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a7f9181

Please sign in to comment.