c# - binding two VerticalScrollBars one to another -


i have 2 textboxes in control , , have in both of thems 2 verticalscrollbar. want bind verticalscrollbars between them , if 1 goes secound go etc... possible if how can ?

thanks

not real binding works:

<textbox name="scrltb1" height="100" scrollbar.scroll="scroll" scrollviewer.verticalscrollbarvisibility="visible"/> <textbox name="scrltb2" height="100" scrollbar.scroll="scroll" scrollviewer.verticalscrollbarvisibility="visible"/> 
private void scroll(object sender, scrolleventargs e) {     if (sender == scrltb1)     {         scrltb2.scrolltoverticaloffset(e.newvalue);     }     else     {         scrltb1.scrolltoverticaloffset(e.newvalue);     } } 

(this example ignores possibility of horizontal scrolling)


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -