Archive

Archives pour 10/2019

DoubleAnimation with Step

For having step working in double animation use

like this (for rotation)

 

Categories: Non classé Tags:

Adding font in wpf application

For using a font in resource

sample

see : https://wpf.2000things.com/tag/embedding-fonts/

If font is not install in your computer you cannot show then in editor ate first time, only in running

Categories: Non classé Tags:

TextBlock with ellipsis at left or center

If you want a TextBlock with ellipsis a Left, Center or Right use this
you must use TrimmedText in place of Text for binding original text

and use like this

see result

   

Update to v2 : 
refresh when visibility changed
refresh when size changed

Categories: Non classé Tags:

Border with real ClipToBound

When we use Border, the corner radius is not used for ClipToBound
see the solution with another border

 

Categories: wpf Tags: ,