I cannot set the Button.Visibility = Visibility.Collapsed on any of my buttons.
Below is the xaml
<Button x:Name="createPageButton" Content="Create Page" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="740,75,0,0" Height="61" Width="175" FontSize="24" FontWeight="Bold" Click="CreatePageButton_Click" />
<Button x:Name="TestButton" Content="Button" HorizontalAlignment="Left" Margin="1699,705,0,0" VerticalAlignment="Top" Visibility="Collapsed"/>
In my code behind I try to set the Visibility property.
TestButton.Visibility = Visibility.Visible;
I get the following error msg.
Error CS0176 Member 'Visibility.Visible' cannot be accessed with an instance reference; qualify it with a type name instead