public static WPFToggleButton AttachCheckBox(this WPFDataGridCell cell)
 {
     if (!(bool)cell.App.Type(typeof(WPFDataGridCellExtensions)).IsCheckBox(cell))
     {
         return(null);
     }
     return(cell.VisualTree().ByType <CheckBox>().FirstOrDefault()?.Dynamic());
 }
 public static WPFTextBox AttachTextBox(this WPFDataGridCell cell)
 {
     if (!(bool)cell.App.Type(typeof(WPFDataGridCellExtensions)).IsTextOrHyperlink(cell))
     {
         return(null);
     }
     return(cell.VisualTree().ByType <TextBox>().FirstOrDefault()?.Dynamic());
 }
        public static WPFHyperlink AttachHyperlink(this WPFDataGridCell cell)
        {
            if (!(bool)cell.App.Type(typeof(WPFDataGridCellExtensions)).IsHyperlink(cell))
            {
                return(null);
            }
            var textBlock = cell.VisualTree().ByType <TextBlock>().FirstOrDefault();

            if (textBlock == null)
            {
                return(null);
            }
            return(textBlock.LogicalTree().ByType <Hyperlink>().FirstOrDefault()?.Dynamic());
        }