public static Task SizeToFitAsync(
            this IWpfDifferenceViewer diffViewer,
            IThreadingContext threadingContext,
            double minWidth = 400.0,
            CancellationToken cancellationToken = default
            )
        {
            var helper = new SizeToFitHelper(threadingContext, diffViewer, minWidth);

            return(helper.SizeToFitAsync(cancellationToken));
        }
Esempio n. 2
0
        public static Task SizeToFitAsync(this ICocoaDifferenceViewer diffViewer, IThreadingContext threadingContext, double minWidth = 400.0)
        {
            var helper = new SizeToFitHelper(threadingContext, diffViewer, minWidth);

            return(helper.SizeToFitAsync());
        }
 public static void SizeToFit(this IWpfDifferenceViewer diffViewer, double minWidth = 400.0)
 {
     var helper = new SizeToFitHelper(diffViewer, minWidth);
     helper.SizeToFit();
 }
        public static void SizeToFit(this IWpfDifferenceViewer diffViewer, double minWidth = 400.0)
        {
            var helper = new SizeToFitHelper(diffViewer, minWidth);

            helper.SizeToFit();
        }
Esempio n. 5
0
        public static Task SizeToFitAsync(this IWpfDifferenceViewer diffViewer, double minWidth = 400.0)
        {
            var helper = new SizeToFitHelper(diffViewer, minWidth);

            return(helper.SizeToFitAsync());
        }
 public static Task SizeToFitAsync(this IWpfDifferenceViewer diffViewer, double minWidth = 400.0)
 {
     var helper = new SizeToFitHelper(diffViewer, minWidth);
     return helper.SizeToFitAsync();
 }