ControlTemplate in WPF —— ComboBox
阅读原文时间:2023年07月14日阅读:2








      <LinearGradientBrush StartPoint="0,0"  
                           EndPoint="0,1">  
        <LinearGradientBrush.GradientStops>  
          <GradientStopCollection>  
            <GradientStop Color="{DynamicResource ControlLightColor}" />  
            <GradientStop Color="{DynamicResource ControlMediumColor}"  
                          Offset="1.0" />  
          </GradientStopCollection>  
        </LinearGradientBrush.GradientStops>  
      </LinearGradientBrush>

    </Border.Background>  
  </Border>  
  <Border Grid.Column=""  
          CornerRadius="2,0,0,2"  
          Margin="" >  
      <Border.Background>  
          <SolidColorBrush Color="{DynamicResource ControlLightColor}"/>  
      </Border.Background>  
  </Border>  
  <Path x:Name="Arrow"  
        Grid.Column=""  
        HorizontalAlignment="Center"  
        VerticalAlignment="Center"  
        Data="M 0 0 L 4 4 L 8 0 Z" >  
      <Path.Fill>  
          <SolidColorBrush Color="{DynamicResource GlyphColor}"/>  
      </Path.Fill>  
  </Path>  
</Grid>  

手机扫一扫

移动阅读更方便

阿里云服务器
腾讯云服务器
七牛云服务器