wpf label content nullpointerexception code example Example: wpf label content nullpointerexception H3OConcentrationPower.Content = (pH * (-1)).ToString();