Instantly share code, notes, and snippets.

@bpatra /gist:9516759
Last active Aug 29, 2015

Embed
What would you like to do?
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