c# - How to correctly plan a Windows Phone app -


i'm trying make first wp app , i'm running design problems i'm coming java , i'm not used xaml , stuff that.

let's have structure this:

pluginbase - class has extended build plugin.

various plugins extending base class. each plugin has retrieve infos different sites (something instagram plugin, 500px 1 , on).

plugingraphics - class has pluginbase attribute , has use show retrieved data. means class have draw() method print on screen (on gui) infos plugin.

here's short pseudocode

abstract class pluginbase{     string pluginname;     string apiurl;     abstract image getimage(); } class instagramplugin extends pluginbase{     public instagramplugin(){         pluginname = "instagram";         apiurl = "http://...";     }     image getimage(){         return new image(apiurl + "/img.png");     } } class plugingraphics(){     pluginbase plugin;     public plugingraphics(pluginbase plugin){         this.plugin = plugin;     }     void draw(){         super.draw(plugin.getimage());     } } 

this how in java when need build custom gui component has work custom code behind. it's pretty simple, define code , make "gui" class takes data component , displays it.

using method allows me focus on graphical part because, when plugingraphics class made, stuff without forcing me manually update component everytime image changes. (provided getimage() pulls random 1 site.

so can work gui builder , consider component "blackbox" works, without having know how works.

the question is: how can c#/xaml?

does kind of planning make sense on c#/xaml or have think app in different way?

java , wpf(xaml)-based applications different. possible large portion of actual development in xaml using mvvm pattern rather in c# code. think should spend time learning how wpf works before dive in.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -