public partial class App : Application
{
private List<Document> documents = new List<Document>();
public List<Document> Documents
{
get { return documents; }
set { documents = value; }
}
}
<StackPanel>
<Button Click="cmdCreate_Click" Margin="10,10,10,5" Name="cmdCreate">Click to Create a Document</Button>
<Button Click="cmdUpdate_Click" Margin="10,5,10,10" Name="cmdUpdate">Click to Refresh the Documents</Button>
</StackPanel>