.net - Issue with scrollviewer and canvas -
.net - Issue with scrollviewer and canvas -
i have custom canvas command sits within scrollviewer - have implemented drag, drop , move items on canvas , overridden measureoverride when move item around on canvas size reflects changes if move item beyond visible portion of canvas resize accommodate moved item , scrollbars show appropriately.
however if bring item view using scrollbars start move item out 1 time again scrollbars go bit haywire.
it's rather poor explanation of problem afraid not sure how else set contain plenty info point me in right direction.
yes right, more explanation of problem required. although in situation faced lot of issues canvas , scroll-viewer, @ question problems faced , how solved -
scrollbars not visible after changing positions of controls within canvas
i had utilize base.invalidatemeasure() explicitly after each operation refresh canvas , create scrollbars visible.
.net wpf canvas scrollviewer
Comments
Post a Comment