Skip to content

Instantly share code, notes, and snippets.

@georgechond94
Created February 20, 2016 22:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save georgechond94/df0615114ad8203a2e0b to your computer and use it in GitHub Desktop.
Save georgechond94/df0615114ad8203a2e0b to your computer and use it in GitHub Desktop.
public MainPage()
{
this.InitializeComponent();
this.DataContext = (Application.Current as App).ChatVM;
}
private void send_Click(object sender, RoutedEventArgs e)
{
(Application.Current as App).Broadcast(new ChatMessage {Username = name.Text, Message = text.Text});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment