c# - Proper way of storing ListView items' data - ResourceDictionary? -


i complete beginner c#, forgive me if question seems trivial.

i have simple menu listview. every item in menu has text , image. should these values kept in resourcedictionary or should create list of these items somewhere in class , bind them?

if never needed reuse piece of ui code, put inside page's resources; if reused on page, put in resource dictionary.

ui code belongs xaml, it's clearer read (and view in vs designer)

<button content="add" /> 

than

var button = new button() { content = "add" }; this.mygrid.children.add(button); 

Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -