Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tool tips in toolbar #2

Open
BillyMartin1964 opened this issue Jun 23, 2021 · 0 comments
Open

Tool tips in toolbar #2

BillyMartin1964 opened this issue Jun 23, 2021 · 0 comments

Comments

@BillyMartin1964
Copy link

How do we make it work in the toolbar?

  <controls:CustomPage.ToolbarItems>
        <ToolbarItem Command="{Binding ShowMyLocationCommand}" Priority="0"     effects:ToolTipEffect.BackgroundColor="Silver"
                     effects:ToolTipEffect.IsVisible="True" 
                     effects:ToolTipEffect.Margin="10"
                     effects:ToolTipEffect.Position="Bottom"
                     effects:ToolTipEffect.Text="Here is a sample text for this tool tip that can help us later, here is more text to showcase the tooltip bottom"
                     effects:ToolTipEffect.TextColor="Teal" >
            <effects:ToolTipEffect.Content>
                <Frame
                    BackgroundColor="Yellow"
                    BorderColor="Gray"
                    HorizontalOptions="FillAndExpand"
                    VerticalOptions="FillAndExpand">
                    <Label
                        FontSize="Small"
                        HorizontalOptions="FillAndExpand"
                        Text="Here is a sample text for this tool tip that can help us later, here is more text to showcase the tooltip bottom"
                        TextColor="Black"
                        VerticalOptions="FillAndExpand" />
                </Frame>
            </effects:ToolTipEffect.Content>
            <ToolbarItem.IconImageSource Padding="0" >
                <FontImageSource
                    FontFamily="{StaticResource FAIcon}"
                    Glyph="&#xf21d; "
                    Size="20"
                    Color="{DynamicResource BarTextColor}" />
            </ToolbarItem.IconImageSource>
        </ToolbarItem>  
    </controls:CustomPage.ToolbarItems>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant