{"id":342,"date":"2012-08-17T07:08:38","date_gmt":"2012-08-16T22:08:38","guid":{"rendered":"http:\/\/www.typea.info\/blog\/index.php\/2012\/08\/17\/prism_ui_quickstart\/"},"modified":"2012-08-17T07:08:38","modified_gmt":"2012-08-16T22:08:38","slug":"prism_ui_quickstart","status":"publish","type":"post","link":"https:\/\/www.typea.info\/blog\/index.php\/2012\/08\/17\/prism_ui_quickstart\/","title":{"rendered":"Prism UI \u5408\u6210 QuickStart"},"content":{"rendered":"<p>&nbsp;<\/p>\n<p><a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/ff921174(v=pandp.40)\">http:\/\/msdn.microsoft.com\/en-us\/library\/ff921174(v=pandp.40)<\/a><\/p>\n<h3>\u30d3\u30b8\u30cd\u30b9\u30b7\u30ca\u30ea\u30aa<\/h3>\n<p>UI \u5408\u6210 \u306e \u30b5\u30f3\u30d7\u30eb\u306f\u3001\u67b6\u7a7a\u306e\u30ea\u30bd\u30fc\u30b9\u7ba1\u7406\u30b7\u30b9\u30c6\u30e0\u306b\u57fa\u3065\u3044\u3066\u3044\u307e\u3059\u3002\u30e1\u30a4\u30f3\u30a6\u30a3\u30f3\u30c9\u30a6\u306f\u3001\u3055\u3089\u306b\u5927\u304d\u306a\u30b7\u30b9\u30c6\u30e0\u306e\u30b5\u30d6\u30bb\u30c3\u30c8\u3092\u8868\u73fe\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u30a6\u30a3\u30f3\u30c9\u30a6\u3067\u3001\u30e6\u30fc\u30b6\u30fc\u306f\u3001\u5f93\u696d\u54e1\u306b\u3064\u3044\u3066\u306e\u8a73\u7d30\u306a\u60c5\u5831\u3092\u78ba\u8a8d\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u3001\u9023\u7d61\u5148\u3092\u66f4\u65b0\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/PrismUIQuickStart_148CF\/prism_qs_ui01.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px\" title=\"prism_qs_ui01\" border=\"0\" alt=\"prism_qs_ui01\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/PrismUIQuickStart_148CF\/prism_qs_ui01_thumb.jpg\" width=\"452\" height=\"290\" \/><\/a> <\/p>\n<h3>\u30d3\u30eb\u30c9\u3068\u5b9f\u884c<\/h3>\n<ol>\n<li>Silverlight only &#8211; Open QS &#8211; UI Composition QuickStart.bat \u3092\u5b9f\u884c\u3059\u308b\u3068\u30bd\u30ea\u30e5\u30fc\u30b7\u30e7\u30f3\u304c\u8d77\u52d5\u3059\u308b <\/li>\n<li>UIComposition.Web \u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u53f3\u30af\u30ea\u30c3\u30af\u3057\u3001\u30b9\u30bf\u30fc\u30c8\u30a2\u30c3\u30d7\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306b\u8a2d\u5b9a\u3092\u9078\u629e <\/li>\n<li>F5 \u3067\u5b9f\u884c <\/li>\n<\/ol>\n<h3>\u30a6\u30a9\u30fc\u30af\u30b9\u30eb\u30fc<\/h3>\n<p>1.\u30e1\u30a4\u30f3\u30a6\u30a3\u30f3\u30c9\u30a6\u306b\u306f\u3001\u5f93\u696d\u54e1\u306e\u30ea\u30b9\u30c8\u304c\u8868\u793a\u3055\u308c\u3066\u3044\u308b<\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/PrismUIQuickStart_148CF\/prism_qs_ui02.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px\" title=\"prism_qs_ui02\" border=\"0\" alt=\"prism_qs_ui02\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/PrismUIQuickStart_148CF\/prism_qs_ui02_thumb.jpg\" width=\"347\" height=\"233\" \/><\/a> <\/p>\n<p>2.\u5f93\u696d\u54e1\u306e\u540d\u524d\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u3001\u52d5\u7684\u306b View \u304c\u30ed\u30fc\u30c9\u3055\u308c\u3001\u8a73\u7d30\u304c\u8868\u793a\u3055\u308c\u308b<\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/PrismUIQuickStart_148CF\/prism_qs_ui03.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px\" title=\"prism_qs_ui03\" border=\"0\" alt=\"prism_qs_ui03\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/PrismUIQuickStart_148CF\/prism_qs_ui03_thumb.jpg\" width=\"345\" height=\"231\" \/><\/a> <\/p>\n<p>3.\u4ed6\u306e\u30bf\u30d6\u3092\u8868\u793a\u3059\u308b\u3068\u3001\u8ffd\u52a0\u306e\u60c5\u5831\u304c\u8868\u793a\u3055\u308c\u308b<\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/PrismUIQuickStart_148CF\/prism_qs_ui04.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px\" title=\"prism_qs_ui04\" border=\"0\" alt=\"prism_qs_ui04\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/PrismUIQuickStart_148CF\/prism_qs_ui04_thumb.jpg\" width=\"348\" height=\"233\" \/><\/a> <\/p>\n<h3>\u5b9f\u88c5\u306b\u3064\u3044\u3066<\/h3>\n<p>\u3053\u306e\u30b5\u30f3\u30d7\u30eb\u3067\u91cd\u8981\u306a\u306e\u306f\u3001Region \u306e\u5229\u7528\u3068\u3001View \u3092\u767a\u898b\u3057\u3001\u6ce8\u5165\u3059\u308b\u65b9\u6cd5<\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/PrismUIQuickStart_148CF\/prism_qs_ui05.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px\" title=\"prism_qs_ui05\" border=\"0\" alt=\"prism_qs_ui05\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/PrismUIQuickStart_148CF\/prism_qs_ui05_thumb.jpg\" width=\"353\" height=\"293\" \/><\/a> <\/p>\n<ul>\n<li><strong>Shell Vew <\/strong>:&nbsp; \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30e1\u30a4\u30f3\u30a6\u30a3\u30f3\u30c9\u30a6\u3002Left \u304a\u3088\u3073 Main Region \u3092\u542b\u3093\u3067\u3044\u308b <\/li>\n<li><strong>Left Region <\/strong>: \u3053\u306eRegion \u306f\u3001View \u3092\u898b\u3064\u3051\u51fa\u3057\u3001\u696d\u54e1\u30ea\u30b9\u30c8View\u3092\u542b\u3080 <\/li>\n<li><strong>Employees List View <\/strong>: \u5f93\u696d\u54e1\u30ea\u30b9\u30c8 <\/li>\n<li><strong>Main Region <\/strong>: \u5f93\u696d\u54e1\u30b5\u30de\u30ea\u30fcView(Employees Summary View) \u3092\u6ce8\u5165\u3059\u308b <\/li>\n<li><strong>Employees Summary View <\/strong>: \u5f93\u696d\u54e1\u306e\u30bf\u30d6 Region \u306b\u5f93\u696d\u54e1\u60c5\u5831\u3092 View\u6ce8\u5165\u3092\u884c\u3044\u3001\u8868\u793a\u3059\u308b <\/li>\n<li><strong>Tab Region <\/strong>: \u5f93\u696d\u54e1\u30b5\u30de\u30ea\u30fcView(Employees Summary View) \u306e\u4e2d\u306b\u3042\u308a\u3001\u5f93\u696d\u54e1\u8a73\u7d30(Employee Details) \u304a\u3088\u3073 \u30d7\u30ed\u30b8\u30a7\u30af\u30c8(Employee Project) View \u3092\u6301\u3064 <\/li>\n<li><strong>Employee Detals View <\/strong>: \u9078\u629e\u3055\u308c\u305f\u5f93\u696d\u54e1\u306e\u8a73\u7d30\u3092\u8868\u793a <\/li>\n<li><strong>Employees Project View<\/strong> : \u5f93\u696d\u54e1\u304c\u5f93\u4e8b\u3057\u3066\u3044\u308b\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u30ea\u30b9\u30c8\u3092\u8868\u793a <\/li>\n<\/ul>\n<h3>UI \u306e\u7d44\u307f\u7acb\u3066<\/h3>\n<p>\u30b5\u30f3\u30d7\u30eb\u3067\u306f\u3001View \u306e\u767a\u898b\u3068View\u306e\u6ce8\u5165\u3092\u884c\u3063\u3066\u3044\u308b<\/p>\n<h4>XAML \u3067 Region \u3092\u8a2d\u5b9a\u3059\u308b<\/h4>\n<ul>\n<li>Shell \u306f ShellView.xaml \u306b\u3066\u3001<strong>LeftRegion<\/strong>\u3001<strong>MainRegion<\/strong> \u306e2\u3064\u306e Region \u3092\u5b9a\u7fa9\u3059\u308b <\/li>\n<li>EmployeeSummaryView.xaml\u306b\u3066\u3001<strong>EmployeeSummaryView&nbsp; <\/strong>\u306f\u3001<strong>Tab <\/strong>\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3092\u542b\u307f\u3001<strong>TabRegion<\/strong> \u3092 \u5b9a\u7fa9\u3057\u3066\u3044\u308b <\/li>\n<li>EmployeeSummaryView.xmal\u306b\u3066\u3001<strong>TabRegion<\/strong> \u306f\u3001\u9078\u629e\u3055\u308c\u305f\u5f93\u696d\u54e1\u3078\u306e\u53c2\u7167\u3092\u63d0\u4f9b\u3059\u308b\u3001<strong>RegionContext <\/strong>\u3092\u5b9a\u7fa9\u3057\u3066\u3044\u308b <\/li>\n<\/ul>\n<h4>View \u306e\u8868\u793a<\/h4>\n<ol>\n<li>App.xaml.cs \u306e <strong>Application_Startup <\/strong>\u30e1\u30bd\u30c3\u30c9\u306f\u3001Bootstrapper \u3092\u751f\u6210\u3057\u3001\u8d77\u52d5\u3059\u308b <\/li>\n<li>Bootstrapper \u306e <strong>CreateModuleCatarog <\/strong>\u30e1\u30bd\u30c3\u30c9\u3067\u3001\u30e2\u30b8\u30e5\u30fc\u30eb\u30ab\u30bf\u30ed\u30b0\u304c\u8a2d\u5b9a\u304b\u3089\u30ed\u30fc\u30c9\u3055\u308c\u308b\u3002\u3053\u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u30ab\u30bf\u30ed\u30b0\u306f\u3001<strong>ModuleInit<\/strong> \u30af\u30e9\u30b9\u306b\u5b9f\u88c5\u3055\u308c\u305f <strong>EployeeModule<\/strong> \u306e\u307f\u3092\u5b9a\u7fa9\u3057\u3066\u304a\u308a\u3001\u8d77\u52d5\u5f8c\u3001\u76f4\u3061\u306bPrism\u306b\u3088\u308a\u30ed\u30fc\u30c9\u3055\u308c\u308b <\/li>\n<li><strong>EmployeeModule <\/strong>\u3067\u3001<strong>ModuleInit <\/strong>\u30af\u30e9\u30b9\u306e<strong>Initialize <\/strong>\u30e1\u30bd\u30c3\u30c9\u304cBootstrapper \u304b\u3089\u547c\u3073\u51fa\u3055\u308c\u308b\u3002\u3053\u306e\u30e1\u30bd\u30c3\u30c9\u306f\u3001\u3055\u307e\u3056\u307e\u306a\u3053\u3068\u3092\u884c\u3046\u3002\n<ol>\n<li><strong>IEmployeeDataService <\/strong>\u306e\u767b\u9332 <\/li>\n<li><strong>MainRegionController <\/strong>\u306e\u751f\u6210 <\/li>\n<li>\u30e9\u30e0\u30c0\u5f0f\u3092\u5229\u7528\u3057\u3001<strong>EmployeeListView<\/strong> \u3092 <strong>LeftRegion<\/strong> \u306b\u767b\u9332 <\/li>\n<li><strong>EmployeeDetailView <\/strong>\u304a\u3088\u3073 <strong>EmployeeProjectsView<\/strong> \u3092 <strong>TabRegion <\/strong>\u306b\u767b\u9332 <\/li>\n<\/ol>\n<\/li>\n<li>\u305d\u306e\u5f8c\u3001Bootstrapper \u306e <strong>CreateShell <\/strong>\u30e1\u30bd\u30c3\u30c9\u304c\u547c\u3073\u51fa\u3055\u308c\u3001<strong>LeftRegion<\/strong>\u304a\u3088\u3073<strong>MainRegion <\/strong>\u3092\u542b\u3080\u3001<strong>ShellView <\/strong>\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u304c\u751f\u6210\u3055\u308c\u308b <\/li>\n<li><strong>LeftRegion <\/strong>\u306e\u751f\u6210\u306b\u3066\u3001Prism \u306f\u3001LeftRegion \u306b\u767b\u9332\u3055\u308c\u305f\u30e9\u30e0\u30c0\u5f0f\u306b\u3088\u308a\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u5316\u3055\u308c\u305f<strong>EmployeeListView <\/strong>\u3092\u30a2\u30af\u30c6\u30a3\u30d6\u5316\u3057\u8868\u793a\u3059\u308b <\/li>\n<li><strong>MainRegion <\/strong>\u306b\u306f\u3001View \u304c\u767b\u9332\u3055\u308c\u3066\u3044\u306a\u3044\u306e\u3067\u3001\u306a\u306b\u3082\u8868\u793a\u3055\u308c\u306a\u3044 <\/li>\n<\/ol>\n<h4>EmployeeListView \u3067\u5f93\u696d\u54e1\u304c\u9078\u629e\u3055\u308c\u308b\u3068<\/h4>\n<ul>\n<li><strong>MainRegionController<\/strong> \u306e <strong>EmployeeSelected <\/strong>\u30e1\u30bd\u30c3\u30c9\u304c <strong>EmployeeSelectedEvent <\/strong>\u3092\u8cfc\u8aad\u3057\u3066\u3044\u308b\u3053\u3068\u306b\u3088\u308a\u3001<strong>EventAggreagator <\/strong>\u3092\u901a\u3057\u3066\u547c\u3073\u51fa\u3055\u308c\u308b\u3002\u3053\u306e\u30a4\u30d9\u30f3\u30c8\u306f\u3001<strong>EmployeeListViewModel <\/strong>\u30af\u30e9\u30b9\u306e<strong>SelectedEmployeeChanged <\/strong>\u30e1\u30bd\u30c3\u30c9\u304b\u3089\u767a\u884c\u3055\u308c\u308b\u3002 <\/li>\n<\/ul>\n<h4>EmployeeSelected \u30e1\u30bd\u30c3\u30c9\u3067\u5b9f\u884c\u3055\u308c\u308b\u3053\u3068<\/h4>\n<ol>\n<li>\u9078\u629e\u3055\u308c\u305f\u5f93\u696d\u54e1\u304c\u3001<strong>EmployeeDataService<\/strong> \u304b\u3089\u53c2\u7167\u3055\u308c\u308b <\/li>\n<li><strong>MainRegion <\/strong>\u304c<strong>RegionManager <\/strong>\u304b\u3089\u53c2\u7167\u3055\u308c\u3001\u30e1\u30bd\u30c3\u30c9\u306f\u3001<strong>EmployeeSummaryView <\/strong>\u3068\u3044\u3046\u540d\u524d\u306eView\u3092\u898b\u3064\u3051\u3088\u3046\u3068\u3059\u308b\u3002\u3068\u3044\u3046\u306e\u306f\u3001\u3053\u306eView\u306f\u307e\u3060\u751f\u6210\u3055\u308c\u3066\u304a\u3089\u305a\u3001\u30b3\u30f3\u30c6\u30ca\u304b\u3089\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u304c\u53c2\u7167\u3055\u308c\u3001\u660e\u793a\u7684\u306bView\u304c<strong>MainRegion <\/strong>\u306b\u6ce8\u5165\u3055\u308c\u308b\u3002 <\/li>\n<li><strong>EmployeeSummaryView<\/strong> \u304c\u751f\u6210\u3055\u308c\u308b\u3068\u304d\u3001<strong>TabRegion <\/strong>\u3082\u751f\u6210\u3055\u308c\u308b\u3002TabRegion \u306f\u3001<strong>RegionContext <\/strong>\u3092\u4fdd\u6301\u3057\u3066\u304a\u308a\u3001<strong>CurrentEmployee <\/strong>\u306b\u7d50\u3073\u3064\u3051\u3089\u308c\u308b(EmployeeSummary.xaml) \u3053\u306e\u3068\u304d\u3001\u4ee5\u4e0b\u306e\u3053\u3068\u304c\u8d77\u3053\u308b\u3002\n<ol>\n<li>Prism \u306f\u3001<strong>TabRegion <\/strong>\u304c\u8907\u6570\u306eView\u3092\u6301\u3063\u3066\u304a\u308a\u3001<strong>EmployeeDetailsView <\/strong>\u304a\u3088\u3073 <strong>EmployeeProjectsView <\/strong>\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u751f\u6210\u3057\u3001\u8868\u793a\u3059\u3079\u304d\u3067\u3042\u308b\u3053\u3068\u3092\u6c7a\u5b9a\u3059\u308b\u3002\u305d\u308c\u305e\u308c\u306eView \u306f\u3001<strong>RegionContext <\/strong>\u306e PropertyChange \u30a4\u30d9\u30f3\u30c8\u3092\u8cfc\u8aad\u3057\u3066\u3044\u308b <\/li>\n<li><strong>RegionContext <\/strong>\u306e\u30d0\u30a4\u30f3\u30c9\u304c\u66f4\u65b0\u3055\u308c\u308b\u3068\u3001<strong>PropertyChanged <\/strong>\u30a4\u30d9\u30f3\u30c8\u304c\u30c8\u30ea\u30ac\u30fc\u3055\u308c\u308b <\/li>\n<li><strong>EmployeeDetailsView <\/strong>\u304a\u3088\u3073 <strong>EmployeeProjectsView <\/strong>\u306f <strong>RegionContext <\/strong>\u30d7\u30ed\u30d1\u30c6\u30a3\u304c\u5909\u66f4\u3055\u308c\u305f\u901a\u6c17\u3092\u53d7\u3051\u3001\u7d50\u3073\u3064\u3051\u3089\u308c\u305f View Model \u306f\u66f4\u65b0\u3055\u308c\u308b\u305f\u3081\u3001\u9078\u629e\u3055\u308c\u305f\u5f93\u696d\u54e1\u304c\u8868\u793a\u3055\u308c\u308b <\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<h3>View \u306e\u767a\u898b\u3068\u6ce8\u5165\u306e\u9069\u7528<\/h3>\n<p>View \u3092\u767a\u898b\u3059\u308b\u624b\u6cd5\u3067\u306f\u3001\u30e2\u30b8\u30e5\u30fc\u30eb\u3067\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u306b\u683c\u7d0d\u3055\u308c\u305f\u30da\u30a2(View\u578b\u3068Region\u540d) \u306b\u3082\u3068\u3065\u3044\u3066\u767b\u9332\u3055\u308c\u305f\u3001 Region\u306e\u5185\u5074\u306bView\u3092\u5f15\u304d\u8fbc\u3080\u3002\u3053\u306e\u767b\u9332\u306f\u3001<strong>RegionViewRegistory<\/strong> \u3068\u3044\u3046\u540d\u524d\u3002Region \u304c\u751f\u6210\u3055\u308c\u308b\u3068\u304d\u3001RegionViewRegistory \u306f\u3001Region\u540d\u306b\u7d50\u3073\u3064\u3051\u3089\u308c\u305f\u3059\u3079\u3066\u306eView\u578b\u3092\u63a2\u3057\u3060\u3059\u3002\u4e00\u81f4\u3059\u308bView\u304c\u751f\u6210\u3055\u308c\u3001Region\u306b\u5f15\u304d\u8fbc\u3080\u3002\u3053\u306e\u624b\u6cd5\u3092\u5229\u7528\u3059\u308b\u3068\u304d\u3001Region \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306f\u3001\u751f\u6210\u3057\u6ce8\u5165\u3059\u308bView\u3092\u63a2\u3059\u305f\u3081\u306e\u540d\u524d\u3092\u660e\u793a\u7684\u306b\u306f\u4fdd\u6301\u3057\u306a\u3044\u3002<\/p>\n<p>\u4e00\u822c\u7684\u306b\u3001\u4ed6\u306eView\u306b\u30db\u30b9\u30c8\u3055\u308c\u308bView\u306f\u3001\u5b50View\u3067\u5229\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u3092\u4fdd\u6301\u3059\u308b\u3002\u30b5\u30f3\u30d7\u30eb\u3067\u306f\u3001\u52d5\u7684\u306b\u5b50View\u3092\u30ed\u30fc\u30c9\u3057\u305f\u3068\u304d\u306b\u3001\u5f93\u696d\u54e1\u306e\u8a73\u7d30\u3092\u8868\u793a\u3059\u308b\u305f\u3081\u306b\u3001\u3069\u306e\u5f93\u696d\u54e1\u304c\u73fe\u5728\u9078\u629e\u3055\u308c\u3066\u3044\u308b\u304b\u3092\u77e5\u308b\u5fc5\u8981\u304c\u3042\u308b\u3002<\/p>\n<p>View\u306e\u6ce8\u5165\u624b\u6cd5\u306f\u3001View \u3092 \u3059\u3067\u306b\u5b58\u5728\u3057\u3066\u3044\u308b Region \u306e\u62bc\u3057\u8fbc\u3080\u3053\u3068\u3092\u8a31\u53ef\u3059\u308b\u3002\u3053\u308c\u306f\u3001View\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u751f\u6210\u3059\u308b\u3053\u3068\u3092\u8981\u6c42\u3057\u3001Region \u3078\u306e\u53c2\u7167\u3092\u53d6\u5f97\u3057\u3001\u305d\u308c\u305e\u308c\u3092 Region \u306e Add \u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3063\u3066<strong>RegionViewRegisory <\/strong>\u3067\u7d50\u3073\u3064\u3051\u308b\u3002<\/p>\n<h4>View \u767a\u898b\u624b\u6cd5\u3068View\u6ce8\u5165\u624b\u6cd5<\/h4>\n<ul>\n<li>View \u767a\u898b\u30e2\u30c7\u30eb\u306b\u306f\u3001\u30bf\u30a4\u30df\u30f3\u30b0\u306e\u554f\u984c\u304c\u306a\u3044\u3002\u4f8b\u3048\u3070\u3001\u3042\u308b\u30e2\u30b8\u30e5\u30fc\u30eb\u304cView\u3092Region\u306b\u8ffd\u52a0\u3059\u308b\u3053\u3068\u3092\u8a66\u307f\u308b\u5834\u5408\u306b\u3001\u751f\u6210\u3055\u308c\u3066\u3044\u306a\u3044\u3068\u3044\u3046\u3053\u3068\u304c\u306a\u3044\u3002 <\/li>\n<li>\u540c\u3058Region\u306e\u8907\u6570\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u8868\u793a\u3059\u308b\u306e\u304c\u7c21\u5358\u3002\u306a\u305c\u306a\u3089\u3001\u7279\u5b9aRegion\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u898b\u3064\u3051\u3001View\u306b\u6ce8\u5165\u3059\u308b\u305f\u3081\u306e \u306e\u30b9\u30b3\u30fc\u30d7\u7ba1\u7406\u306b\u3064\u3044\u3066\u77e5\u308b\u5fc5\u8981\u304c\u306a\u3044\u305f\u3081\u3002 <\/li>\n<li><strong>RegionViewRegistory <\/strong>\u30af\u30e9\u30b9\u306b\u3001<strong>GetContents <\/strong>\u30e1\u30bd\u30c3\u30c9\u3092\u5229\u7528\u3057\u3066\u3001\u7279\u5b9a\u306eRegion\u306b\u7d50\u3073\u3064\u3051\u3089\u308c\u305f\u3059\u3079\u3066\u306eView\u3092\u53d6\u5f97\u3059\u308b\u554f\u3044\u5408\u308f\u305b\u3092\u6295\u3052\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002\u4f8b\u3048\u3070\u3001\u3053\u306e\u30ea\u30b9\u30c8\u306f\u3001\u30e1\u30cb\u30e5\u30fc\u306b\u5bfe\u5fdc\u4ed8\u3051\u3089\u308c\u308b\u3002\n<ul>\n<li>View\u306e\u767a\u898b\u3068\u5408\u6210\u306b\u304a\u3044\u3066\u3001Region\u306f\u3001Visual Tree\u306b\u8ffd\u52a0\u3055\u308c\u308b\u3068\u3059\u3050\u306b\u914d\u7f6e\u3055\u308c\u308b\u3002\u306a\u306e\u3067\u3001View\u304cRegion \u306b\u8ffd\u52a0\u3055\u308c\u305f\u3089\u3001\u5236\u5fa1\u3057\u306b\u304f\u3044\u3002\u3082\u3057\u3001View \u3092\u72d9\u3063\u305f\u6642\u306b\u30ed\u30fc\u30c9\u3057\u305f\u3044\u5834\u5408\u3001View\u306e\u767a\u898b\u624b\u6cd5\u3067\u306f\u56f0\u96e3\u3002 <\/li>\n<li>\u30b5\u30f3\u30d7\u30eb\u3067\u306f\u3001<strong>DetailRegion <\/strong>Region\u306f\u3001<strong>EmployeeDetails <\/strong>View \u3092\u53d6\u5f97\u3057\u62bc\u3057\u8fbc\u3080\u3002View\u6ce8\u5165\u30e2\u30c7\u30eb\u306f\u3001\u3053\u3053\u3067\u306f\u3001\u30b9\u30b3\u30fc\u30d7\u4ed8\u304dRegion\u306e\u5229\u7528\u6cd5\u3092\u898b\u305b\u308b\u305f\u3081\u306b\u4f7f\u308f\u308c\u3066\u3044\u308b\u3002\u5f93\u696d\u54e1\u3092\u9078\u629e\u3057\u305f\u3068\u304d\u3001\u65b0\u3057\u3044 <strong>EmployeeDetailsView <\/strong>\u304c\u751f\u6210\u3055\u308c\u3001\u5fc5\u8981\u306a\u3089\u3001<strong>EmployeeController <\/strong>\u306b\u3088\u308a\u3001<strong>DetailRegion <\/strong>Region\u306b\u62bc\u3057\u8fbc\u307e\u308c\u308b\u3002 <\/li>\n<\/ul>\n<\/li>\n<li>View \u306e\u767a\u898b\u3068\u5408\u6210\u306f\u3001Region\u304c\u540c\u6642\u306b\u540c\u3058View\u306e\u8907\u6570\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u6301\u3064\u5834\u5408\u306a\u3069\u3001\u30b9\u30b3\u30fc\u30d7\u4ed8\u304dRegion Manager \u304c\u5fc5\u8981\u306a\u5834\u5408\u306f\u4f7f\u7528\u3059\u3079\u304d\u3067\u306a\u3044\u3002\u306a\u305c\u306a\u3089\u3001Region \u306f\u3001Region Manager \u304b\u3089\u3001\u4e00\u610f\u306a\u540d\u524d\u3067\u767b\u9332\u3055\u308c\u3066\u3044\u308bView\u3092\u53d6\u5f97\u3059\u308b\u305f\u3081\u3002\n<ul>\n<li>\u30b5\u30f3\u30d7\u30eb\u3067\u306f\u3001\u30ea\u30b9\u30c8\u304b\u3089\u5f93\u696d\u54e1\u304c\u9078\u629e\u3055\u308c\u305f\u6642\u306b\u3001\u3044\u304f\u3064\u304b\u306e<strong>EmployeeDetailsView <\/strong>\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u304c\u751f\u6210\u3055\u308c\u3001\u30e1\u30e2\u30ea\u306b\u4fdd\u6301\u3055\u308c\u308b\u3002\u305d\u308c\u305e\u308c\u306eView\u306f\u3001\u72ec\u81ea\u306b <strong>TabRegion <\/strong>\u3092\u3082\u3063\u3066\u3044\u308b\u305f\u3081\u3001Viewha\u305d\u308c\u305e\u308c\u72ec\u81ea\u306e Region Manager \u3092\u5fc5\u8981\u3068\u3059\u308b\u3002 <\/li>\n<li>\u3042\u305f\u3089\u3057\u3044 <strong>TabRegion <\/strong>\u304c\u751f\u6210\u3055\u308c\u308b\u3068\u304d\u3001<strong>Project <\/strong>\u30e2\u30b8\u30e5\u30fc\u30eb\u306b\u767b\u9332\u3055\u308c\u305f\u3001<strong>ProjectsListView <\/strong>\u306e\u65b0\u3057\u3044\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3082\u5f15\u304d\u51fa\u3055\u308c\u3001\u8868\u793a\u3055\u308c\u308b\u3002 <\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h3>View \u306e\u767b\u9332<\/h3>\n<p>Prism \u30e9\u30a4\u30d6\u30e9\u30ea\u306e<strong>RegionViewRegisotry <\/strong>\u30af\u30e9\u30b9\u306f\u3001Region\u540d\u3001View\u578b\u30da\u30a2\u306e\u767b\u9332\u304a\u3088\u3073\u53c2\u7167\u306b\u8cac\u4efb\u3092\u6301\u3064\u3002\u4e00\u822c\u7684\u306b\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30e2\u30b8\u30e5\u30fc\u30eb\u306f\u3001\u81ea\u5206\u306e View \u3092<strong>RegionViewRegistory <\/strong>\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u5229\u7528\u3057\u3066\u3001 <strong>Initialize <\/strong>\u30e1\u30bd\u30c3\u30c9\u3067\u767b\u9332\u3059\u308b\u3002<\/p>\n<p><strong>EmployeeListView<\/strong> \u3068 <strong>LeftRegion <\/strong>\u3092 <strong>EmployeeModule<\/strong> \u30e2\u30b8\u30e5\u30fc\u30eb\u306e <strong>ModuleInit<\/strong> \u30af\u30e9\u30b9\u306e <strong>Initialize<\/strong> \u30e1\u30bd\u30c3\u30c9\u3067\u767b\u9332\u3059\u308b\u4f8b\u3002<\/p>\n<pre class=\"prettyprint linenums\">this.regionManager.RegisterViewWithRegion( RegionNames.LeftRegion,\r\n                                  () =&gt; this.container.Resolve<employeelistview>());<\/employeelistview><\/pre>\n<p>Prism \u30e9\u30a4\u30d6\u30e9\u30ea \u306e<strong>RegionViewRegistry<\/strong> \u30af\u30e9\u30b9\u306e <strong>RegisterViewWithRegion <\/strong>\u30e1\u30bd\u30c3\u30c9\u306f\u3001Region\u540d\u3068View\u3092\u7d50\u3073\u3064\u3051\u3066\u767b\u9332\u3059\u308b\u306e\u306b\u5229\u7528\u3055\u308c\u308b\u3002\u3053\u306e\u30e1\u30bd\u30c3\u30c9\u3092\u5229\u7528\u3059\u308b\u306b\u306f2\u3064\u306e\u65b9\u6cd5\u304c\u3042\u308b\u3002<\/p>\n<ul>\n<li>RegionViewRegistory \u3092\u76f4\u63a5\u5229\u7528\u3059\u308b <\/li>\n<li>RegionManager \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u5229\u7528\u3059\u308b(\u7c21\u5358\u306bRegionViewRegistory\u30af\u30e9\u30b9\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u69d8\u306b\u62e1\u5f35\u30e1\u30bd\u30c3\u30c9\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u308b) <\/li>\n<\/ul>\n<blockquote>\n<p>RegionManager \u306e\u62e1\u5f35\u30e1\u30bd\u30c3\u30c9\u306f\u7c21\u5358\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u305f\u3081\u306b\u5b58\u5728\u3057\u3066\u304a\u308a\u3001View \u3068 Region Manager \u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u767b\u9332\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u306a\u3044\u3002Region\u3092\u7279\u5b9a\u306e\u540d\u524d\u3067\u751f\u6210\u3057\u305f\u5834\u5408\u306f\u3001Scope\u4ed8\u304d Region Manager\u304b\u306b\u95a2\u308f\u3089\u305a\u767b\u9332\u3055\u308c\u3001View \u306f\u305d\u3053\u306b\u5dee\u3057\u8fbc\u307e\u308c\u308b\u3002<\/p>\n<\/blockquote>\n<p>RegisterViewWithRegion \u30e1\u30bd\u30c3\u30c9\u306f\u30012\u3064\u306e\u30aa\u30fc\u30d0\u30fc\u30ed\u30fc\u30c9\u3092\u6301\u3063\u3066\u3044\u308b<\/p>\n<ul>\n<li>RegisterViewWithRegion(string regionName, Type viewType); <\/li>\n<li>RegisterViewWithRegion(string regionName, Func&lt;object&gt; getContentDelegete); <\/li>\n<\/ul>\n<p>View\u3092\u76f4\u63a5\u767b\u9332\u3057\u305f\u3044\u5834\u5408\u3001\u6700\u521d\u306e\u30aa\u30fc\u30d0\u30fc\u30ed\u30fc\u30c9\u3092\u5229\u7528\u3059\u308b\u3002&#8221;presenter first&#8221; \u307e\u305f\u306f\u3001&#8221;ViewModel-first&#8221; \u30a2\u30d7\u30ed\u30fc\u30c1\u306b\u304a\u3044\u3066\u3001View\u306e\u751f\u6210\u306b\u8cac\u4efb\u3092\u6301\u3064\u30d7\u30ec\u30bc\u30f3\u30bf\u30fc\u3092\u89e3\u6c7a\u3059\u308b\u30c7\u30ea\u30b2\u30fc\u30c8\u3092<strong>Initialize<\/strong>\u30e1\u30bd\u30c3\u30c9\u3067\u63d0\u4f9b\u3057\u305f\u3044\u5834\u5408\u306a\u3069\u306f\u30012\u3064\u3081\u306e\u30aa\u30fc\u30d0\u30fc\u30ed\u30fc\u30c9\u3092\u5229\u7528\u3059\u308b\u3002<\/p>\n<p>\u6700\u521d\u306e\u30aa\u30fc\u30d0\u30fc\u30ed\u30fc\u30c9\u3092\u4f7f\u7528\u3057\u305f\u5834\u5408\u306f\u3001Region \u304c\u751f\u6210\u3055\u308c\u305f\u3068\u304d\u3001\u7d50\u3073\u3064\u3051\u3089\u308c\u305fView \u3092\u767b\u9332\u3055\u308c\u305f\u4e2d\u304b\u3089\u63a2\u3059\u3002\u4e00\u81f4\u3057\u305fView\u304c\u5f15\u3063\u5f35\u308a\u51fa\u3055\u308c\u3001Region\u306e\u4e2d\u306b\u30ed\u30fc\u30c9\u3055\u308c\u308b\u3002\u65b0\u3057\u3044View\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306f\u3001Service Locator \u3092\u4f7f\u3063\u3066\u751f\u6210\u3055\u308c\u308b\u3002<\/p>\n<h3>View \u9593\u3067 Context \u3092\u5171\u6709\u3059\u308b<\/h3>\n<p>\u30d7\u30ed\u30d1\u30c6\u30a3\u304c\u63a5\u7d9a\u3055\u308c\u305f<strong>RegionContext <\/strong>\u306f\u3001context \u3092 \u89aaView \u3068\u89aaView\u304c\u30db\u30b9\u30c8\u3059\u308b\u5b50View\u3068\u3067\u5171\u6709\u3057\u305f\u3044\u5834\u5408\u3001\u4fbf\u5229\u3067\u3042\u308b\u3002\u3053\u306e\u63a5\u7d9a\u3055\u308c\u305f\u30d7\u30ed\u30d1\u30c6\u30a3\u306f\u3001\u30b7\u30f3\u30d7\u30eb\u304b\u8907\u96d1\u304b\u306b\u95a2\u308f\u3089\u305a\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4fdd\u6301\u3067\u304d\u308b\u3002<\/p>\n<p>UI \u5408\u6210\u306e\u30b5\u30f3\u30d7\u30eb\u306b\u304a\u3044\u3066\u3001<strong>RegionContext <\/strong>\u306f\u3001\u9078\u629e\u3055\u308c\u305f\u5f93\u696d\u54e1ID\u3092 ProjectListView \u306b\u53d7\u3051\u6e21\u3057\u3001View\u306b\u3001\u5f93\u696d\u54e1\u304c\u5f93\u4e8b\u3057\u3066\u3044\u308b\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u8868\u793a\u3059\u308b\u306e\u306b\u5229\u7528\u3055\u308c\u308b\u3002<\/p>\n<p>EmployeeSummaryView.xmal \u30d5\u30a1\u30a4\u30eb\u3067\u306e\u4f8b<\/p>\n<pre class=\"prettyprint linenums\">&lt;sdk:TabControl Grid.Row=\"1\" \r\n                AutomationProperties.AutomationId=\"EmployeeSummaryTabControl\" \r\n                Margin=\"8\"\r\n                prism:RegionManager.RegionName=\"TabRegion\"\r\n                prism:RegionManager.RegionContext=\"{Binding CurrentEmployee}\"\r\n                Width=\"Auto\" Height=\"Auto\" HorizontalAlignment=\"Stretch\"&gt;\r\n&lt;\/sdk:TabControl&gt;<\/pre>\n<p>View\u3067\u3001<strong>RegionContext<\/strong> \u3092\u53d6\u5f97\u3059\u308b\u305f\u3081\u306b\u3001<strong>GetObservableContext <\/strong>\u30b9\u30bf\u30c6\u30a3\u30c3\u30af\u30e1\u30bd\u30c3\u30c9\u304c <strong>RegionContext<\/strong> \u30af\u30e9\u30b9\u3067\u4f7f\u308f\u308c\u308b\u3002\u3053\u308c\u306f\u3001View\u306b\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u6e21\u3057\u3001<strong>Value <\/strong>\u30d7\u30ed\u30d1\u30c6\u30a3\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002<\/p>\n<p>EmployeeDetailsView.xaml.cs<\/p>\n<pre class=\"prettyprint linenums\">employeeDetailsViewModel.CurrentEmployee = \r\n     RegionContext.GetObservableContext(this).Value as Employee; <\/pre>\n<p><strong>RegionContext <\/strong>\u306e\u5024\u306f\u3001\u65b0\u3057\u3044\u5024\u3092 <strong>Value <\/strong>\u30d7\u30ed\u30d1\u30c6\u30a3\u306b\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u3067\u7c21\u5358\u306b\u5909\u66f4\u3067\u304d\u308b\u3002<strong>RegionContext <\/strong>\u30d7\u30ed\u30d1\u30c6\u30a3\u304c\u5909\u66f4\u3055\u308c\u305f\u3053\u3068\u3082\u3001\u30a4\u30d9\u30f3\u30c8\u3092\u8cfc\u8aad\u3059\u308b\u3053\u3068\u3067\u691c\u77e5\u3067\u304d\u308b\u3002<\/p>\n<p>EmployeeDetailsView.xmal.cs<\/p>\n<pre class=\"prettyprint linenums\">RegionContext.GetObservableContext(this).PropertyChanged += (s, e)\r\n                    =&gt;\r\n                    employeeDetailsViewModel.CurrentEmployee =\r\n                    RegionContext.GetObservableContext(this).Value\r\n                    as Employee;<\/pre>\n<blockquote>\n<p><strong>DataContext <\/strong>\u30d7\u30ed\u30d1\u30c6\u30a3\u306f\u3001Context \u306e\u5171\u6709\u306b\u5229\u7528\u3067\u304d\u306a\u3044\u3002\u306a\u305c\u306a\u3089\u3001<strong>DataContext <\/strong>\u30d7\u30ed\u30d1\u30c6\u30a3\u306f\u3001\u4e00\u822c\u7684\u306b\u3001View \u306b\u5bfe\u3059\u308b\u3001View Model \u3092\u4fdd\u6301\u3059\u308b\u306e\u306b\u5229\u7528\u3055\u308c\u308b\u305f\u3081\u3002<\/p>\n<\/blockquote>\n<p><iframe style=\"width: 120px; height: 240px\" marginheight=\"0\" src=\"http:\/\/rcm-jp.amazon.co.jp\/e\/cm?lt1=_blank&amp;bc1=FFFFFF&amp;IS2=1&amp;bg1=FFFFFF&amp;fc1=000000&amp;lc1=0000FF&amp;t=typea-pm-22&amp;o=9&amp;p=8&amp;l=as4&amp;m=amazon&amp;f=ifr&amp;ref=ss_til&amp;asins=073565610X\" frameborder=\"0\" marginwidth=\"0\" scrolling=\"no\"><\/iframe><iframe style=\"width: 120px; height: 240px\" marginheight=\"0\" src=\"http:\/\/rcm-jp.amazon.co.jp\/e\/cm?lt1=_blank&amp;bc1=FFFFFF&amp;IS2=1&amp;bg1=FFFFFF&amp;fc1=000000&amp;lc1=0000FF&amp;t=typea-pm-22&amp;o=9&amp;p=8&amp;l=as4&amp;m=amazon&amp;f=ifr&amp;ref=ss_til&amp;asins=1935182501\" frameborder=\"0\" marginwidth=\"0\" scrolling=\"no\"><\/iframe><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; http:\/\/msdn.microsoft.com\/en-us\/library\/ff921174(v=pandp.40) \u30d3\u30b8\u30cd\u30b9\u30b7\u30ca\u30ea\u30aa UI \u5408\u6210 \u306e \u30b5\u30f3\u30d7\u30eb\u306f\u3001\u67b6\u7a7a\u306e\u30ea\u30bd\u30fc\u30b9\u7ba1\u7406\u30b7\u30b9\u30c6\u30e0\u306b\u57fa\u3065\u3044\u3066\u3044 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"sns_share_botton_hide":"","vkExUnit_sns_title":"","_vk_print_noindex":"","sitemap_hide":"","_veu_custom_css":"","veu_display_promotion_alert":"","vkexunit_cta_each_option":"","footnotes":""},"categories":[55,54],"tags":[],"class_list":["post-342","post","type-post","status-publish","format-standard","hentry","category-prism","category-silverlight"],"veu_head_title_object":{"title":"","add_site_title":""},"_links":{"self":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/posts\/342","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=342"}],"version-history":[{"count":0,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/posts\/342\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=342"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=342"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=342"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}