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 4004200
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T08:14:38+00:00 2026-05-20T08:14:38+00:00

Ok, here is my scrollbar style. <Style x:Key={x:Type ScrollBar} TargetType={x:Type ScrollBar}> <Setter Property=Background Value=#D5E0FF

  • 0

Ok, here is my scrollbar style.

<Style x:Key="{x:Type ScrollBar}" TargetType="{x:Type ScrollBar}">       
    <Setter Property="Background" Value="#D5E0FF" />
</Style>

If I apply this, all scrollbars in my application will get affected, undoubtedly.

Now I have 2 listview(s) in my application, I need to apply this style to only a particular listview, while another one remain default scrollbar, any idea?

This is driving me crazy.

Thanks.

  • 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-20T08:14:38+00:00Added an answer on May 20, 2026 at 8:14 am

    Add the style as a resource to the ListView itself.

    <ListView>
        <ListView.Resources>
            <Style TargetType="ScrollBar">
                ...
            </Style>
        </ListView.Resources>
    </ListView>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

here is my listview <ListView android:layout_width=match_parent android:layout_height=match_parent android:id=@+id/ListView android:fastScrollEnabled=true android:divider=@null style=@drawable/listviewfastscrollstyle ></ListView> This is
I have a ScrollBar style in my project that is automatically used by all
Here's teh codez: <!DOCTYPE html> <html> <head> <title>Test</title> <style type=text/css> html, body { margin:
Here is my code : What i want is just to make scrollbar available
Here the total height of all <div> 's are 900 pixels, but the jQuery
Here's what I want to do: Given a table PeopleOutfit (id int primary key,
Using standalone SWT Scrollbars is something of a hack (using this workaround ), but
Here is nice piece of code that works fair in all browsers: http://www.imaputz.com/cssStuff/bigFourVersion.html Since
Here's the simplified html: <!DOCTYPE html> <html> <head> <script type=text/javascript> function handle() { console.log(fired);
How can I drop the CSS property ::-webkit-scrollbar from a single HTML element? In

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.