Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
public DashboardHostTileView()
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