天马行空  
I ---- Inject 投入 L ---- Loyal 忠诚 O ---- Observant 用心 V ---- Valiant 勇敢 E ---- Enjoyment 喜悦 Y ---- Yes 愿意 O ---- Obligation 责任

一个很好的列子:

http://www.codeproject.com/Articles/254506/XAMLFinance-A-Cross-platform-WPF-Silverlight-WP7-A

使用MVVM

The WPF solution has much the same structure as the Silverlight one; however, all of the ViewModel, View and Resource files are included as links, as per the steps described above.

Resolution Techniques

1.Conditional compilation (#if)

 

  private string ReadFileToString(string filename)
  {

#if !SILVERLIGHT

    using (var stream = this.GetType().Assembly.GetManifestResourceStream(
      "SLUGUK.ViewModel." + filename))
    {
      StreamReader reader = new StreamReader(stream);
      string xml = reader.ReadToEnd();
      return xml;
    }

#else

    string path = "/SilverlightTwitterApp;component/ViewModel/" + filename;
    Uri uri = new Uri(path, UriKind.Relative);
    StreamResourceInfo sri = Application.GetResourceStream(uri);
    StreamReader reader = new StreamReader(sri.Stream);
    string xml = reader.ReadToEnd();
    return xml;

#endif
  }

 

2.Partial classes

3.Design Patterns

使用 适配器模式

 

对于新的系统,会有多点触控技术。能把任务分解为两个方面的工作,一是同时采集多点信号,二是对每路信号的意义进行判断,也就是所谓的手势识别,从而实现屏幕识别人的五个手指同时做的点击、触控动作。

posted on 2013-11-19 14:32  浅蓝  阅读(171)  评论(0编辑  收藏  举报