diff --git a/src/Avalonia.Controls.ColorPicker/ColorPreviewer/ColorPreviewer.Properties.cs b/src/Avalonia.Controls.ColorPicker/ColorPreviewer/ColorPreviewer.Properties.cs
index 903b5fb52b..f90f02551d 100644
--- a/src/Avalonia.Controls.ColorPicker/ColorPreviewer/ColorPreviewer.Properties.cs
+++ b/src/Avalonia.Controls.ColorPicker/ColorPreviewer/ColorPreviewer.Properties.cs
@@ -41,7 +41,7 @@ namespace Avalonia.Controls.Primitives
///
public bool ShowAccentColors
{
- get => (bool)this.GetValue(ShowAccentColorsProperty);
+ get => GetValue(ShowAccentColorsProperty);
set => SetValue(ShowAccentColorsProperty, value);
}
}
diff --git a/src/Avalonia.Controls.ColorPicker/ColorSpectrum/ColorSpectrum.cs b/src/Avalonia.Controls.ColorPicker/ColorSpectrum/ColorSpectrum.cs
index fe9a2fac43..9b2459265d 100644
--- a/src/Avalonia.Controls.ColorPicker/ColorSpectrum/ColorSpectrum.cs
+++ b/src/Avalonia.Controls.ColorPicker/ColorSpectrum/ColorSpectrum.cs
@@ -20,7 +20,6 @@ namespace Avalonia.Controls.Primitives
///
/// A two dimensional spectrum for color selection.
///
- [TemplatePart("PART_ColorNameToolTip", typeof(ToolTip))]
[TemplatePart("PART_InputTarget", typeof(Canvas))]
[TemplatePart("PART_LayoutRoot", typeof(Panel))]
[TemplatePart("PART_SelectionEllipsePanel", typeof(Panel))]
@@ -60,7 +59,6 @@ namespace Avalonia.Controls.Primitives
private Ellipse? _spectrumOverlayEllipse;
private Canvas? _inputTarget;
private Panel? _selectionEllipsePanel;
- private ToolTip? _colorNameToolTip;
// Put the spectrum images in a bitmap, which is then given to an ImageBrush.
private WriteableBitmap? _hueRedBitmap;
@@ -117,7 +115,6 @@ namespace Avalonia.Controls.Primitives
UnregisterEvents(); // Failsafe
- _colorNameToolTip = e.NameScope.Find("PART_ColorNameToolTip");
_inputTarget = e.NameScope.Find
-
+
+
-
-
-
-
+ VerticalAlignment="Stretch" />
+
+
+