Git Product home page Git Product logo

Comments (2)

RadekVyM avatar RadekVyM commented on July 23, 2024

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.

mukhaimy avatar mukhaimy commented on July 23, 2024

Thank you.
It Works

from navbar-animation-2.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.