我今天来找你是因为我不知道如何在网格视图中进行多选绑定。今天我知道如何制作单曲并获得结果,但我不知道如何制作多选。你有什么想法 ?
这是我的代码:
public sealed partial class Base1 : ApplicationName.Common.LayoutAwarePage, INotifyPropertyChanged
{
private ObservableCollection<Base> projects;
public ObservableCollection<Base> Projects
{
get { return projects; }
set
{
projects = value;
NotifyPropertyChanged();
}
}
private Base selectedProject;
public Base SelectedProject
{
get {
return selectedProject;
}
set {
selectedProject = value;
NotifyPropertyChanged();
}
}
public event PropertyChangedEventHandler PropertyChanged;
private void NotifyPropertyChanged([CallerMemberName] string propertyname = "")
{
if (PropertyChanged != null)
{
PropertyChanged(this, new PropertyChangedEventArgs(propertyname));
}
}