textBlock.Text = "Text";
This is my code, and it shows no errors.
but when I run it, I get a NullReferenceException
Object reference not set to an instance of an object.
This statement is inside a ValueChanged event of a Slider, should it matter.