Comments (2)
Hi @mukhaimy,
modifying TabBarLayer
to this:
<Grid
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:simpleCore="clr-namespace:SimpleToolkit.Core;assembly=SimpleToolkit.Core"
x:Class="NavbarAnimation.Maui.Views.Controls.TabBarLayer"
ColumnDefinitions="*, *">
<Grid.Resources>
<Style x:Key="GridStyle" TargetType="Grid">
</Style>
<Style x:Key="IconStyle" TargetType="simpleCore:Icon">
<Setter Property="TintColor" Value="{Binding Color}"/>
<Setter Property="HorizontalOptions" Value="Center"/>
<Setter Property="VerticalOptions" Value="Center"/>
<Setter Property="WidthRequest" Value="25"/>
<Setter Property="HeightRequest" Value="25"/>
</Style>
<Style x:Key="LabelStyle" TargetType="Label">
<Setter Property="TextColor" Value="{Binding Color}"/>
<Setter Property="FontFamily" Value="BoldFont"/>
<Setter Property="VerticalOptions" Value="End"/>
<Setter Property="HorizontalOptions" Value="Center"/>
<Setter Property="Margin" Value="6"/>
<Setter Property="FontSize" Value="12"/>
</Style>
</Grid.Resources>
<Grid
Grid.Column="0"
Style="{StaticResource GridStyle}">
<simpleCore:Icon
Style="{StaticResource IconStyle}"
Source="icon_devoirs.png"/>
<Label
Style="{StaticResource LabelStyle}"
Text="devoirs"/>
</Grid>
<Grid
Grid.Column="1"
Style="{StaticResource GridStyle}">
<simpleCore:Icon
Style="{StaticResource IconStyle}"
Source="icon_agenda.png"/>
<Label
Style="{StaticResource LabelStyle}"
Text="agenda"/>
</Grid>
</Grid>
and buttonsGrid
in TabBarView
to this:
<Grid
x:Name="buttonsGrid"
Margin="10, 0"
HorizontalOptions="Fill" VerticalOptions="Center"
HeightRequest="{StaticResource ViewHeight}"
ColumnDefinitions="*,*">
<Button Grid.Column="0" Clicked="DevoirsButtonClicked"/>
<Button Grid.Column="1" Clicked="AgendaButtonClicked"/>
</Grid>
should work.
from navbar-animation-2.
Thank you.
It Works
from navbar-animation-2.
Related Issues (3)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from navbar-animation-2.