- Where Developers Learn, Share, & Build Careers


I want to put two usercontrols in tabcontrol, but when I click on a button, usercontrol will load the data < / P>

  & lt; Button click = "button_click_1" /> & Lt; Button click = "Button_Click_2" /> & Lt; TabControl & gt; & Lt; Itemscontrol name = "tab1" & gt; & Lt; Local: UserControl1 loaded = "UserControl1_Loaded" & gt; & Lt; / Local: UserControl1 & gt; & Lt; / ItemsControl> & Lt; Itemscontrol name = "tab2" & gt; & Lt; Local: UserControl1 loaded = "UserControl2_Loaded" & gt; & Lt; / Local: UserControl1 & gt; & Lt; / ItemsControl> & Lt; / TabControl & gt;    

  private class TabSource {private string dataForTab = string.empty; Public string DataForTab {get {return dataForTab; }} Public Zero GetRealData () {dataForTab = "Actual Data"; NotifyPropertyChanged ("DataForTab"); }} Public Button_Click_2 (...) {MyTabSource.GetRealData (); }    

Comments

Popular posts from this blog

java - NullPointerException for a 2d Array -

python - Assemble mpeg file unable to play in mediaplayer -

c# - NameSpace Manager or XsltContent to parse aspx page -