diff --git a/src/Snap.Hutao/Snap.Hutao/View/Control/LaunchGameResourceExpander.xaml b/src/Snap.Hutao/Snap.Hutao/View/Control/LaunchGameResourceExpander.xaml
index 07d4671a..8a355035 100644
--- a/src/Snap.Hutao/Snap.Hutao/View/Control/LaunchGameResourceExpander.xaml
+++ b/src/Snap.Hutao/Snap.Hutao/View/Control/LaunchGameResourceExpander.xaml
@@ -48,9 +48,9 @@
Height="38.4"
HorizontalAlignment="Right"
VerticalAlignment="Center"
+ Command="{Binding CopyPathCommand}"
Content="{StaticResource FontIconContentOpenInNewWindow}"
- FontFamily="{StaticResource SymbolThemeFontFamily}"
- NavigateUri="{Binding Path}"/>
+ FontFamily="{StaticResource SymbolThemeFontFamily}"/>
@@ -92,9 +92,9 @@
Height="38.4"
HorizontalAlignment="Right"
VerticalAlignment="Center"
+ Command="{Binding CopyPathCommand}"
Content="{StaticResource FontIconContentOpenInNewWindow}"
- FontFamily="{StaticResource SymbolThemeFontFamily}"
- NavigateUri="{Binding Path}"/>
+ FontFamily="{StaticResource SymbolThemeFontFamily}"/>
/// 下载的文件
///
[HighQuality]
-internal class PathMd5
+internal partial class PathMd5
{
///
/// 下载地址
@@ -25,4 +27,10 @@ internal class PathMd5
/// 显示名称
///
public string DisplayName { get => System.IO.Path.GetFileName(Path); }
+
+ [Command("CopyPathCommand")]
+ private void CopyPathToClipboard()
+ {
+ Ioc.Default.GetRequiredService().SetText(Path);
+ }
}