<?xml version="1.0" encoding="UTF-8" ?>
<ContentView
    xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
    xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
    xmlns:controls="clr-namespace:Bit.App.Controls"
    x:Class="Bit.App.Controls.ExternalLinkItemView"
    xmlns:core="clr-namespace:Bit.Core"
    x:Name="_contentView">
    <ContentView.GestureRecognizers>
        <TapGestureRecognizer Command="{Binding GoToLinkCommand, Mode=OneWay, Source={x:Reference _contentView}}" />
    </ContentView.GestureRecognizers>
    <StackLayout
        Orientation="Horizontal">
        <controls:CustomLabel
            Text="{Binding Title, Mode=OneWay, Source={x:Reference _contentView}}"
            HorizontalOptions="StartAndExpand"
            LineBreakMode="TailTruncation" />

        <controls:IconLabel
            Text="{Binding Source={x:Static core:BitwardenIcons.ExternalLink}}"
            TextColor="{DynamicResource TextColor}"
            HorizontalOptions="End"
            VerticalOptions="Center"
            SemanticProperties.Description="{Binding Title, Mode=OneWay, Source={x:Reference _contentView}}" />

    </StackLayout>
</ContentView>

