| | |
| | | public static readonly DependencyProperty BorderSpaceProperty = |
| | | DependencyProperty.RegisterAttached("BorderSpace", typeof(int), typeof(Grid), new PropertyMetadata(0, OnShowBorderChanged)); |
| | | |
| | | public static string GetInnerBorderIgnore(DependencyObject obj) |
| | | { |
| | | return (string)obj.GetValue(InnerBorderIgnoreProperty); |
| | | } |
| | | public static void SetInnerBorderIgnore(DependencyObject obj, string value) |
| | | { |
| | | obj.SetValue(InnerBorderIgnoreProperty, value); |
| | | } |
| | | public static readonly DependencyProperty InnerBorderIgnoreProperty = |
| | | DependencyProperty.RegisterAttached("InnerBorderIgnore", typeof(string), |
| | | typeof(Grid), new PropertyMetadata("None", OnShowBorderChanged)); |
| | | |
| | | |
| | | private static void OnShowBorderChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) |
| | |
| | | |
| | | int width = 1; |
| | | |
| | | string baseData = GetInnerBorderIgnore(grid); |
| | | string baseData = "None"; |
| | | HashSet<string> data = new HashSet<string>(baseData.Split(',')); |
| | | bool ignoreTop = data.Contains("All") || data.Contains("Top"), |
| | | ignoreBottom = data.Contains("All") || data.Contains("Bottom"), |
| | |
| | | int col = i % columnCount; |
| | | var child = grid.Children[i]; |
| | | |
| | | string baseData = GetInnerBorderIgnore(grid); |
| | | string baseData = "None"; |
| | | HashSet<string> data = new HashSet<string>(baseData.Split(',')); |
| | | bool ignoreTop = data.Contains("All") || data.Contains("Top"), |
| | | ignoreBottom = data.Contains("All") || data.Contains("Bottom"), |