This project is read-only.

Image (PNG,JPG,etc or vector XAML) instead of DisplayName

Jul 4, 2013 at 11:14 PM
How can I use an image (PNG,JPG,etc or vector XAML) instead of DisplayName in a Link?

I used WPF in some projects, but I do not understand this code base well (still too WinForms way of thinking maybe).

Link is not a Control, so actually can not have any visual representation, right? I traced it and reached ModernMenu which is a control but again I can not understand how it visualizes itself?

Any help and guidance; please?
Jul 5, 2013 at 8:43 PM
Correct, mui follows MVVM rules where Link is part of the ViewModel. Controls use bindings to visualize the viewmodel data in the view. If this sounds new, you probably want to read up on MVVM. Plenty of articles on the webs about this topic.

Link supports textual content only (following Modern UI guidelines), if you need images you need to modify the Link source code and control bindings that render the links.