I was the functionality of a UserControl but I want it to look lik开发者_运维技巧e a bitmap. How can I do this in WPF?
What about the Image
control? What exactly do you want? How does a bitmap look like? Can you write more than one sentence?
You can do the following
- Download source of the Bitmap class that will snap to device pixels from here
- Rewrite it a little bit.
a. SetUserControl
instead ofUIElement
as it's parent
b. RenameMeasureCore
toMeasureOverride
I hope that will become the thing you need.
精彩评论