-
Notifications
You must be signed in to change notification settings - Fork 455
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Resolved suggestions - Included support for every control possible - Updated Strings.*.resx files
- Loading branch information
1 parent
88e771a
commit 5e5eb5b
Showing
259 changed files
with
34,105 additions
and
3,933 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
namespace ModernWpf.Controls | ||
{ | ||
internal static class ResourceHelper | ||
{ | ||
/// <summary> | ||
/// This method must be called from every control/class's constructor (<see langword="static"/> or default) | ||
/// present in the <strong>ModernWpf.Controls</strong> assembly | ||
/// that makes use of the <see cref="ResourceAccessor.GetLocalizedStringResource(string)"/> method. | ||
/// </summary> | ||
/// <remarks> | ||
/// This method ensures that the <see cref="ResourceAccessor"/> is aware of this (<strong>ModernWpf.Controls</strong>) assembly. | ||
/// We use this method instead of using the <see cref="System.Reflection.Assembly.GetCallingAssembly"/> method | ||
/// because it is unreliable and may cause instabilities in the end application. | ||
/// </remarks> | ||
public static void Initialize() | ||
{ | ||
ResourceAccessor.modernWpfControlsAssembly ??= typeof(ResourceHelper).Assembly; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.