wpf - WPF Custom combox item source
问题描述
I have a custom shape of a thermometer and I want to fill the background of it gradually depending on some input
Initially I thought of using some sort of Grid or Border but I can't seem to make the inside fill witohut the outside showing the color as well
this is the shape I want to use:
<Path x:Name="path" Data="M17,17A5,5 0 0,1 12,22A5,5 0 0,1 7,17C7,15.36 7.79,13.91 9,13V5A3,3 0 0,1 12,2A3,3 0 0,1 15,5V13C16.21,13.91 17,15.36 17,17M11,8V14.17C9.83,14.58 9,15.69 9,17A3,3 0 0,0 12,20A3,3 0 0,0 15,17C15,15.69 14.17,14.58 13,14.17V8H11Z" Fill="Black" />
Is this possible without too much effort?
解决方案
推荐阅读
- python - 用于 4D (x,y,t -> u_pred) 的 griddata 插值,而不是 python 中的 3D (x,t->y_pred)
- python - 即使使用正确的标头,请求也被拒绝
- javascript - 尝试编译最新的 Laravel Mix 6 app.js 时出错
- amazon-web-services - 无法使用 terraform 创建 elasticSearch 域
- google-apps-script - 将特定单元格从最后一行移动到新电子表格
- wordpress - 限制 WordPress 多站点仪表板中的权限
- typescript - Typescript如何导出从类工厂返回的类的类型
- spring - Spring jdbcTemplate NPE 异常
- javascript - Mobx-react 无渲染但状态已更改
- java - 更新到 Firebase 数据库时出错