I am getting following error randomly.
cannot convert string 'Top' in attribute 'VerticalAlignment'
to object of type 'System.Windows.VerticalAlignment'.
Top is not a valid value for VerticalAlignment.
Please suggest what could be causing this error to come up and why it is so random.
<ProgressBar Margin="10" Name="PBar"
HorizontalAlignment="Left"
VerticalAlignment="Top"
Width="150" Height="20" IsIndeterminate="True">
</ProgressBar>