Created
May 5, 2013 08:35
-
-
Save damirarh/5520143 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
public ViewModel() | |
{ | |
Init(); | |
} | |
private async void Init() | |
{ | |
var file = await Package.Current.InstalledLocation.GetFileAsync(@"Assets\Text.txt"); | |
Text = await FileIO.ReadTextAsync(file); | |
} | |
public string Text | |
{ | |
get { return _text; } | |
set | |
{ | |
if (value == _text) return; | |
_text = value; | |
OnPropertyChanged(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment