locked
adding standalone Scroll

    Question

  • Hello, I wasn't able to add standalone ScrollBar control to my Metro app window today.

    My code snippet is similar to this one:

    <ScrollBar x:Name="VerticalScrollBar" Maximum="2000"
    Margin="1,0,0,0"
    Orientation="Vertical"
    Visibility="Visible"
    HorizontalAlignment="Right"/>

    When I run my app, I can't see it as well :( \

    Any ideas? How I can add standalone ScrollBar to my content without ScrollView container? I use it for my DIrectX app, so I can't have any containers, I want to  manage it manually...

     
    Tuesday, July 17, 2012 8:26 AM

Answers

  • Hello,

     

    I think you forget add a property IndicatorMode in scrollbar. Please follow these codes.

     

     
     <ScrollBar HorizontalAlignment="Left" Margin="330,420,0,0" VerticalAlignment="Top" Width="259" IndicatorMode="MouseIndicator">

    Best regards,

    Jesse



    Jesse Jiang [MSFT]
    MSDN Community Support | Feedback to us

    Wednesday, July 18, 2012 7:30 AM

All replies

  • Hello,

     

    I think you forget add a property IndicatorMode in scrollbar. Please follow these codes.

     

     
     <ScrollBar HorizontalAlignment="Left" Margin="330,420,0,0" VerticalAlignment="Top" Width="259" IndicatorMode="MouseIndicator">

    Best regards,

    Jesse



    Jesse Jiang [MSFT]
    MSDN Community Support | Feedback to us

    Wednesday, July 18, 2012 7:30 AM
  • Oh, nice! Why they don't use it by default*? 
    Wednesday, July 18, 2012 12:22 PM