如何在布尔条件下的WPF检查编辑中将带有刻度线的红色圆圈和带有十字标记的红色圆圈放置 [英] How can I put green circle with tick mark and red circle with cross mark in WPF check edit in boolean condition
问题描述
我怎样才能在wpf中设置带刻度线的绿色圆圈和带有十字标记的红色圆圈在devexpress中的布尔条件中检查编辑。
我有什么尝试过:
如何在depxpress中的布尔条件中将wpf检查编辑中的带有刻度线的红色圆圈和带有十字标记的红色圆圈放置。任何想法
How can i put green circle with tick mark and red circle with cross mark in wpf check edit in Boolean condition in devexpress.
What I have tried:
How can i put green circle with tick mark and red circle with cross mark in wpf check edit in Boolean condition in devexpress. any ides
推荐答案
请看我对这个问题的评论。
一种方法是基于分开WPF上的UI元素Canvas
,允许使用相对于Canvas
的任意坐标任意定位子项:
Canvas Class(System。 Windows.Controls) [ ^ ],
Shape Class(System.Windows.Shapes) [ ^ ]。
另一种方法是直接图形渲染:WFF图形渲染概述 [ ^ ]。
-SA
Please see my comment to the question.
One approach is based on putting separate UI elements on WPFCanvas
, which allows for arbitrary positioning of children using arbitrary coordinates relative to theCanvas
:
Canvas Class (System.Windows.Controls)[^],
Shape Class (System.Windows.Shapes)[^].
Another approach is direct graphic rendering: WPF Graphics Rendering Overview[^].
—SA
s。那是要绘制的画布。但我需要拍摄一个真实的图像.png,而不是让画布绘制图像。所以如果你知道这个在checkit中显示的boolen值。错误的交叉图像和正确的刻度图像。多数民众赞成。
s. that is canvas to draw. but i need to take a real image .png, not to make the canvas to draw an image. so if u know this in for boolen value in the checkedit to display. for wrong cross image and for correct tick image . thats all.
这是一个不同的故事。如果你想渲染一个位图而不是在scree上显示任何内容,那就完全按照这个方法做。
参见本手册:绘制位图 - DrawingImage和DrawingVisual [ ^ ]。< br $>
This is a different story. If you want to render a bitmap and not show anything on scree, do exactly that.
See, for example, this manual: Drawing Bitmaps – DrawingImage and DrawingVisual[^].
这篇关于如何在布尔条件下的WPF检查编辑中将带有刻度线的红色圆圈和带有十字标记的红色圆圈放置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!