<UserControl x:Class="XFEEDToolBox.Views.EdsyLinkPanel" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:controls="using:XFEEDToolBox.Controls">
    <StackPanel Spacing="16" MinWidth="360">
        <TextBlock Text="粘贴 EDSY 分享链接或改船码，导入到当前模拟工作台。" TextWrapping="Wrap"/>
        <TextBox x:Name="LinkBox" Header="EDSY 装配链接" Text="{Binding RefitEdsyLink,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" PlaceholderText="https://edsy.org/#/L=…" AcceptsReturn="True" TextWrapping="Wrap" MinHeight="96" MaxHeight="200"/>
        <StackPanel Orientation="Horizontal" Spacing="8"><Button Content="导入" controls:AsyncAction.Command="{Binding ImportEdsyCommand}"/><Button Content="导出当前配置" controls:AsyncAction.Command="{Binding ExportEdsyCommand}"/></StackPanel>
        <StackPanel Orientation="Horizontal" Spacing="8"><Button Content="复制链接" Click="CopyLink"/><HyperlinkButton Content="在 EDSY 打开" Click="OpenLink"/></StackPanel>
        <ProgressBar IsIndeterminate="True" Visibility="{Binding RefitEdsyBusy,Converter={StaticResource BoolVisibility}}"/>
        <TextBlock Text="{Binding RefitEdsyStatus}" TextWrapping="Wrap" Foreground="{StaticResource TealBrush}"/>
    </StackPanel>
</UserControl>
