This commit is contained in:
NaBian 2020-05-10 12:08:54 +08:00
parent 132670dba6
commit 66ec1b06fe
3 changed files with 4 additions and 1 deletions

View File

@ -122,7 +122,9 @@ namespace HandyControl.Controls
private void HideAdornerElement()
{
if (_adornerContainer == null) return;
var layer = AdornerLayer.GetAdornerLayer(Target);
if (layer != null)
{
layer.Remove(_adornerContainer);

View File

@ -23,7 +23,7 @@
<Color x:Key="ReverseTextColor">#212121</Color>
<Color x:Key="TextIconColor">White</Color>
<Color x:Key="BorderColor">#3f3f46</Color>
<Color x:Key="BorderColor">#202020</Color>
<Color x:Key="SecondaryBorderColor">#555555</Color>
<Color x:Key="BackgroundColor">#eeeeee</Color>
<Color x:Key="RegionColor">#1c1c1c</Color>

View File

@ -7,6 +7,7 @@
</ResourceDictionary.MergedDictionaries>
<Style x:Key="PinBoxBaseStyle" TargetType="controls:PinBox">
<Setter Property="Focusable" Value="False"/>
<Setter Property="ItemMargin" Value="4,0"/>
<Setter Property="ItemWidth" Value="{StaticResource DefaultControlHeight}"/>
<Setter Property="ItemHeight" Value="{StaticResource DefaultControlHeight}"/>