Click here to Skip to main content
15,890,123 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Language: C#/WPF, VS2012, WPF Window with label
I have a label that sits inside of an image control in a WPF window. The label displays the file path for a file. My problem is that I can't seem to find a way to get the last few words, ie filename and extension to be displayed. I've tried setting HorizontalContentAlignment to Right, but that doesn't help.
Posted

1 solution

what do you mean by "get the last few words" ?

bryce
 
Share this answer
 
Comments
shelby67 10-Oct-13 23:26pm    
Say I have this file path: C:\TestArea\TestFile.txt
The textbox should display the last portion of the file path rather than giving C:\TestArea high priority of being seen inside the textbox.

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