Browse Source

Update ListBox.xaml

Symbai 5 years ago
parent
commit
7c06fc3d3d
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/Avalonia.Themes.Default/ListBox.xaml

+ 4 - 1
src/Avalonia.Themes.Default/ListBox.xaml

@@ -7,7 +7,7 @@
   <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>
   <Setter Property="Template">
     <ControlTemplate>
-      <Border BorderBrush="{TemplateBinding BorderBrush}"
+      <Border Name="border" BorderBrush="{TemplateBinding BorderBrush}"
               BorderThickness="{TemplateBinding BorderThickness}">
         <ScrollViewer Name="PART_ScrollViewer"
                       Background="{TemplateBinding Background}"
@@ -23,4 +23,7 @@
       </Border>
     </ControlTemplate>
   </Setter>
+    <Style Selector="ComboBox:disabled /template/ Border#border">
+        <Setter Property="Opacity" Value="{DynamicResource ThemeDisabledOpacity}" />
+    </Style>
 </Style>