Windows 8以éã®ãã¤ã¯ãã½ããã®ã¢ããªã±ã¼ã·ã§ã³éçºæè¡
ãWindows 8ãç»å ´ããã¨ãMetroã¹ã¿ã¤ã«ã¨ããæ°ããã¢ããªã±ã¼ã·ã§ã³ã®å½¢æ
ã追å ããããããã¢ããªã±ã¼ã·ã§ã³ã®éçºæè¡ã®é¸æè¢ã¯ããã«å¢ãããã¨ã«ãªãã¾ããããããªãããWindowsãã©ãããã©ã¼ã ä¸ã§å®è¡ãããå¤ãã®æ¥åã¢ããªã±ã¼ã·ã§ã³ã«ã¨ã£ã¦ã¯ãWPFãSilverlightã®ã©ã¡ããã«ãªãï¼ãã¡ããWindowsãã©ã¼ã ãå®è¡å¯è½ï¼ã¨ããç¶æ³ã¯ããã»ã©å¤ãã£ã¦ããªãã¨æãã¾ãã
ããããã©ã®ã¢ããªã±ã¼ã·ã§ã³éçºæè¡ãé¸æãã¦ãããããããªãã¨ããå ´åã«ã¯ãä¸è¨ã®blogã«æ¸ãããããã¼ãã£ã¼ããå½¹ã«ç«ã¤ããããã¾ããã
ãããããã¯ç§å人ã®æè¦ã§ããããã¾ã§ãå人ã®æè¦ã§ãã®ã§ãæ¸ãæã®é½åã®è¯ãããã«è§£éãå¤æãã¦ããé¨åãããããããã¾ããã
ãWPFãSilverlightã®ã©ã¡ãããé¸æããã¨ãããã¨ã¯å¤ãã£ã¦ãã¾ããããä»å¾ã¯SilverlightãããWPFãé¸æããã±ã¼ã¹ãããã¾ã§ãããå¤ããªãã®ã§ã¯ãªããã¨äºæ³ãã¾ãããã®çç±ã¯ä»¥ä¸ã®ãããªãã®ã§ãã
Silverlightã®å±
å ´æã¯ï¼
ãããã¾ã§ã¯ãSilverlightããã¤ã¯ãã½ããã®ã¢ããªã±ã¼ã·ã§ã³éçºæè¡ã®ä¸ã§æããã«ãã«å¯¾å¿ã§ããé¸æè¢ã ã£ãã¨æãã¾ããããã¯Windowsã¢ããªã±ã¼ã·ã§ã³ããWebã¢ããªã±ã¼ã·ã§ã³ããã¸ãã¹åãã®ã¢ããªã±ã¼ã·ã§ã³ããã³ã³ã·ã¥ã¼ãåãã®ã¢ããªã±ã¼ã·ã§ã³ã¾ã§ã¨ãã£ãå
·åã«ã§ããããããªãããç¾å¨ã®ç¶æ³ãããã¦ä»å¾ã®æµããèããå ´åããã®ç¶æ³ã¯å¤ãã£ã¦ããã¨äºæ³ãã¾ãã
Windowsã¢ããªã±ã¼ã·ã§ã³ã¨Webã¢ããªã±ã¼ã·ã§ã³ï¼ã¯ãã¹ãã©ãããã©ã¼ã ï¼
ããã¤ã¦Silverlightã¯ãã®ç¹å¾´ã®ä¸ã¤ã¨ãã¦ãã¯ãã¹ããããã©ã¼ã ãã大ããæ²ãã¦ãã¾ãããããããªãããSilverlightã¯å¾ã
ã«ã¯ãã¹ãã©ãããã©ã¼ã ãããããã¦ãã£ãããã«æãã¾ãã
ããã«ãµã¤ãºã®Webãã©ã¦ã¸ã³ã°ãPCã ãã®ãã®ã ã£ãæ代ã«ã¯ãPCã®ä¸»è¦ãªãã©ãããã©ã¼ã ããã«ãã¼ã§ããã°ã¯ãã¹ãã©ãããã©ã¼ã ã§ããã¨è¨ãã¾ãããã¤ã¾ããä»ç¾å¨ã®Silverlightããµãã¼ãããWindowsã¨Macã®2ã¤ã ãã§ãååã ã£ãã®ã§ããããããã¹ãã¼ããã©ã³ãã¿ãã¬ããã¨ãã£ãPC以å¤ã®Webãã©ã¦ã¸ã³ã°ç°å¢ã¯ããããå¢ãã§å¢ãç¶ãã¦ãã¾ãããã¤ã¦Windows MobileãNokiaããµãã¼ãããã¨ã¢ãã¦ã³ã¹ããã¦ããSilverlight 2 for Mobileã¯ãã£ã³ã»ã«ããã¾ãããããã¦ãWindows Phoneä¸ã«è¼ã£ã¦ããSilverlightã¯é常ã®ã¢ããªã±ã¼ã·ã§ã³ãã©ãããã©ã¼ã ã§ãããWebãã©ã¦ã¶ã¼ã®ãã©ã°ã¤ã³ã§ã¯ããã¾ããã
ãSilverlight 4ã§ã¯ãMacç°å¢ããµãã¼ãããªããCOMãªã¼ãã¡ã¼ã·ã§ã³ãã追å ããã¾ããããã®ãã¨ã¯ãSilverlightã®ã¯ãã¹ãã©ãããã©ã¼ã ã«å¯¾ããæ¹åæ§ã®è»¢æã示ããã®ã¨ã¨ããããã¨ãã§ãã¾ããä»å¹´ä¸ã«ãªãªã¼ã¹ãäºå®ããã¦ããSilverlight 5ã§ããWindowsãã©ãããã©ã¼ã ã®ã¿ã®æ©è½ã§ãããP/Invokeãã追å ãããäºå®ã§ãã
ãããã¦ããã¤ã¯ãã½ãããæ¬å½ã®æå³ã§ã®ã¯ãã¹ãã©ãããã©ã¼ã ã¯HTML5ã ã¨èãã¦ãããã¨ã¯ãä¸è¨ã®ããã»ãã°ãªã¢æ°çºè¨ãããã¦Metroã¹ã¿ã¤ã«çã®Internet Explorer 10ããã©ã°ã¤ã³ããµãã¼ãããªããã¨ãããæããã§ã¯ãªããã¨æãã¾ãã
マイクロソフトが戦略変更。HTML5が唯一のクロスプラットフォーム、SilverlightはWindows Phone 7のプラットフォームに - Publickey
Windows 8のタッチUI用IE10はプラグインに非対応。FlashもSilverlightも使えず - Publickey
ããããã®ãã¨ãããç§ã¯Silverlightã®æ´»èºå ´æã¯ã¯ãã¹ãã©ãããã©ã¼ã ï¼Webã¢ããªã±ã¼ã·ã§ã³ï¼ã§ã¯ãªããWindowsã¢ããªã±ã¼ã·ã§ã³ã§ããã¨èãã¦ãã¾ãã
ã³ã³ã·ã¥ã¼ãåãã¢ããªã±ã¼ã·ã§ã³ã¨æ¥åã¢ããªã±ã¼ã·ã§ã³
ãSilverlightãWPFã«å¯¾ãã¦æã£ã¦ããã¢ããã³ãã¼ã¸ã¨ãã¦ãDeepZoomãSmooth Streamingã¨ãã£ãæ©è½ãããã¾ãããããã¯æ¥åã¢ããªã±ã¼ã·ã§ã³ããããã³ã³ã·ã¥ã¼ãåãã®ã¢ããªã±ã¼ã·ã§ã³ã§ä½¿ãããæ©è½ã§ãã
ãããã¾ã§ã¯Windowsã¢ããªã±ã¼ã·ã§ã³ã®éçºæè¡ã«ãæ¥ååããã³ã³ã·ã¥ã¼ãåããåºå¥ã¯ããã¾ããã§ãããããããªãããWindows 8ããªãªã¼ã¹ãããã¨å¤ãã®ã³ã³ã·ã¥ã¼ãåãã¢ããªã±ã¼ã·ã§ã³ãMetroã¹ã¿ã¤ã«ã¨ãã¦ä½æããããã¨ã«ãªãã¨æãã¾ããã¾ããå¤ãã®å ´åãSilverlightã¯WPFã«æ¯ã¹Metroã¹ã¿ã¤ã«ã¢ããªã±ã¼ã·ã§ã³ã¸ã®ç§»è¡ãç°¡åã§ãããã®ãããæ°è¦ã®ã¢ããªã±ã¼ã·ã§ã³ã ãã§ãªãæ¢åã®ã³ã³ã·ã¥ã¼ãåãSilverlightã¢ããªã±ã¼ã·ã§ã³ãMetroã¹ã¿ã¤ã«ã¢ããªã±ã¼ã·ã§ã³ã¨ãã¦ç»å ´ãããã¨ãäºæ³ã§ãã¾ããããã¯ãä»å¾Metroã¹ã¿ã¤ã«ã¢ããªã±ã¼ã·ã§ã³ã§DeepZoomãSmooth Streamingãæä¾ããããã©ããã大ããå½±é¿ããã§ãããã
ããããã®ãã¨ãããç§ã¯Silverlightã®å±
å ´æã¯å¾ã
ã«æ¥ååãã«åã£ã¦ããã®ã§ã¯ãªããã¨èãã¦ãã¾ãã
Silverlightã®å±
å ´æ
ãSilverlightã®ä¸»ãªæ´»èºå ´æã¯æ¥ååãã®Windowsã¢ããªã±ã¼ã·ã§ã³ã§ããããã¾ã§ã¨ç°ãªããã»ã¼åãå俵ã§Silverlightã¯WPFã¨æ¯è¼æ¤è¨ããããã¨ã«ãªãã®ã§ã¯ãªãã§ããããã
WPFã®ã¢ããã³ãã¼ã¸
ãæ¥ååãã®Windowsã¢ããªã±ã¼ã·ã§ã³ã¨ããå俵ã§ä¸¡è
ãæ¯è¼ããå ´åãWPFã¯Silverlightã«æ¯ã¹ã¦ä»¥ä¸ã®ç¹ã§ã¢ããã³ãã¼ã¸ãããã¨æãã¾ãã
Windowsãã©ã¼ã ããã®ç§»è¡
ãæ¥åã¢ããªã±ã¼ã·ã§ã³ã®éçºã«ããã¦ç´ç²ãªæå³ã§ã®æ°è¦éçºã¯å°ãªããªã£ã¦ãã¦ãããWPFãSilverlightããé¸æããæ©ä¼ã¨ããã®ã¯ä¸»ã«æ¢åã®ã¢ããªã±ã¼ã·ã§ã³ã®ç§»è¡ã«ãªãã®ã§ã¯ãªããã¨æãã¾ããç¾å¨ãWindowsãã©ãããã©ã¼ã ä¸ã®æ¥åã¢ããªã±ã¼ã·ã§ã³ã§æãå¤ãã®ã¯ãWindowsãã©ã¼ã ã§ã¯ãªããã¨æãã¾ãï¼ãã®æ¬¡ã¯ããããããVisual Basic 6.0ããããã¾ããï¼ããããã£ã¦ãWindowsãã©ã¼ã ãã移è¡ããããããã©ããã¯ãWPFãSilverlightããé¸æããããã§éè¦ãªãã¤ã³ãã«ãªãã®ã§ã¯ãªããã¨æãã¾ãã
ãWPFã¯ãSilverlightã«æ¯ã¹ã¦ä»¥ä¸ã®ãããªç¹ã§Windowsãã©ã¼ã ã«è¿ãã¨è¨ãã¾ãã
- ãµãã»ããã§ã¯ãªããã«ã®.NET Frameworkã¯ã©ã¹ã©ã¤ãã©ãªã使ç¨ã§ãã
- ãµã¼ãã¹ãçµç±ãããã¨ãªãç´æ¥ADO.NETã使ã£ã¦ãã¼ã¿ãã¼ã¹ã«ã¢ã¯ã»ã¹ã§ãã
ãã¾ããWindowsãã©ã¼ã ãã段éçãªç§»è¡ãããããã®ãWPFã®ç¹å¾´ã§ããWPFã§ã¯WindowsFromsHostã³ã³ããã¼ã«ã使ã£ã¦WPFè¦ç´ å
ã«Windowsãã©ã¼ã ã³ã³ããã¼ã«ã表示ãããã¨ãã§ãã¾ãã先の投稿ã§ç´¹ä»ããããã«ãWPF4.5ã«ããã¦ãWPFã§ãã¹ãããã¦ããWindowsãã©ã¼ã ã³ã³ããã¼ã«ã常ã«WPFã³ã³ãã³ãã®ä¸çªä¸ã«è¡¨ç¤ºããããã¨ããåé¡ãæ¹åããããããWindowsFromsHostã使ã£ã¦ä¸é¨åãWindowsãã©ã¼ã ã®ã¾ã¾ã¨ããWPFã¢ããªã±ã¼ã·ã§ã³ãããç¾å®çãªãã®ã¨ãªãã¾ãã
éçºçç£æ§
ãSilverlightã¯ãã©ã³ã¿ã¤ã ã®ãµã¤ãºãã³ã³ãã¯ãã«ä¿ã¤ãããåãååã®ã¯ã©ã¹ãã¡ã½ããã§ãWPFã«æ¯ã¹ã¦ã¡ã³ãæ°ãå°ãªãã£ãããªã¼ãã¼ãã¼ãã®æ°ãå°ãªãã£ãããã¾ããç¹ã«ããçµæçã«ã¯åããã¨ãã§ããããããããã¨ä¾¿å©ãã¨ãã£ãé¡ã®ãã®ã®å¤ãã¯å®è£
ããã¦ãã¾ããã
ããã¨ãã°ãWPFã®Coloræ§é ä½ã«ã¯æ°ããColoræ§é ä½ãä½æããããã®ã¡ã½ããã5ã¤åå¨ãã¾ãããSilverlightã¯1ã¤ã ãã§ãã
ã¡ã½ããå | WPF | Silverlight |
---|---|---|
FromArgb | ✓ | ✓ |
FromAValues | ✓ | - |
FromRgb | ✓ | - |
FromScRgb | ✓ | - |
FromValues | ✓ | - |
ããã®ãããªå·®ã¯æ©è½ã¬ãã«ã§æ¯è¼ãããå ´åã«ã¯éãã¨ãã¦åºã¦ãã¾ããããéçºçç£æ§ã«å½±é¿ããå¯è½æ§ãããã¾ãã
ã¿ããæä½ã¸ã®å¯¾å¿
ãWindows 8ã«ãããã¿ããå¯è½ãªWindowsã¨ãããã®ãä¸ã®ä¸ã«æ®åãããã¨ã«ãªãã¾ããã¿ããå¯è½ãªããã¤ã¹ã§ã¯Metroã¹ã¿ã¤ã«ã®ã¢ããªã±ã¼ã·ã§ã³ã使ç¨ããã®ããã¹ãã ã¨æãã¾ãããæ¥åã¢ããªã±ã¼ã·ã§ã³ã«ããã¦ã¯æ¢åè³ç£ãã³ã¹ãã®å
¼ãåããããæ¢åã®ã¢ããªã±ã¼ã·ã§ã³ãæä½éã®ã¿ããæä½ã«å¯¾å¿ããããã¨ãã£ãéè¦ãå°ãªãããçã¾ãã¦ããã¨äºæ³ãã¾ãã
ãã¾ããã¿ããå¯è½ãªããã¤ã¹ã¯ã¹ã¬ã¼ãï¼ã¿ãã¬ããPCã ãã¨ã¯éããªãã¨æã£ã¦ãã¾ããã¿ãããã£ã¹ãã¬ã¤ã®çç£ã³ã¹ããä¸ããã°ãéè¦ããããªãé¢ä¿ãªãã¿ããå¯è½ãªãã¹ã¯ãããPCã¨ããã®ãå¾ã
ã«å¢ãã¦ããã¨äºæ³ãã¾ããPCã¡ã¼ã«ã¼ã¨ãã¦ããWindows 8ãæè¼ãã¦ããã«ãé¢ãããã¿ããæ©è½ãåãã£ã¦ããªãPCã¯å£²ãã¥ãããªãã§ããããããã«ããããã¹ã¯ãããã§åºæ¬çã«ã¯ãã¼ãã¼ãã¨ãã¦ã¹ã使ããªããããä¸æçããããã¯é¨åçã«ã¿ããã使ã£ã¦æä½ããã¨ãã人ãã¡ãã»ãã§ã¦ããã®ããããã¾ããã
ãã¿ããæä½ã¸ã®å¯¾å¿ã«ããã¦ãWPFã¯ä»¥ä¸ã®2ç¹ã§Silverlightãããæå©ã§ãã
- æ¨æºã³ã³ããã¼ã«ãããã©ã«ãã§ã¹ã¯ãã¼ã«çã®åºæ¬çãªã¿ããæä½ã«å¯¾å¿ãã¦ãã
- Manipulationã¨ãã°ããé«ã¬ãã«ãªãã«ãã¿ããã®ã¤ã³ã¿ã¼ãã§ã¤ã¹ãç¨æããã¦ãã
ããã¾ã§Silverlightãæå©ã ã£ããã®
ãããã¾ã§æ¥ååãã®Windowsã¢ããªã±ã¼ã·ã§ã³ã«ããã¦WPFãããSilverlightãæå©ã¨ããã¦ããç¹ã®ããã¤ãã¯ãä»å¾æ¹åããã¦ããã¨æãã¾ãã
ã©ã³ã¿ã¤ã ç°å¢ã®ã»ããã¢ãã
ãä¸è¨ã®è¨äºã§æ¸ããéããSilverlightã¯WPFã«æ¯ã¹ã¦ã©ã³ã¿ã¤ã ç°å¢ã®ã»ããã¢ããã容æã§ãã
ãããã¯ä¸»ã«ã©ã³ã¿ã¤ã ã®ã¤ã³ã¹ãã¼ã©ã¼ãµã¤ãºã5MBå°ã¨å°ããããã§ãããããã.NET Framework 4ã§å¤§å¹
ã«ã¤ã³ã¹ãã¼ã©ã¼ãµã¤ãºãåæ¸ãããã¨ãã£ã¦ããæå©ã§ãããã¨ã«å¤ããã¯ããã¾ãããããããªãããããªã³ã¹ãã¼ã«ããã¦ããOSãããã¨ããç¹ã§ã¯ã.NET Frameworkãæå©ã§ããã¨è¨ãã¾ããããã¦ãç¾å¨ä¸è¬çã«ä½¿ç¨ããã¦ããWindows OSã®ä¸ã§å¯ä¸.NET Frameworkãããªã¤ã³ã¹ãã¼ã«ããã¦ããªãWindows XPã¯ããã¯ãä¸çªå¤ã使ç¨ããã¦ããWindowsã§ã¯ãªããªãã¾ããã
ã¢ããªã±ã¼ã·ã§ã³ã®èµ·åé度
ãWPFã§ã¯ãªãSilverlightãé¸æããçç±ã¨ãã¦ãWPFã¢ããªã±ã¼ã·ã§ã³ã®èµ·åã®é
ããããã¦ããã±ã¼ã¹ãããã¾ããã.NET 4.5ã§ã¯CLRã«ä»¥ä¸ã®5ã¤ã®æ¹åãæ½ããã¦ããããããã¯ä¸»ã«ããã©ã¼ãã³ã¹ã«é¢ãããã®ã¨ãªã£ã¦ãã¾ãã
- Background mode for Server GC
- Managed Profile Guided Optimization
- Automatic NGEN
- Multi-core background JIT
- Re-JIT
ãç´¹ä»ã®ããæ¹ãè¦ãã¨Metroã¹ã¿ã¤ã«ã¢ããªã±ã¼ã·ã§ã³ã®ããã¨ããè¦ç´ ãå¼·ãããã§ããããããã¯WPFãªã©ã®Metroã¹ã¿ã¤ã«ã§ã¯ãªã.NETã¢ããªã±ã¼ã·ã§ã³ã«ã¨ã£ã¦ãæå¹ãªæ¹åã§ããç¹ã«ããã¾ã§ãã¤ãã£ãã³ã¼ãã§ããå©ç¨ã§ããªãã£ããPGO (Profile-Guided Optimization) ããCLRã§å®è¡ãããã¢ããªã±ã¼ã·ã§ã³ã§ãå©ç¨å¯è½ã«ãªãã¨ããã®ã¯ãé常ã«ã¤ã³ãã¯ãã大ããã¨æãã¾ãã
æå¾ã«
ããã®ã»ãã«å½±é¿ããããªãã®ã¨ãã¦ãWCF RIA Servicesã¨Visual Studio Light Switchãããã¦ããã¾ãããããã¯ç¹ã«ä»ååããããã¾ããããä»å¾æ³¨ç®ãã¦ãããããã¤ã³ãã§ãã