title: How do i manipulate the data templates inside listbox in uwp
body: <p>I am making a chat application using XAML in UWP.The side panel is consisting of users. like this.</p>
  
  <p><a href="https://i.stack.imgur.com/YXK7W.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YXK7W.png" alt="enter image description here"></a></p>
  
  <p>Everything is in Listbox in which I have this template that consists <strong>one ellipse</strong> as a circle which is like <strong>an indicator</strong>,<strong>one user image</strong>,<strong>textblocks</strong> and one toggle switch.I have to give states to the toggle switch in on the state it should change the green color of circle and make it red.</p>
  
  <p>I want to give this functionality in code c# in MainPage.cs. I made the object of toggle in toggled Event Handler but I am not able to access the other elements inside the data template like ellispse,textblock.
  What is the other alternative way of doing this?  </p>
  
  <p><strong><em>NOTE</em></strong>: It has to be in listbox because I want to use the same template for every user.</p>