具有混合纵横比的 WPF VisualBrush

发布于 2024-07-09 16:00:14 字数 324 浏览 3 评论 0原文

我们正在使用 Mindfusion WPF 图表组件。 我需要一个 Visualbrush,它必须能够在第三方组件中用于绘图。

我们在图表画布上有水平拉伸的车道。 我们必须为该通道定义背景颜色,并在左上角定义一些文本,以便在 x 轴上重复。 调整通道大小时,文本必须保持相同的大小,而通道的其余部分则填充颜色。

不幸的是,我们唯一能做的就是为图表组件提供一个 Visualbrush,然后将其设置为车道的背景。 似乎不可能处理此限制,因为我无法定义固定大小的文本,在 x 轴上重复,同时还具有颜色画笔拉伸,所有这些都在单个 Visualbrush 中。 如何才能做到这一点?

We are using the Mindfusion WPF Diagramming Component. I require a Visualbrush which must be able to be used in a third-party component for diagramming.

We have horizontally-stretching lanes on the diagramming canvas. We must define a background color for this lane, and some text on the top-left corner, to be repeated on the x-axis. The text must remain the same size while the rest of the lane is filled with color when the lane is re-sized.

Unfortunately, the only thing we can do is provide a Visualbrush to the diagramming component, which is then set as background for the lane. It seems impossible to work with this restriction because I am unable to define a text with fixed size, repeating on the x-axis, while also having a color brush stretching, all within a single Visualbrush. How can this be done?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文