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));
        }
Пример #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());
        }
Пример #3
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();
 }