Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions WinUI3Localizer/LocalizationActions.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Microsoft.UI.Xaml;
using Microsoft.UI.Xaml;
using Microsoft.UI.Xaml.Documents;
using System;
using System.Collections.Generic;
Expand Down Expand Up @@ -30,15 +30,15 @@ public record ActionItem(Type TargetType, Action<ActionArguments> Action);
}),
new ActionItem(typeof(Bold), arguments =>
{
if (arguments.DependencyObject is Hyperlink target && target.Inlines.Count is 0)
if (arguments.DependencyObject is Hyperlink target)
{
target.Inlines.Clear();
target.Inlines.Add(new Run() { Text = arguments.Value });
}
}),
new ActionItem(typeof(Hyperlink), arguments =>
{
if (arguments.DependencyObject is Hyperlink target && target.Inlines.Count is 0)
if (arguments.DependencyObject is Hyperlink target)
{
target.Inlines.Clear();
target.Inlines.Add(new Run() { Text = arguments.Value });
Expand Down
6 changes: 6 additions & 0 deletions WinUI3Localizer/WinUI3Localizer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
<Product>WinUI3Localizer</Product>
<Copyright>Copyright (c) Andrew KeepCoding 2023</Copyright>
<Authors>Andrew KeepCoding</Authors>
<PackageReadMeFile>README.md</PackageReadMeFile>
</PropertyGroup>

<ItemGroup>
Expand All @@ -37,7 +38,12 @@
<PackageReference Include="Microsoft.Windows.SDK.BuildTools" Version="10.0.22621.755" />
</ItemGroup>

<ItemGroup>
<None Include="..\README.md" Pack="true" PackagePath="\" />
</ItemGroup>

<ItemGroup>
<InternalsVisibleTo Include="$(AssemblyName).Tests" />
</ItemGroup>

</Project>