如何创建 WPF 组合框平面样式? [英] How to create a WPF combobox flat style?

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

问题描述

我想为 WPF 组合框创建一个平面样式模板,它看起来像 Visual Studio 2010 中的组合框.此外,我想为此模板使用 Visual Studio 画笔.

I want to create a flat style template for WPF combobox which looks like a combobox in Visual Studio 2010. Also I want to use Visual Studio brushes for this template.

有人帮我找路吗?有没有完成的模板?还有人知道可以从其他应用程序获取控件模板的应用程序吗?

Does anybody help me to find the way? Are there any completed templates? Also does anybody know something about an application that can get controls templates from other applications?

推荐答案

你是说工具栏组合框工具栏样式吗?试试这个

Do you mean toolbar combobox toolbar style? Try this

<ComboBox Style="{StaticResource {x:Static ToolBar.ComboBoxStyleKey}}"/>

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

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