更改WPF组合框样式 [英] Changing the WPF combo box style

查看:73
本文介绍了更改WPF组合框样式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨专家,



在我的Wpf应用程序中,我使用的是combobox和XCTK:来自wpfextendedtoolkit的checkcombobox。



外观和感觉这两种风格各不相同。



所以在这里我添加了像XCTK这样的组合框模板:checkcombobox,这里我无法改变像XCTK这样的组合框的箭头样式:checkcombobox。



所以我要求你给我一些想法,



如何添加像wpf扩展工具包checkcombobox这样的组合框模板。



谢谢你

Hi Experts,

In my Wpf application I am using combobox and XCTK:checkcombobox from wpfextendedtoolkit.

At the look and feel these two become different styles.

So here I added the template for combobox like XCTK:checkcombobox, here I am unable to change the arrow style of the combobox like XCTK:checkcombobox.

so i am requesting you to give me ideas,

How do i add combobox template like wpf extended toolkit checkcombobox.

Thank you

推荐答案

你好Kishore,



正如我从Extended Toolkit CheckCombox Style中提到的那样,箭头syle看起来如下

Hi Kishore,

As i have refered from the Extended Toolkit CheckCombox Style the arrow syle is look as below
<geometry x:key="DownArrowGeometry" xmlns:x="#unknown">M 0,1 C0,1 0,0 0,0 0,0 3,0 3,0 3,0 3,1 3,1 3,1 4,1 4,1 4,1 4,0 4,0 4,0 7,0 7,0 7,0 7,1 7,1 7,1 6,1 6,1 6,1 6,2 6,2 6,2 5,2 5,2 5,2 5,3 5,3 5,3 4,3 4,3 4,3 4,4 4,4 4,4 3,4 3,4 3,4 3,3 3,3 3,3 2,3 2,3 2,3 2,2 2,2 2,2 1,2 1,2 1,2 1,1 1,1 1,1 0,1 0,1 z</geometry>




<path x:name="Arrow" data="{StaticResource DownArrowGeometry}" fill="Black" horizontalalignment="Center" margin="3,0,3,0" verticalalignment="Center" xmlns:x="#unknown" />





请将此路径添加到组合框模板



问候,

Vinoth Kumar J



Please add this path to your combobox template

Regards,
Vinoth Kumar J

这篇关于更改WPF组合框样式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆