MacCatalyst: Tooltips are not functional

Dani_S 3,746 Reputation points
2024-08-29T11:06:25.1533333+00:00

Hi,

I'm in net 8. and i'm using ToolTipProperties.Text

and is work after long time and not work when I change it runtime.

Thanks,

.

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,424 questions
{count} votes

Accepted answer
  1. Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 30,746 Reputation points Microsoft Vendor
    2024-09-06T09:37:28.6266667+00:00

    Hello,

    I tested and reproduced the issue on MacCatalyst, please rise an issue at MAUI GitHub repo for further help.

    can you please give here your sample code?

    MainPage

    <?xml version="1.0" encoding="utf-8" ?>
    <ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
                 xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
                 x:Class="ToolTipMacSample.MainPage">
     
        <ScrollView>
    <VerticalStackLayout
                Padding="30,0"
                Spacing="25">
    <Image
                    Source="dotnet_bot.png"
                    HeightRequest="185"
                    Aspect="AspectFit"
                    SemanticProperties.Description="dot net bot in a race car number eight" />
     
                <Label
                    Text="Hello, World!"
                    ToolTipProperties.Text="{Binding MyProperty}"
                    Style="{StaticResource Headline}"
                    SemanticProperties.HeadingLevel="Level1" />
     
                <Label
                    ToolTipProperties.Text="{Binding MyProperty}"
                    Text="Welcome to &#10;.NET Multi-platform App UI"
                    Style="{StaticResource SubHeadline}"
                    SemanticProperties.HeadingLevel="Level2"
                    SemanticProperties.Description="Welcome to dot net Multi platform App U I" />
     
                <Button  ToolTipProperties.Text="{Binding MyProperty}"
                    x:Name="CounterBtn"
                    Text="Click me" 
                    SemanticProperties.Hint="Counts the number of times you click"
                    Clicked="OnCounterClicked"
                    HorizontalOptions="Fill" />
    </VerticalStackLayout>
    </ScrollView>
     
    </ContentPage>
    

    Code behind

    public partial class MainPage : ContentPage
    {
    	public string MyProperty { get; set; } = "3333333";
     
    	public MainPage()
    	{
    		InitializeComponent();
    		this.BindingContext = this;
    	}
     
    	private void OnCounterClicked(object sender, EventArgs e)
    	{
    		this.MyProperty = "555555";
    	}
    }
    

    Best Regards,

    Wenyan Zhang


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 64,566 Reputation points
    2024-08-29T17:08:36.0033333+00:00

    on MacOs the tooltip delay is system wide, and can be changed by the user via defaults (typically only done by an advanced users).


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.