VS+C#:1ããã¸ã§ã¯ãå ã§åä¸ã©ã¤ãã©ãªã®è¤æ°ãã¼ã¸ã§ã³å©ç¨ãã
ãªããæè¿C#ã¨ä»ãåããã¨ã«ãªã£ãåã§ãã
WindowsãVisualStudioã馴æã¿ããªãåã§ãã
ããã¾ã§ä¸»ã«vimã使ã£ã¦ãããã§ãããVisualStudioï¼ä½¿ãæ
£ããããã¶ãï¼ä¾¿å©ã§ããï¼ãããIDEã£ã¦æãã
ã§ãåç
§ã®è¿½å ã§MvvmLightToolKitãå
¥ãããã§ãããããè¤æ°ãã¼ã¸ã§ã³ãåæã«ä½¿ããããªã£ããã©ããããã ãï¼ã¨èå³æ¬ä½ã§èª¿ã¹ã¦ã¿ã¾ãã
è¤æ°ãã¼ã¸ã§ã³ã®ã¢ã»ã³ããªãããã¸ã§ã¯ãã®åç §ã«è¿½å ãã
ä»®ã«MvvmLightToolKit 5.2ã¨5.3ãå ¥ãããã¨ããã¨ã以ä¸ã®æãã§ã§ãã¾ããã
- 5.3ã¯NuGetã§æ®éã«ã¤ã³ã¹ãã¼ã«
- 5.2ã¯ã¢ã»ã³ããªãDLãã¦ã¤ã³ã¹ãã¼ã«
- ãã¡ãããDLãã¦MVVM Light Toolkit - Home
- vsixãunzipãã¦ãããã«ä¸èº«ã®packageãã¡ã¤ã«ãunzipããã¨dllãåºã¦ãã
- åºã¦ããdllãGalaSoft.MvvmLight52.dllã«renameãã¦ãã
- dllã®ãã¡ã¤ã«åã5.3ã¨åä¸ã«ãªã£ã¦ãããããåç
§ã®è¿½å ã§ã¨ã©ã¼ã«ãªã£ããã
- dllãVSã®åç
§ã®è¿½å ãã追å ãã
ã½ã¼ã¹ã³ã¼ãå ã§ä¸¡ãã¼ã¸ã§ã³ã®ã¢ã»ã³ããªãå©ç¨ãã
以ä¸ã®ãããªæãã§aliasãå¼µã£ã¦ãããã¨ã§è§£æ±ºãã¾ãã
- åç §ã«è¿½å ããã¦ããã¢ã»ã³ããªã®ããããã£ããã¨ã¤ãªã¢ã¹ãç·¨éããã
- ä¾ãã°ã5.2ç³»ã®æ¹ã®ã¢ã»ã³ããªã«MvvmLight52ã¨ããååãã¤ãã¾ãã
- å©ç¨ããã³ã¼ãã¯ä»¥ä¸ã®ãããªæãã§ããã¾ããã
extern alias MvvmLight52; using GalaSoft.MvvmLight; namespace MyAPP { // 5.2ã®ViewModelBaseãå©ç¨ class MyClass : MvvmLight52.GalaSoft.MvvmLight.ViewModelBase { } // 5.3ã®ViewModelBaseãå©ç¨ class MyClass2 : ViewModelBase { } }