Click here to Skip to main content
15,890,670 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Based on what i've read WPF uses "logical units" to define measures but i need to resize a MediaElement inside a canvas in pixels, How can i do?
Posted

1 solution

A logical unit is a 1/96 of an inch.
Have a look at the last section in this article to get a solution to do this - http://www.wpftutorial.net/DrawOnPhysicalDevicePixels.html[^].
 
Share this answer
 
Comments
Morph King 4-Jun-11 15:20pm    
Thx ;)
Sergey Alexandrovich Kryukov 5-Jun-11 17:18pm    
Looks like a reasonable reading on the topic, my 5.
--SA
Abhinav S 5-Jun-11 23:58pm    
Thank you SA.

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