CmdPal: Links in details will now wrap correctly. (#42036)

See title

Closes #39649
This commit is contained in:
Michael Jolley
2025-09-27 13:07:02 -05:00
committed by GitHub
parent ef131fd73b
commit 3145b39d42
3 changed files with 12 additions and 3 deletions

View File

@@ -9,5 +9,13 @@
<ItemGroup>
<ProjectReference Include="..\Microsoft.CmdPal.Core.Common\Microsoft.CmdPal.Core.Common.csproj" />
</ItemGroup>
<ItemGroup>
<Compile Update="Properties\Resources.Designer.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
</ItemGroup>
</Project>

View File

@@ -69,4 +69,4 @@ namespace Microsoft.CmdPal.Core.ViewModels.Properties {
}
}
}
}
}

View File

@@ -89,10 +89,11 @@
Visibility="{x:Bind IsText, Mode=OneWay}" />
<HyperlinkButton
Padding="0"
Content="{x:Bind Text, Mode=OneWay}"
FontSize="12"
NavigateUri="{x:Bind Link, Mode=OneWay}"
Visibility="{x:Bind IsLink, Mode=OneWay}" />
Visibility="{x:Bind IsLink, Mode=OneWay}">
<TextBlock Text="{x:Bind Text, Mode=OneWay}" TextWrapping="Wrap" />
</HyperlinkButton>
</StackPanel>
</DataTemplate>
<DataTemplate x:Key="DetailsCommandsTemplate" x:DataType="coreViewModels:DetailsCommandsViewModel">