Skip to content

Instantly share code, notes, and snippets.

@bpatra
Last active August 29, 2015 13:57
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save bpatra/9516759 to your computer and use it in GitHub Desktop.
ChampionshipBetView
<UserControl x:Class="MvvMSample.Views.ChampionshipBetView" ... >
<UserControl.Resources>
<!-- go to github.com/bpatra/MvvMSample for complete implementation-->
</UserControl.Resources>
<UserControl.DataContext>
<Binding Path="ChampionshipBetViewModel" Source="{StaticResource Locator}" />
</UserControl.DataContext>
<StackPanel>
<ListView ItemsSource="{Binding FootballClubs}"
dd:DragDrop.IsDragSource="True"
dd:DragDrop.IsDropTarget="True"
dd:DragDrop.DropHandler="{Binding}">
<ListView.View>
<GridView AllowsColumnReorder="false">
<GridViewColumn DisplayMemberBinding="{Binding Path=FullName}" Header="Name"/>
<GridViewColumn DisplayMemberBinding="{Binding Path=NickName}" Header="Nickname"/>
<GridViewColumn DisplayMemberBinding="{Binding Path=CreationYear}" Header="Creation year"/>
</GridView>
</ListView.View>
</ListView>
<Button Command="{Binding ClickSave}" Content="Save"></Button>
</StackPanel>
</UserControl>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment