Skip to content

Commit

Permalink
feat: Support for WinUI's internal DXamlCore.GetLocalizedResourceStri…
Browse files Browse the repository at this point in the history
…ng()
  • Loading branch information
carldebilly authored and dr1rrb committed Jun 1, 2021
1 parent 0badfcf commit 83dbbe4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Uno.UI/DirectUI/DXamlCore.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using System.Text;
using Windows.ApplicationModel.Resources;
using Windows.UI.Core;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
Expand All @@ -21,7 +22,10 @@ public static DXamlCore GetCurrentNoCreate()
=> _current ?? new DXamlCore();

public string GetLocalizedResourceString(string key)
=> key;
{
var loader = ResourceLoader.GetForCurrentView();
return loader.GetString(key);
}

public ElementSoundPlayerService GetElementSoundPlayerServiceNoRef()
=> _elementSoundPlayerServiceNoRef ??= new ElementSoundPlayerService();
Expand Down

0 comments on commit 83dbbe4

Please sign in to comment.