Click here to Skip to main content
15,892,575 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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
Posted
Updated 31-May-16 3:22am
Comments
Sergey Alexandrovich Kryukov 30-May-16 3:08am    
Excuse me, what's wrong with just reading original MSDN documentation on WPF? All the manuals on WPF graphics are very clear. No Quick Answers can be a good substitute for reading it.
—SA
SwethaVijayan 30-May-16 7:00am    
i need only solution if u don't try to help please don't answer ok.
we have no problem with reading the MSDN DOcuments of .net , ok. we try to need a simple way to display image in the check-edit in devExpress wpf. for wrong thing need cross image with text incorect and if it is correct with green image with text correct as text .. ok.
Sergey Alexandrovich Kryukov 30-May-16 10:23am    
No, this is not OK, sorry. I provided you all help you really need in Solution 1. Did you notice that?
—SA
SwethaVijayan 31-May-16 1:23am    
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.
Sergey Alexandrovich Kryukov 31-May-16 9:20am    
You never mentioned drawing in image (bitmap, .PNG). Who would like to help you if you make people wasting time just because you fail to mention couple more detail, read MSDN and then talk to people trying to help you in a rude way?
—SA

Please see my comment to the question.

One approach is based on putting separate UI elements on WPF Canvas, which allows for arbitrary positioning of children using arbitrary coordinates relative to the Canvas:
Canvas Class (System.Windows.Controls)[^],
Shape Class (System.Windows.Shapes)[^].

Another approach is direct graphic rendering: WPF Graphics Rendering Overview[^].

—SA
 
Share this answer
 
SwethaVijayan asked, after getting a solution:

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.
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[^].

—SA
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900