Exemplo n.º 1
0
 private async void CreateResourceContext()
 {
     var currentResourceManager = new Microsoft.Windows.ApplicationModel.Resources.ResourceManager();
     var resourceContext1       = /*
                                   * TODO ResourceContext.GetForCurrentView and ResourceContext.GetForViewIndependentUse do not exist in Windows App SDK
                                   * Use your ResourceManager instance to create a ResourceContext as below. If you already have a ResourceManager instance,
                                   * replace the new instance created below with correct instance.
                                   * Read: https://docs.microsoft.com/en-us/windows/apps/windows-app-sdk/migrate-to-windows-app-sdk/guides/mrtcore
                                   */new Microsoft.Windows.ApplicationModel.Resources.ResourceManager().CreateResourceContext();
     var resourceContext2       = /*
                                   * TODO ResourceContext.GetForCurrentView and ResourceContext.GetForViewIndependentUse do not exist in Windows App SDK
                                   * Use your ResourceManager instance to create a ResourceContext as below. If you already have a ResourceManager instance,
                                   * replace the new instance created below with correct instance.
                                   * Read: https://docs.microsoft.com/en-us/windows/apps/windows-app-sdk/migrate-to-windows-app-sdk/guides/mrtcore
                                   */new Microsoft.Windows.ApplicationModel.Resources.ResourceManager().CreateResourceContext();
 }
Exemplo n.º 2
0
 private async void CreateResourceManager()
 {
     var currentResourceManager  = new Microsoft.Windows.ApplicationModel.Resources.ResourceManager();
     var currentResourceManager2 = new Microsoft.Windows.ApplicationModel.Resources.ResourceManager();
 }