or
<telerik:RadNumericUpDown Name="TopNSpinner" IsEditable="True" Minimum="1" ValueFormat="Numeric" Value="{Binding Result.TopNEventsCount, Mode=TwoWay}"/>TopNSpinner.NumberFormatInfo = new NumberFormatInfo() { NumberDecimalDigits = 0 };System.Threading.Thread.Sleep(xxxx);
RadRichTextBox textBox = new RadRichTextBox(); grid.Children.Add(textBox); textBox.ApplyTemplate(); textBox.UpdateEditorLayout(); textBox.Document = this.CreateDocument(); textBox.Print("MyDoc", PrintMode.Native); // It crash in here!IList<CheckBox> cbks = myGridView.ChildrenOfType<CheckBox>().ToList<CheckBox>();MyObject selectedProject = myGridView.SelectedItem as MyObject; int SelectedIndex = myGridView.Items.IndexOf(selectedProject);cbks[SelectedIndex].IsEnabled = True;
This works great, but except ChildrenOfType<>() only provides the rows for visible rows. I can not set EnableRowVirtualization to False.
How do I get the index of the visible row that is within the List of checkboxes (chks)?
Thanks in advance.
