I've got a Label with a user-selected directory path. Of course some paths are longer than others. I'm using a Resizer on the control the Label lives in, and would love it if I could have variable eliding of the path.
c:\very\long\path\to\a\filename.txt collapsing to c:...\filename.txt or c:\very...\filename.txt. You get the picture - bigger window gives more info, shrink it down and you still get the important parts of the path. I'd love it if I didn't have to have a custom control, but I can live with it.
http://stackoverflow.com/questions/108689/custom-text-wrapping-in-wpf seems like it might do the job, but I'm hoping for something simpler.
EDIT Sorry, I meant to convey that I want the eliding to vary based on width of the Label.