tag:blogger.com,1999:blog-6822536077160579260.post1560515979637268519..comments2023-06-05T14:25:52.227+01:00Comments on Sound Code: Styling a ListBox in Silverlight (Part 2 - Scrollbars)Anonymoushttp://www.blogger.com/profile/17900587357903273800noreply@blogger.comBlogger10125tag:blogger.com,1999:blog-6822536077160579260.post-43657949290021467032013-09-25T07:15:09.073+01:002013-09-25T07:15:09.073+01:00Hello,
How to make the vertical scrollbar shorter...Hello, <br />How to make the vertical scrollbar shorter than the content?<br />I tried using Margin="0,15,0,15" for the "VerticalRoot" Grid. But, the side-effect is that the thumb actually pushes and scrolls the bottom arrow ??<br /><br />-- Al<br />microspec2k1@hotmail.comAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-6822536077160579260.post-38381443110214264232013-09-25T07:10:42.497+01:002013-09-25T07:10:42.497+01:00How to make the vertical scrollbar shorter than th...How to make the vertical scrollbar shorter than the content.<br />I tried using Margin="0,15,0,15" for the "VerticalRoot" Grid. By the side-effect is he thumb actually pushes and scrolls the bottom arrow ??Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6822536077160579260.post-26649620634722887132010-06-11T05:17:01.863+01:002010-06-11T05:17:01.863+01:00Hi Valeris, can i use in Siverlight4?
thank you.Hi Valeris, can i use in Siverlight4?<br /><br />thank you.spam-devhttp://www.devsolution.netnoreply@blogger.comtag:blogger.com,1999:blog-6822536077160579260.post-3809413355210500572009-12-24T06:49:44.032+00:002009-12-24T06:49:44.032+00:00Thanks!
It has given me a breakthrough I was look...Thanks!<br /><br />It has given me a breakthrough I was looking for to get my list box a custom scroll bar.<br /><br /><br />Thanks again!<br /><br />Nice Article.Pankaj K Snoreply@blogger.comtag:blogger.com,1999:blog-6822536077160579260.post-78302171850633987112008-05-29T11:51:00.000+01:002008-05-29T11:51:00.000+01:00hi nuno, the workaround would be to create two ide...hi nuno, the workaround would be to create two identical styles - one for the vertical scrollbar, and one for the horizontal scrollbar. Then in the vertical scrollbar template, simply remove any visible elements from the (unused) horizontal scrollbar's template.Anonymoushttps://www.blogger.com/profile/17900587357903273800noreply@blogger.comtag:blogger.com,1999:blog-6822536077160579260.post-57311723398317748052008-05-29T11:43:00.000+01:002008-05-29T11:43:00.000+01:00Hi Mark,Great tutorial.One question. The vertical ...Hi Mark,<BR/><BR/>Great tutorial.<BR/><BR/>One question. The vertical scroolbar bug. Do you have any workaround for it while the next beta is not available?<BR/><BR/>Thx,<BR/><BR/>NunoAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-6822536077160579260.post-78810028667111595362008-05-08T16:12:00.000+01:002008-05-08T16:12:00.000+01:00Hi Valerie,the scrollbar bug is annoying, but it i...Hi Valerie,<BR/>the scrollbar bug is annoying, but it is claimed that it will be fixed in the next beta of Silverlight, so I am just hanging on for the moment. I'm hoping we'll see another beta in the next month or soAnonymoushttps://www.blogger.com/profile/17900587357903273800noreply@blogger.comtag:blogger.com,1999:blog-6822536077160579260.post-31409297267806781482008-05-08T16:03:00.000+01:002008-05-08T16:03:00.000+01:00The only way I was able to get the horizontal scro...The only way I was able to get the horizontal scrollbar artifact to go away was to copy the entire ScrollBarStyle1 and rename the copied style, then in one of them set the HorizontalRootElement's Visibility="Collapsed" (leaving the VerticalRootElement visible) and in the other style do the opposite. Then I tell the scrollbars in the ScrollViewerStyle which style they should use, accordingly.<BR/><BR/>I tried to "clean up" the styles by removing some unnecessary stuff (but leaving both the horizontal and vertical parts in both styles, just emptying out the parts that weren't being used), and it was throwing nasty Null pointer errors. <BR/><BR/>Do you have any insight on how to remove some of the redundancy in the styles, to get around this bug and not have so much duplication?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6822536077160579260.post-64072594184084045542008-05-07T23:43:00.000+01:002008-05-07T23:43:00.000+01:00Hrm... seems as soon as I posted I realized that ...Hrm... seems as soon as I posted I realized that makes the horizontal scroll bar disappear (but not the vertical).Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6822536077160579260.post-11370910859129408632008-05-07T23:36:00.000+01:002008-05-07T23:36:00.000+01:00Great tutorial, it helped me make a beautiful list...Great tutorial, it helped me make a beautiful listbox. I did figure out why the horizontal element was not being collapsed for vertical scrollbars, but was for horizontal... You need to set Visibility="Collapsed" for <B>both</B> the HorizontalRootElement and VerticalRootElement Grids in the style. Then everything works great.Anonymousnoreply@blogger.com