private Thickness ProcessUIElementPadding(GridColumnBase column)
        {
            var padLeft   = column.Padding.Left;
            var padRight  = column.Padding.Right;
            var padTop    = column.Padding.Top;
            var padBotton = column.Padding.Bottom;
            var padding   = column.ReadLocalValue(GridColumnBase.PaddingProperty);

            return(padding != DependencyProperty.UnsetValue
                           ? new Thickness(-1 + padLeft, padTop, 3 + padRight, padBotton)
                           : new Thickness(-1, 0, 3, 0));
        }
예제 #2
0
        internal override void ProcessUIElementPadding(GridColumnBase column)
        {
            var padLeft   = column.Padding.Left;
            var padRight  = column.Padding.Right;
            var padTop    = column.Padding.Top;
            var padBotton = column.Padding.Bottom;
            var padding   = column.ReadLocalValue(GridColumnBase.PaddingProperty);

#if UWP
            this.padding = padding != DependencyProperty.UnsetValue
                           ? new Thickness(3 + padLeft, 3 + padTop, 5 + padRight, 5 + padBotton)
                           : new Thickness(3, 1, 6, 6);
#else
            this.padding = padding != DependencyProperty.UnsetValue
                           ? new Thickness(3 + padLeft, 1 + padTop, 3 + padRight, 1 + padBotton)
                           : new Thickness(3, 1, 3, 1);
#endif
        }