When you need to pass sender and e to the method (e.g. a page control event) You can use null
Category: Controls General
Get Reference To A xaml Control
Getting calling controls name
Visibility
Setting control to visdible or not txtMyTextBox.Visibility = Visibility.Collapsed; txtMyTextBox.Visibility = Visibility.Visible;