Show / Hide

	//Hide it
	MyPageObject.Visibility = Visibility.Collapsed;
	//Show it
	MyPageObject.Visibility = Visibility.Visible;

Enable (allo user to interact with)

	MyPageObject.IsEnabled = false;

Change XML Properties

	myImage.SetValue(Canvas.LeftProperty, "10");
	myImage.SetValue(Canvas.TopProperty, "10");

Get XAML element by name stored in a string

	<TextBlock x:Name="mytextblock" />

	TextBlock txt = this.FindName("mytextblock") as TextBlock;
Feel free to comment if you can add help to this page or point out issues and solutions you have found. I do not provide support on this site, if you need help with a problem head over to stack overflow.

Comments

Your email address will not be published. Required fields are marked *