spiegelp / MaterialDesignExtensions

Material Design Extensions is based on Material Design in XAML Toolkit to provide additional controls and features for WPF apps
https://spiegelp.github.io/MaterialDesignExtensions/
MIT License
767 stars 123 forks source link

Text trimming in the NavigationRail #128

Open Elsassmania opened 3 years ago

Elsassmania commented 3 years ago

I cannot find a way to modify the width of the textblock in the navigation trail item. I know that the Material Design specs write that the navigation rail container must be 72dp by default and it is enough for a lot of "basic" english words like for exemple "Save" but, if we do localization, in French it is "Sauvegarder" and this word is trimmed in the navigation rail. I didn't see a ItemTemplate or something like this to override the item style and the width of the Navigation Rail works on the control but doesn't change the items presentation in it.

Is there a way to have a bigger width for the text display I didn't see or not ?

spiegelp commented 3 years ago

@Elsassmania The current implementation follows the specs strictly. I will plan to add some properties to enable further customization.

spiegelp commented 3 years ago

@Elsassmania The latest commit removes the fixed width of the items and adds a LabelFontSize property.