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
Post a Comment