Hello everybody, have a nice day !
I'm finding about listbox on WP7. "Listbox (child) "into "listbox (parent)", listbox "databinding" from the "observerCollection" class. If you see that, please tell for me, thank you !
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Ken NguyenPosted Oct 20, 2011, 10:22 PM
http://i683.photobucket.com/albums/vv194/only_forever_love_9x/1-3.jpg
http://i683.photobucket.com/albums/vv194/only_forever_love_9x/2-3.jpg
http://i683.photobucket.com/albums/vv194/only_forever_love_9x/3-2.jpg
How can i do ? I don't have any ideas about .xaml and xaml.cs code. I need help ! How can I save Iolated Storage - Read and Save "Find,News,ListBox" in Page1
MyDoc.cs
public class MyDoc : INotifyPropertyChanged
{
public int Id
{
get;
set;
}
public MyDoc()
{
}
private string _private;
public string Private
{
get
{
return _private;
}
set
{
if (_private != value)
{
_private = value;
NotifyPropertyChanged("Private");
}
}
}
private string _public;
public string Public
{
get
{
return _public;
}
set
{
if (_public != value)
{
_public = value;
NotifyPropertyChanged("Public");
}
}
}
public event PropertyChangedEventHandler PropertyChanged;
private void NotifyPropertyChanged(String propertyName)
{
PropertyChangedEventHandler handler = PropertyChanged;
if (null != handler)
{
handler(this, new PropertyChangedEventArgs(propertyName));
}
}
}
MyFind
public class MyFind : INotifyPropertyChanged
{
public int Id
{
get;
set;
}
public MyFind()
{
}
private string _find;
public string Find
{
get
{
return _find;
}
set
{
if (_find != value)
{
_find = value;
NotifyPropertyChanged("Find");
}
}
}
private string _news;
public string News
{
get
{
return _news;
}
set
{
if (_news != value)
{
_news = value;
NotifyPropertyChanged("News");
}
}
}
private ObservableCollection
public ObservableCollection
{
get
{
if (_list == null)
{
_list = new ObservableCollection
}
return _list;
}
set
{
if (_list != value)
{
_list = value;
NotifyPropertyChanged("List");
}
}
}
public event PropertyChangedEventHandler PropertyChanged;
private void NotifyPropertyChanged(String propertyName)
{
PropertyChangedEventHandler handler = PropertyChanged;
if (null != handler)
{
handler(this, new PropertyChangedEventArgs(propertyName));
}
}
}