I hereby claim:
- I am pabloportugues on github.
- I am bytemybits (https://keybase.io/bytemybits) on keybase.
- I have a public key ASDKhAxZxMe2A1J2v9sUi6fVhAN1pjDG5DQ6TH5UZOltFQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
/* In a View */ | |
// Register the Messenger | |
private void ControlLoaded(object sender, RoutedEventArgs e) { | |
Messenger.Default.Register<NotificationMessage>(this, NotificationReceived); | |
} | |
// Unregister the Messenger | |
private void ControlUnloaded(object sender, RoutedEventArgs e) { | |
Messenger.Default.Unregister<NotificationMessage>(this, NotificationReceived); |
// For a ViewModel file | |
await Windows.ApplicationModel.Core.CoreApplication.MainView.CoreWindow.Dispatcher.RunAsync(CoreDispatcherPriority.Normal, async () => { | |
// Code goes here | |
}); | |
// For a View file | |
await this.Dispatcher.RunAsync(Windows.UI.Core.CoreDispatcherPriority.Normal, async () => { | |
// Code goes here | |
}); |
using Windows.ApplicationModel.Resources; | |
namespace MyApp { | |
/// <summary> | |
/// Class responsible for retrieving values for a given key with regards for Localization | |
/// </summary> | |
public class LocalizationHelper { | |
private ResourceLoader _resourceLoader = null; |
using System; | |
using System.Threading.Tasks; | |
using Windows.UI.Xaml.Controls; | |
using Windows.Web.Http; | |
namespace TestApp.Utils { | |
/// <summary> | |
/// This is used to check for an url validity before navigating to it | |
/// and halt navigation in the case validation fails or is false |
using System; | |
using System.Threading.Tasks; | |
namespace MyProject { | |
public class MergeDictionariesTool { | |
public MergeDictionariesTool() { | |
ResourceDictionary mainDictionary = new ResourceDictionary(); | |
// Get the app main dictionary | |
mainDictionary.Source = new Uri("ms-appx", UriKind.RelativeOrAbsolute); |