private static void OnRowCountChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            ByteArrayControl bac = (ByteArrayControl)d;

            bac.ResizeContent();
            bac.SetupText();
        }
        private static void OnSourceChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            ByteArrayControl bac = (ByteArrayControl)d;

            bac.OpenStream(e.NewValue);
            bac.ResizeContent();
            bac.SetupText();
        }