Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6862221
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T02:38:05+00:00 2026-05-27T02:38:05+00:00

I am adding a ScrollViewer around my TreeView for 2 reasons: i want more

  • 0

I am adding a ScrollViewer around my TreeView for 2 reasons:

  1. i want more control over the way my TreeView scroll bar looks

  2. i want more control over my TreeView scroll bars position, because i want to synchronize a few tree views.

it seems that as soon as i add a ScrollView around TreeView, i lose the ability to scroll it using mouse scroller.

I guess my question is 2 part. Do i gain anything by adding my own ScrollView, and is this behavior by design?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T02:38:06+00:00Added an answer on May 27, 2026 at 2:38 am

    I don’t think either of your requirements precludes using the ScrollViewer that is within the TreeView template. You might need to re-template the TreeView to achieve your goals.

    This also sheds light on why your scrolling doesn’t work as expected. You’ve effectively got a ScrollViewer around a ScrollViewer. What you would need to do for that to work is either remove the ScrollViewer from the TreeView template, or disable it:

    <TreeView ScrollViewer.VerticalScrollBarVisibility="Disabled" ...>
    

    That said, I do think the better option in your case may be to re-template/re-style the TreeView itself.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My custom control uses a ScrollViewer and I want to determine when the user
Adding source files more than one directory away (e.g. ../../source.cpp or ../../../somewhere_else/source.cpp, vs. just
Adding more than one child to a WPF StatusBar results in poor layout with
When adding new properties to classes, I find myself typing the same things over
I've been looking to embellishing a UIScrollView by adding some kind of shadow around
So apparently I'm adding the same label over and over. I have an IBOutlet
I am adding a scroll view for whole layout. Inside that layout I am
I have a WPF RichTextBox control that I want to behave like a normal
I am using a Wpf TreeView, in which I am adding nodes at runtime.
Any way of adding ListView's bounce effect to regular scrollview? By bounce I mean

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.