ChampionshipBetView
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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