提交记录修改UI/Controls/Charts/Charts.cs+9 −6看文件
| @@ -571,13 +571,16 @@ namespace UI.Controls.Charts | ||
| 571 | 571 | Render(); |
| 572 | 572 | } |
| 573 | 573 | |
| 574 | 删除: var parent = VisualTreeHelper.GetParent(this); | |
| 575 | 删除: while (!(parent is System.Windows.Window)) | |
| 574 | 新增: if (ChartsType == ChartsType.HorizontalA && IsSearch) | |
| 576 | 575 | { |
| 577 | 删除: parent = VisualTreeHelper.GetParent(parent); | |
| 576 | 新增: var parent = VisualTreeHelper.GetParent(this); | |
| 577 | 新增: while (!(parent is System.Windows.Window)) | |
| 578 | 新增: { | |
| 579 | 新增: parent = VisualTreeHelper.GetParent(parent); | |
| 580 | 新增: } | |
| 581 | 新增: var page = parent as System.Windows.Window; | |
| 582 | 新增: page.SizeChanged += Page_SizeChanged; | |
| 578 | 583 | } |
| 579 | 删除: var page = parent as System.Windows.Window; | |
| 580 | 删除: page.SizeChanged += Page_SizeChanged; | |
| 581 | 584 | } |
| 582 | 585 | |
| 583 | 586 | private void _typeColumnCanvas_SizeChanged(object sender, SizeChangedEventArgs e) |
| @@ -1193,7 +1196,7 @@ namespace UI.Controls.Charts | ||
| 1193 | 1196 | colValueRect.Height = value / maxValue * canvasHeight; |
| 1194 | 1197 | colValueRect.Fill = UI.Base.Color.Colors.GetFromString(colColor); |
| 1195 | 1198 | colValueRect.RadiusX = 4; |
| 1196 | 删除: colValueRect.RadiusY= 4; | |
| 1199 | 新增: colValueRect.RadiusY = 4; | |
| 1197 | 1200 | Canvas.SetLeft(colValueRect, i * columnBorderWidth + margin); |
| 1198 | 1201 | Canvas.SetBottom(colValueRect, colNameHeight); |
| 1199 | 1202 | |

