修复 OptionButton 线段绘制位移问题

修复 OptionButton 线段绘制位移问题,之前位移计算错误
This commit is contained in:
polarboy 2024-08-05 11:44:19 +08:00
parent 55c286fd6c
commit f5f45c5965

View File

@ -264,7 +264,7 @@ public class OptionButtonGroup : TemplatedControl, ISizeTypeAware, IControlCusto
}
if (i != Options.Count - 1) {
var offsetX = optionButton.Bounds.Right;
var offsetX = optionButton.Bounds.Right - borderThickness.Left / 2;
var startPoint = new Point(offsetX, 0);
var endPoint = new Point(offsetX, Bounds.Height);
using var optionState = context.PushRenderOptions(new RenderOptions()