-1

i am trying to set the verticalscrollbar visibility to be visible during a button click event. Why can't i do something like this?

before click event, XAML:

<ScrollViewer VerticalScrollBarVisibility="Hidden" Height="178.75" Width="680" Name="Scroller">

button click event in C#:

Scroller.VerticalScrollBarVisibility = Visibility.Visible;
H.B.
  • 166,899
  • 29
  • 327
  • 400
jeremychan
  • 4,309
  • 10
  • 42
  • 56

1 Answers1

1

-.-

It's the wrong enumeration:

Scroller.VerticalScrollBarVisibility =  ScrollBarVisibility.Visible;

You should really check the types of properties before assigning random stuff to it.

H.B.
  • 166,899
  • 29
  • 327
  • 400