Hello... Can i able to check scrollbar is visible in the multilayer? now i am check with "multilayer.Scrollingposition.x >0, multilayer.Scrollingposition.y >0) .But its correct in zooming.. if i change the workspacewidth or height its not correct... How can i do this?
I have attached sample.. which is a button enabled when the scroll bar is visible , to check the visibility of scroll bar is possible only changing the zoom...
ScrollingPosition property gets the current position of the scroll bar. When you change width and height of the workspace, scroll bar is shown, but it has ScrollingPosition.X = 0, and ScrollingPosition.Y = 0 (the start coordinates (0; 0)). If you need to check whether scroll bar is visible, you can change its horizontal or vertical position a bit. Then ScrollingPosition.X will not be equal to zero.