【发布时间】:2019-08-28 18:44:35
【问题描述】:
在Xamarin.forms 3.3.0 update 中建议通过以下方式创建超链接:
<Label>
<Label.FormattedText>
<FormattedString>
<FormattedString.Spans>
<Span Text="This app is written in C#, XAML, and native APIs using the" />
<Span Text=" " />
<Span Text="Xamarin Platform" FontAttributes="Bold" TextColor="Blue" TextDecorations="Underline">
<Span.GestureRecognizers>
<TapGestureRecognizer
Command="{Binding TapCommand, Mode=OneWay}"
CommandParameter="https://docs.microsoft.com/en-us/xamarin/xamarin-forms/"/>
</Span.GestureRecognizers>
</Span>
<Span Text="." />
</FormattedString.Spans>
</FormattedString>
</Label.FormattedText>
</Label>
通常,在 Windows 上,鼠标光标在悬停在超链接上时会发生变化。 Xamarin.forms 中是否有办法获得相同的鼠标光标变化?
【问题讨论】:
-
你的问题是关于 UWP 的吧?因为在手机上没有指针
-
我认为 Span 还不支持此功能,甚至不打算支持。你应该打开一个请求这个的问题
-
@Christian - 你在开发移动应用吗?如果是,那么您如何获得光标?
-
是的,UWP中需要光标。
-
是的,光标在UWP中主要是需要的,但Android也支持mouse cursors。
标签: xamarin xamarin.forms uwp mouseover mouse-cursor