Skip to content

Instantly share code, notes, and snippets.

@anaisbetts
Created February 7, 2013 03:21
Show Gist options
  • Save anaisbetts/4728130 to your computer and use it in GitHub Desktop.
Save anaisbetts/4728130 to your computer and use it in GitHub Desktop.
public DashboardHostTileView()
{
InitializeComponent();
this.OneWayBind(ViewModel, x => x.Model.Title, x => x.Title.Text);
this.OneWayBind(ViewModel, x => x.UserAndOrgTiles, x => x.UserAndOrgTiles.ItemsSource);
this.BindCommand(ViewModel, x => x.ShowLoginCommand, x => x.ShowLoginCommand);
// Bind SelectedItem of ListBox to the ViewModel
this.WhenAny(x => x.UserAndOrgTiles.SelectedItem, x => x.Value)
.BindTo(this, x => x.ViewModel.SelectedOrganizationTile);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment