Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
215
I CAN'T BINDING!!!
posted

private void CreaTextBox()
{
TextBox txtInputData = new TextBox();
//txtInputData.Visibility = Visibility.Hidden;
txtInputData.Name = "TextWithUrl";

txtInputData.TextWrapping = TextWrapping.Wrap;
txtInputData.VerticalScrollBarVisibility = ScrollBarVisibility.Hidden;
txtInputData.AcceptsReturn = true;
txtInputData.MouseLeave += new MouseEventHandler(Change_LeaveTextbox);
Stack.Children.Add(txtInputData);

RichTextBox txtOutPutData = new RichTextBox();
//txtOutPutData.Visibility = Visibility.Visible;
txtOutPutData.Name = "TextLinkUrl";
txtOutPutData.IsReadOnly = true;
txtOutPutData.IsDocumentEnabled = true;
txtOutPutData.SetValue(TextBox.TextProperty, "TextWithUrl");
//txtOutPutData.SetBinding(TextBox.TextProperty, "TextWithUrl");
txtOutPutData.PreviewMouseLeftButtonDown += new MouseButtonEventHandler(TextLinkUrl_MouseLeftButtonDown);
Stack.Children.Add(txtOutPutData);
}

why the txtOutData, IS NOT BINDING????

Parents Reply Children
No Data