scrollbar

WPF ListBoxItem Visibility and ScrollBar

不打扰是莪最后的温柔 提交于 2019-12-13 17:05:18
问题 I was hoping to collapse certain ListBoxItems based on a property of their data context. I came up with the following (trimmed for brevity) <ListBox ItemsSource="{Binding SourceColumns}"> <ListBox.ItemContainerStyle> <Style TargetType="{x:Type ListBoxItem}"> <Style.Triggers> <DataTrigger Binding="{Binding IsDeleted}" Value="True"> <Setter Property="Visibility" Value="Collapsed"/> </DataTrigger> </Style.Triggers> </Style> </ListBox.ItemContainerStyle> <ListBox.ItemTemplate> <DataTemplate>

Datagrid scroll bar stops working

心不动则不痛 提交于 2019-12-13 16:32:34
问题 When I run the app, the vertical scroll bar works as expected. However, when I add a new line/row, the bar (control that should go up and down on the slider) doesn't slide. With the mouse wheel I can scroll up and down the list of rows, and I can click on the up and down arrows. So the scroll bar works, but not as expected. The control should slide up and down, like it does at first, but after adding that new line, it does not. I hope that is clear enough, I've searched many issues to find

How to set scroll position of rich text box control?

痞子三分冷 提交于 2019-12-13 16:08:31
问题 I am using 2 Rich Text Boxes on winforms 4 (customRTB1 and customRTB2). Both of the rtb's have same text. What I want to achieve is, when one rtb (customRTB1) is scrolled down, the other rtb (customRTB2) also should be scrolled to exactly same position as customRTB1. I attempted this: public class CustomRTB : RichTextBox { #region API Stuff [DllImport("user32.dll", CharSet = CharSet.Auto)] public static extern int GetScrollPos(IntPtr hWnd, int nBar); [DllImport("user32.dll")] public static

Python Tkinter Scrollbar Shaky Scrolling

匆匆过客 提交于 2019-12-13 15:06:04
问题 Introduction: My Python Tkinter application is designed to have a scrollbar on the side so that if the window is resized, the application can still be viewed via the scrollbar. I do this by putting a frame with all my content inside a canvas, with a scrollbar controlling the canvas. On window resize, I have a function called resizeCanvas which resizes the canvas. Problem: After I resize the window, the scrollbar sort of works but it seems to jump around and fidget like its having a seizure.

Css min-width no horizontal scroll bar is showing

血红的双手。 提交于 2019-12-13 13:22:57
问题 i've built a site and I used min-width css .body{ overflow:auto; min-width:1600px; } but when It loads on smaller resolution it don't appear a horizontal scrollbar, what should I do to make horizontal scrollbar appear? 回答1: You do not need to declare overflow if you want the scroll bar to be present as this is the default behaviour DEMO http://jsfiddle.net/kevinPHPkevin/kav7G/5/ You do need to set a height otherwise it will not work 来源: https://stackoverflow.com/questions/18855961/css-min

How do I add a margin to a CSS webkit scrollbar?

佐手、 提交于 2019-12-13 12:26:25
问题 Here's my site with the current webkit scrollbar: http://willwhitehead.com I'd like to create a gap between the scrollbar and the right edge of the screen. How do I achieve this? Thanks in advance, Will 回答1: There's yet another solution which might fit easily in everybody's project. If you use a transparent border as a margin and a box-shadow with inset to set it's color, you'd get the result you are hoping for. For instance: ::-webkit-scrollbar { width: 10px; } ::-webkit-scrollbar-track {

How to call update() method of in Angular 2 Perfect Scrollbar wrapper?

佐手、 提交于 2019-12-13 12:20:25
问题 I try to implement Perfect Scrollbar to my Angular 2 Application and use Angular 2 Perfect Scrollbar wrapper: https://github.com/zefoy/angular2-perfect-scrollbar If i have large content at application start moment my scrollbar appears and works normally. But if my content grows dynamically - scrollbar is not appear. I think I have to call the update() method of Scrollbar object when content is added. How can i call Perfect Scrollbar methods from Angular 2 components? 回答1: One can do it like

How to set a width to turn on browser scroll bars and stop collapsing the elements on the page

拥有回忆 提交于 2019-12-13 08:10:22
问题 I'm creating a banner at the top of my page. It's built using 3 banners that will have content. When I horizontally shrink the browser window, my green banner component(on the right) moves with the edge of the screen eventually overlapping or going under my blue banner component (on the left). How do I set a browser(body?) width at which the banner on the right stops moving with the shrinking browser and instead enable the browser scroll bars so the page stops shrinking? If there's an

Send scroll event to form

百般思念 提交于 2019-12-13 06:36:21
问题 In my windows forms application it occurs frequently that a user scrolls through a panel and is then blocked by a richtextbox . I would like to catch the scroll event and send it to the panel when the richtextbox vertical scrollbar is not visible. I already found the code to check if the vertical scrollbar is visible in this thread: https://social.msdn.microsoft.com/Forums/en-US/a3facad3-0eae-4610-9a63-1b6c7a718bf5/how-do-you-determine-if-vertical-scroll-bar-is-visible-in-richtextbox?forum

How to remove the extra space after table heading, in datatables which has scrollbar and filter?

巧了我就是萌 提交于 2019-12-13 06:25:28
问题 I'm using datatables.net library. There is a gap between table header and the table body, if I add scrollbar. Is there any way to remove it? Also, is there a way to move the searchbox to the left, and remove the text "Search:", and instead add it as a place holder within the textbox? 回答1: I'm not familiar with that library but I do know that one can easily modify CSS to achieve the desired layout. Please check their documentation about styling http://datatables.net/styling/ 来源: https:/