将浮动工具栏使用新控件

This commit is contained in:
PrefacedCorg
2026-04-11 17:18:51 +08:00
parent bb82eb4891
commit dbac80509a
3 changed files with 11 additions and 2 deletions
@@ -43,6 +43,16 @@ namespace Ink_Canvas.Controls
public GeometryDrawing GeometryDrawing => IconGeometryInternal;
public static readonly DependencyProperty IconBrushProperty = DependencyProperty.Register(
nameof(IconBrush), typeof(Brush), typeof(ToolbarImageButton),
new PropertyMetadata(null, (d, e) => ((ToolbarImageButton)d).IconGeometryInternal.Brush = (Brush)e.NewValue));
public Brush IconBrush
{
get => (Brush)GetValue(IconBrushProperty);
set => SetValue(IconBrushProperty, value);
}
public new Brush Background
{
get => ButtonPanel.Background;