{"id":696,"date":"2011-03-20T16:56:35","date_gmt":"2011-03-20T08:56:35","guid":{"rendered":"http:\/\/blog.newnaw.com\/?p=696"},"modified":"2011-03-20T16:56:35","modified_gmt":"2011-03-20T08:56:35","slug":"arcgis-api-for-windows-phone%e5%bc%80%e5%8f%91%e5%ae%9e%e4%be%8b4%e7%82%b9%e5%87%bb%e6%9f%a5%e7%9c%8b%e8%b6%85%e5%b8%82%e4%bf%a1%e6%81%af","status":"publish","type":"post","link":"https:\/\/blog.newnaw.com\/?p=696","title":{"rendered":"ArcGIS API for Windows Phone\u5f00\u53d1\u5b9e\u4f8b(4):\u70b9\u51fb\u67e5\u770b\u8d85\u5e02\u4fe1\u606f"},"content":{"rendered":"<p>\u3000\u3000\u672c\u6587\u5185\u5bb9\uff1aSilverlight\u7684\u81ea\u5b9a\u4e49UserControl\uff0cNavigationService\uff08\u9875\u9762\u5bfc\u822a\uff09\uff0cWP\u7684Application Bar\uff0cArcGIS API\u7684ElementLayer\u3002<br \/>\u3000\u3000\u4e0a\u4e00\u8282\u4e2d\uff0c\u5df2\u7ecf\u5b8c\u6210\u4e86\u7a0b\u5e8f\u7684\u51c6\u5907\u5de5\u4f5c\uff0c\u5229\u7528FeatureLayer\u6765\u663e\u793a\u8d85\u5e02\u4f4d\u7f6e\uff0c\u63a5\u4e0b\u6765\u7684\u51e0\u7bc7\u6587\u7ae0\u4e2d\u6211\u4eec\u5c31\u6765\u4f9d\u6b21\u5b9e\u73b0\u7a0b\u5e8f\u7684\u56db\u4e2a\u529f\u80fd\u70b9\uff1a  <\/p>\n<ul>\n<li>\u70b9\u51fb\u67e5\u770b\u67d0\u4e2a\u8d85\u5e02\u7684\u8be6\u7ec6\u4fe1\u606f\uff1b\n<li>\u6309\u7a7a\u95f4\u8303\u56f4\u67e5\u770b\u67d0\u51e0\u4e2a\u5e97\u9762\u7684\u9500\u552e\u603b\u989d\uff1b\n<li>\u6309\u65f6\u95f4\u7684\u65b9\u5f0f\u52a8\u6001\u67e5\u770b\u6bcf\u4e2a\u5e97\u9762\u7684\u8425\u4e1a\u60c5\u51b5\uff1b\n<li>\u5bf9\u67d0\u4e2a\u5e97\u9762\u7684\u8fd1\u671f\u8425\u4e1a\u60c5\u51b5\u505a\u51fa\u5177\u4f53\u5206\u6790\u3002<\/li>\n<\/ul>\n<p>\u3000\u3000\u7b2c\u4e00\u4e2a\u529f\u80fd\u5728GIS\u4e2d\u53eb\u505aIdentify\u3002\u8fd9\u4e2a\u529f\u80fd\u7684\u4f5c\u7528\u662f\uff0c\u5f53\u4f7f\u7528\u8005\u6fc0\u6d3b\u8be5\u529f\u80fd\u540e\uff0c\u70b9\u51fb\u5730\u56fe\u4e0a\u7684\u67d0\u4e2a\u8d85\u5e02\u56fe\u6807\uff0c\u4f1a\u5f39\u51fa\u4e00\u4e2a\u7c7b\u4f3c\u6c14\u6ce1\u7684\u5c0f\u7a97\u53e3\uff08InfoWindow\uff09\u663e\u793a\u8d85\u5e02\u540d\u79f0\uff0c\u70b9\u51fb\u8fd9\u4e2a\u6c14\u6ce1\u540e\uff0c\u7a0b\u5e8f\u53ef\u5bfc\u822a\u5230\u53e6\u4e00\u4e2a\u9875\u9762\u6765\u663e\u793a\u8be5\u8d85\u5e02\u7684\u8be6\u7ec6\u4fe1\u606f\u3002<br \/>\u3000\u3000\u7531\u4e8e\u5f88\u591a\u529f\u80fd\u90fd\u662f\u5229\u7528\u5355\u51fb\u5730\u56fe\u7684\u65b9\u5f0f\u6765\u5b9e\u73b0\uff0c\u4e3a\u4e86\u4e0d\u8ba9\u8fd9\u4e9b\u529f\u80fd\u6df7\u6dc6\uff0c\u6211\u5c06\u7a0b\u5e8f\u4e2d\u7684\u56db\u4e2a\u529f\u80fd\u5206\u522b\u505a\u6210\u4e0d\u540c\u7684\u5de5\u5177\uff08\u5c01\u88c5\u6210\u4e0d\u540c\u7684\u7c7b\uff09\uff0c\u70b9\u51fb\u67d0\u4e2a\u5de5\u5177\u540e\u5c31\u6fc0\u6d3b\u5b83\uff0c\u6b64\u65f6\u5730\u56fe\u6216\u5176\u4e2d\u7684\u63a7\u4ef6\u5c31\u54cd\u5e94\u8be5\u5de5\u5177\u7684\u529f\u80fd\u3002<br \/>\u3000\u3000\u6211\u4eec\u5728\u5de5\u7a0b\u4e2d\u65b0\u5efa\u4e00\u4e2a\u6587\u4ef6\u5939Tools\uff0c\u653e\u7f6e\u4e0e\u529f\u80fd\u70b9\u6709\u5173\u7684\u7c7b\uff1b\u5e76\u5728\u5176\u4e2d\u65b0\u5efa\u4e00\u4e2aIdentify.cs\u7684\u6587\u4ef6\uff0c\u7528\u6765\u5b9e\u73b0\u6211\u4eec\u7684\u7b2c\u4e00\u4e2a\u529f\u80fd\u70b9\u3002  <\/p>\n<p><a href=\"http:\/\/blog.newnaw.com\/wp-content\/uploads\/2011\/03\/clip_image0022.jpg\"><img decoding=\"async\" loading=\"lazy\" style=\"background-image: none; border-right-width: 0px; margin: 0px auto 5px; padding-left: 0px; padding-right: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px\" title=\"clip_image002\" border=\"0\" alt=\"clip_image002\" src=\"http:\/\/blog.newnaw.com\/wp-content\/uploads\/2011\/03\/clip_image002_thumb2.jpg\" width=\"167\" height=\"296\"><\/a><\/p>\n<div style=\"border-bottom: silver 1px solid; text-align: left; border-left: silver 1px solid; padding-bottom: 4px; line-height: 12pt; background-color: #f4f4f4; margin: 20px 0px 10px; padding-left: 4px; width: 97.5%; padding-right: 4px; font-family: 'Courier New', courier, monospace; direction: ltr; max-height: 200px; font-size: 8pt; overflow: auto; border-top: silver 1px solid; cursor: text; border-right: silver 1px solid; padding-top: 4px\" id=\"codeSnippetWrapper\">\n<div style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\" id=\"codeSnippet\">\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum1\">   1:<\/span> <span style=\"color: #0000ff\">public<\/span> <span style=\"color: #0000ff\">class<\/span> Identify<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum2\">   2:<\/span>     {<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum3\">   3:<\/span>         <span style=\"color: #0000ff\">private<\/span> <span style=\"color: #0000ff\">bool<\/span> _isActivated;<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum4\">   4:<\/span>         <span style=\"color: #0000ff\">private<\/span> ElementLayer _elementLayer; <span style=\"color: #008000\">\/\/InfoWindow layer <\/span><\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum5\">   5:<\/span>         <span style=\"color: #0000ff\">public<\/span> Map _map1 { get; set; }<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum6\">   6:<\/span>         <span style=\"color: #0000ff\">public<\/span> GraphicsLayer GLayer { get; set; } <span style=\"color: #008000\">\/\/supermarket layer<\/span><\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum7\">   7:<\/span>         <span style=\"color: #0000ff\">public<\/span> <span style=\"color: #0000ff\">bool<\/span> IsActivated<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum8\">   8:<\/span>         {<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum9\">   9:<\/span>             get { <span style=\"color: #0000ff\">return<\/span> _isActivated; }<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum10\">  10:<\/span>             set<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum11\">  11:<\/span>             {<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum12\">  12:<\/span>                 <span style=\"color: #0000ff\">if<\/span> (_isActivated != <span style=\"color: #0000ff\">value<\/span>)<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum13\">  13:<\/span>                 {<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum14\">  14:<\/span>                     _isActivated = <span style=\"color: #0000ff\">value<\/span>;<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum15\">  15:<\/span>                     <span style=\"color: #0000ff\">if<\/span> (<span style=\"color: #0000ff\">value<\/span>)<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum16\">  16:<\/span>                     {<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum17\">  17:<\/span>                         <span style=\"color: #0000ff\">if<\/span>(_elementLayer ==<span style=\"color: #0000ff\">null<\/span>)<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum18\">  18:<\/span>                             _ elementLayer = <span style=\"color: #0000ff\">new<\/span> ElementLayer();<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum19\">  19:<\/span>                         <span style=\"color: #0000ff\">if<\/span> (!_map1.Layers.Contains(_elementLayer))<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum20\">  20:<\/span>                             _map1.Layers.Add(_elementLayer);<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum21\">  21:<\/span>                         GLayer.MouseLeftButtonDown += GLayer_MouseLeftButtonDown;<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum22\">  22:<\/span>                     }<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum23\">  23:<\/span>                     <span style=\"color: #0000ff\">else<\/span><\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum24\">  24:<\/span>                     {<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum25\">  25:<\/span>                         <span style=\"color: #0000ff\">if<\/span> (_map1.Layers.Contains(_elementLayer))<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum26\">  26:<\/span>                             _map1.Layers.Remove(_elementLayer);<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum27\">  27:<\/span>                         GLayer.MouseLeftButtonDown -= GLayer_MouseLeftButtonDown;<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum28\">  28:<\/span>                         <span style=\"color: #0000ff\">if<\/span> (GLayer.SelectedGraphics.Count() &gt; 0)<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum29\">  29:<\/span>                             GLayer.SelectedGraphics.ToList()[0].UnSelect();<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum30\">  30:<\/span>                         _ elementLayer.Children.Clear();<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum31\">  31:<\/span>                     }<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum32\">  32:<\/span>                 }<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum33\">  33:<\/span>             }<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum34\">  34:<\/span>         }<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum35\">  35:<\/span>         <\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum36\">  36:<\/span>         <span style=\"color: #0000ff\">public<\/span> Identify(Map map,GraphicsLayer glayer)<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum37\">  37:<\/span>         {<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum38\">  38:<\/span>             _map1 = map;<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum39\">  39:<\/span>             GLayer = glayer;<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum40\">  40:<\/span>         }<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum41\">  41:<\/span>     }<\/pre>\n<p><!--CRLF--><\/div>\n<\/div>\n<p>\u5728\u8fd9\u4e2a\u7c7b\uff08Identify\u5de5\u5177\uff09\u7684\u6784\u9020\u51fd\u6570\u4e2d\uff0c\u6709\u4e24\u4e2a\u53c2\u6570\uff1a\u4e00\u4e2aMap\u63a7\u4ef6\u548c\u4e00\u4e2aGraphicsLayer\uff0c\u5206\u522b\u662f\u6211\u4eec\u7a0b\u5e8f\u4e2d\u7684Map\u63a7\u4ef6\u548c\u8d85\u5e02\u56fe\u5c42FeatureLayer\uff08\u7ee7\u627f\u81eaGraphicsLayer\uff09\uff0c\u56e0\u6b64\u6211\u4eec\u53ef\u4ee5\u5728Identify\u5de5\u5177\u4e2d\u63a7\u5236\u5b83\u4eec\u7684\u884c\u4e3a\u3002<br \/>\u3000\u3000IsActived\u5c5e\u6027\u63a7\u5236\u7740\u8fd9\u4e2a\u5de5\u5177\u7684\u72b6\u6001\uff0c\u5982\u679cIsActived=ture\uff0c\u5219\u8be5\u5de5\u5177\u5904\u4e8e\u6fc0\u6d3b\u72b6\u6001\uff0c\u6b64\u65f6\u5730\u56fe\u548c\u8d85\u5e02\u56fe\u5c42\u54cd\u5e94Identify\u5de5\u5177\u89c4\u5b9a\u7684\u884c\u4e3a\uff1b\u5982\u679cIsActived=false\uff0c\u5219\u4ee3\u8868\u7a0b\u5e8f\u4e0d\u4f7f\u7528\u8be5\u5de5\u5177\uff0c\u505a\u4e00\u4e9b\u6e05\u7406\u5de5\u4f5c\u3002\u5176\u4ed6\u5de5\u5177\u4e5f\u662f\u5982\u6b64\uff0c\u53ef\u4ee5\u7528\u4ee3\u7801\u6765\u63a7\u5236\u67d0\u4e00\u65f6\u523b\u53ea\u80fd\u6709\u4e00\u4e2a\u5de5\u5177\u5904\u4e8e\u6fc0\u6d3b\u72b6\u6001\u3002<br \/>\u3000\u3000\u53e6\u5916\u6211\u4eec\u8fd8\u53ef\u4ee5\u770b\u5230\uff0cIdentify\u8fd9\u4e2a\u7c7b\u4e2d\u8fd8\u6709\u4e00\u4e2aElementLayer\u7c7b\u578b\u7684_Elayer\u5c5e\u6027\u3002ElementLayer\u662fArcGIS API for Windows Phone\/Silverlight\/WPF\u4e2d\u7684\u4e00\u79cd\u56fe\u5c42\u7c7b\u578b\uff0c\u4e3b\u8981\u7528\u6765\u627f\u8f7dSilverlight\u4e2d\u7684\u539f\u751f\u5bf9\u8c61\uff08UIElement\uff09\uff0c\u6bd4\u8f83\u5173\u952e\u7684\u4e00\u70b9\u662f\uff0cElementLayer\u4e2d\u7684\u5143\u7d20\u4f1a\u968f\u7740\u5730\u56fe\u8303\u56f4\u7684\u53d8\u5316\u800c\u53d8\u5316\uff08\u7f29\u653e\/\u5e73\u79fb\uff09,\u800c\u4e0d\u7528\u81ea\u5df1\u53bb\u5904\u7406\u8fd9\u4e9bUIElement\u7684\u5730\u7406\u5750\u6807\u3002\u6240\u4ee5\u5728\u8fd9\u91cc\u6211\u4eec\u5c31\u7528ElementLayer\u6765\u653e\u7f6e\u6211\u4eec\u7684\u6c14\u6ce1\uff08InfoWindow\uff09\u3002<br \/>\u3000\u3000\u6765\u770b\u4e00\u4e0bIdentify\u7684\u4e3b\u8981\u529f\u80fd\uff1a<\/p>\n<div style=\"border-bottom: silver 1px solid; text-align: left; border-left: silver 1px solid; padding-bottom: 4px; line-height: 12pt; background-color: #f4f4f4; margin: 20px 0px 10px; padding-left: 4px; width: 97.5%; padding-right: 4px; font-family: 'Courier New', courier, monospace; direction: ltr; max-height: 200px; font-size: 8pt; overflow: auto; border-top: silver 1px solid; cursor: text; border-right: silver 1px solid; padding-top: 4px\" id=\"codeSnippetWrapper\">\n<div style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\" id=\"codeSnippet\">\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum1\">   1:<\/span> <span style=\"color: #0000ff\">void<\/span> GLayer_MouseLeftButtonDown(<span style=\"color: #0000ff\">object<\/span> sender, GraphicMouseButtonEventArgs e)<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum2\">   2:<\/span>         {<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum3\">   3:<\/span>             <span style=\"color: #0000ff\">if<\/span> (GLayer.SelectedGraphics.Count() &gt; 0)<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum4\">   4:<\/span>                 GLayer.SelectedGraphics.ToList()[0].UnSelect();<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum5\">   5:<\/span>&nbsp; <\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum6\">   6:<\/span>             Graphic g = e.Graphic;<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum7\">   7:<\/span>             _ELayer.Children.Clear();<span style=\"color: #008000\">\/\/remove other infowindow<\/span><\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum8\">   8:<\/span>             InfoWindow infoWindow = <span style=\"color: #0000ff\">new<\/span> InfoWindow(_ELayer, e.Graphic);<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum9\">   9:<\/span>             ESRI.ArcGIS.Client.ElementLayer.SetEnvelope(infoWindow, <span style=\"color: #0000ff\">new<\/span> Envelope((e.Graphic.Geometry <span style=\"color: #0000ff\">as<\/span> MapPoint), (e.Graphic.Geometry <span style=\"color: #0000ff\">as<\/span> MapPoint)));<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum10\">  10:<\/span>             _ELayer.Children.Add(infoWindow);<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum11\">  11:<\/span>&nbsp; <\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum12\">  12:<\/span>             e.Graphic.Select();<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum13\">  13:<\/span>         }<\/pre>\n<p><!--CRLF--><\/div>\n<\/div>\n<p>\u3000\u3000GraphicsLayer\uff08\u8d85\u5e02\u56fe\u5c42\uff09\u7684MouseButtonDown\u4e8b\u4ef6\u53ef\u4ee5\u4fdd\u8bc1\uff0c\u53ea\u6709\u5f53\u70b9\u51fb\u5230\u67d0\u4e2aGraphic\uff08\u8d85\u5e02\uff09\u540e\uff0c\u624d\u4f1a\u89e6\u53d1\u6b64\u4e8b\u4ef6\uff0c\u800c\u70b9\u51fb\u7a7a\u767d\u5730\u65b9\u662f\u4e0d\u4f1a\u89e6\u53d1\u6b64\u4e8b\u4ef6\u7684\u3002\u6211\u4eec\u5728\u8fd9\u91cc\u5e76\u9700\u8981\u505a\u4efb\u4f55\u67e5\u8be2\u64cd\u4f5c\uff0c\u5c31\u53ef\u4ee5\u901a\u8fc7\u88ab\u70b9\u51fbGraphic\u7684Attributes\u5c5e\u6027\u83b7\u5f97\u8be5\u8d85\u5e02\u7684\u6240\u6709\u4fe1\u606f\uff0c\u56e0\u4e3a\u6240\u6709\u8d85\u5e02\u7684\u5c5e\u6027\u4fe1\u606f\uff08\u8fd8\u8bb0\u5f97OutFields\u5c5e\u6027\u7684\u201c*\u201d\u5417\uff09\u5728FeatureLayer\u521d\u59cb\u5316\u7684\u65f6\u5019\uff0c\u5df2\u7ecf\u88ab\u4f20\u9001\u5230\u4e86\u5ba2\u6237\u7aef\uff08\u624b\u673a\u4e0a\uff09\u3002\u70b9\u51fb\u67d0\u4e2a\u8d85\u5e02\u540e\uff0c\u5c4f\u5e55\u4e0a\u4f1a\u51fa\u73b0\u4e00\u4e2a\u6c14\u6ce1\uff08InfoWindow\u7c7b\uff09\u663e\u793a\u8d85\u5e02\u5e97\u540d\u3002 <\/p>\n<p><a href=\"http:\/\/blog.newnaw.com\/wp-content\/uploads\/2011\/03\/clip_image0025.jpg\"><img decoding=\"async\" loading=\"lazy\" style=\"background-image: none; border-right-width: 0px; margin: 0px auto 5px; padding-left: 0px; padding-right: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px\" title=\"clip_image002[5]\" border=\"0\" alt=\"clip_image002[5]\" src=\"http:\/\/blog.newnaw.com\/wp-content\/uploads\/2011\/03\/clip_image0025_thumb.jpg\" width=\"186\" height=\"306\"><\/a> <\/p>\n<p>\u3000\u3000\u8fd9\u4e2a\u7c7b\u662f\u6211\u4eec\u81ea\u5b9a\u4e49\u7684\u4e00\u4e2aUserControl\uff0c\u53ef\u4ee5\u5f88\u65b9\u4fbf\u7684\u7ed9\u5176\u4e2d\u52a0\u5165\u989d\u5916\u7684\u529f\u80fd\uff0c\u6bd4\u5982\u70b9\u51fb\u4e86\u8fd9\u4e2aInfoWindow\u540e\uff0c\u5c06\u7a0b\u5e8f\u5bfc\u822a\u5230\u8d85\u5e02\u8be6\u7ec6\u4fe1\u606f\u7684\u9875\u9762\u3002\u5173\u4e8e\u8fd9\u4e2aInfoWindow\u7c7b\u8be6\u7ec6\u4ee3\u7801\u4ee5\u53ca\u5728\u7ebf\u4f8b\u5b50\uff0c\u53ef\u4ee5<a href=\"http:\/\/blog.newnaw.com\/?p=600\">\u5728\u8fd9\u91cc\u67e5\u770b<\/a>\u3002\u6b64\u59162.1\u4ee5\u540e\u7248\u672c\u7684API\u4e2d\u4e5f\u63d0\u4f9b\u4e86InfoWindow\u7684ToolKit\uff0c\u6709\u5174\u8da3\u7684\u540c\u5b66\u53ef\u4ee5<a href=\"http:\/\/help.arcgis.com\/en\/webapi\/silverlight\/samples\/start.htm#InfoWindowSimple\">\u5728\u8fd9\u91cc\u67e5\u770b<\/a>\u3002<br \/>\u3000\u3000Windows Phone\u7a0b\u5e8f\u4e2d\uff0c\u7531\u4e8e\u5c4f\u5e55\u5c3a\u5bf8\u539f\u56e0\uff0c\u5982\u679c\u9700\u8981\u53e6\u5916\u663e\u793a\u6bd4\u8f83\u591a\u7684\u5185\u5bb9\uff0c\u5219\u9700\u8981\u5c06\u7a0b\u5e8f\u5bfc\u822a\u5230\u4e00\u4e2a\u65b0\u7684\u9875\u9762\u4e2d\uff0c\u6bd4\u5982\u8fd9\u91cc\u6211\u4eec\u9700\u8981\u663e\u793a\u8d85\u5e02\u7684\u8be6\u7ec6\u4fe1\u606f\u3002 <\/p>\n<p><a href=\"http:\/\/blog.newnaw.com\/wp-content\/uploads\/2011\/03\/clip_image0041.jpg\"><img decoding=\"async\" loading=\"lazy\" style=\"background-image: none; border-right-width: 0px; margin: 0px auto 5px; padding-left: 0px; padding-right: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px\" title=\"clip_image004\" border=\"0\" alt=\"clip_image004\" src=\"http:\/\/blog.newnaw.com\/wp-content\/uploads\/2011\/03\/clip_image004_thumb1.jpg\" width=\"190\" height=\"295\"><\/a> <\/p>\n<p>\u3000\u3000\u6240\u4ee5\u5728InfoWindow\u672c\u8eab\u7684\u5355\u51fb\u4e8b\u4ef6\u4e2d\uff0c\u7528\u4e0b\u9762\u7684\u4ee3\u7801\u5c06\u7a0b\u5e8f\u5bfc\u822a\u5230\u663e\u793a\u8d85\u5e02\u8be6\u7ec6\u4fe1\u606f\u7684\u9875\u9762\uff08Attributes.xaml\uff09\u3002<\/p>\n<div style=\"border-bottom: silver 1px solid; text-align: left; border-left: silver 1px solid; padding-bottom: 4px; line-height: 12pt; background-color: #f4f4f4; margin: 20px 0px 10px; padding-left: 4px; width: 97.5%; padding-right: 4px; font-family: 'Courier New', courier, monospace; direction: ltr; max-height: 200px; font-size: 8pt; overflow: auto; border-top: silver 1px solid; cursor: text; border-right: silver 1px solid; padding-top: 4px\" id=\"codeSnippetWrapper\">\n<div style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\" id=\"codeSnippet\">\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum1\">   1:<\/span> <span style=\"color: #0000ff\">private<\/span> <span style=\"color: #0000ff\">void<\/span> Canvas_MouseLeftButtonDown(<span style=\"color: #0000ff\">object<\/span> sender, System.Windows.Input.MouseButtonEventArgs e)<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum2\">   2:<\/span>         {<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum3\">   3:<\/span>             <span style=\"color: #008000\">\/\/add clicked graphic to app level, so attributes.xaml could access it<\/span><\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum4\">   4:<\/span>             App app = Application.Current <span style=\"color: #0000ff\">as<\/span> App;<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum5\">   5:<\/span>             <span style=\"color: #0000ff\">if<\/span> (app.AppParameters.ContainsKey(<span style=\"color: #006080\">\"IdentifyGraphic\"<\/span>))<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum6\">   6:<\/span>                 app.AppParameters[<span style=\"color: #006080\">\"IdentifyGraphic\"<\/span>] = Graphic;<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum7\">   7:<\/span>             <span style=\"color: #0000ff\">else<\/span><\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum8\">   8:<\/span>                 app.AppParameters.Add(<span style=\"color: #006080\">\"IdentifyGraphic\"<\/span>, Graphic);<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum9\">   9:<\/span>             (app.AppParameters[<span style=\"color: #006080\">\"MainPage\"<\/span>] <span style=\"color: #0000ff\">as<\/span> PhoneApplicationPage).NavigationService.Navigate(<span style=\"color: #0000ff\">new<\/span> Uri(<span style=\"color: #006080\">\"\/Tools\/Attributes.xaml\"<\/span>, UriKind.Relative));<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum10\">  10:<\/span>         }<\/pre>\n<p><!--CRLF--><\/div>\n<\/div>\n<p>\u3000\u3000\u5176\u4e2d\u91cd\u8981\u7684\u7c7b\u662fNavigationService\uff0c\u6bcf\u4e2aWindows Phone\u7684\u9875\u9762\uff08PhoneApplicationPage\uff09\u90fd\u6709\u8fd9\u6837\u4e00\u4e2a\u5c5e\u6027\u3002\u5728\u591a\u9875\u9762\u7684Silverlight\u7a0b\u5e8f\u4e2d\u4e5f\u4f7f\u7528\u6b64\u7c7b\u6765\u5bfc\u822a\u3002\u867d\u7136Navigate\u65b9\u6cd5\u53ef\u4ee5\u5728\u9875\u9762\u4e4b\u95f4\u4f20\u9012\u53c2\u6570\uff08\u7c7b\u4f3casp.net\uff09\uff0c\u4f46\u4ec5\u9650\u4e8estring\u7c7b\u578b\uff0c\u56e0\u6b64\u6211\u4eec\u7684\u8d85\u5e02\u5c5e\u6027\u4fe1\u606f\u96c6\u5408\u4e0d\u597d\u5904\u7406\u3002\u6211\u5728App.xaml.cs\u6587\u4ef6\u91cc\u7684Application\u7c7b\u4e2d\uff0c\u5b9a\u4e49\u4e00\u4e2a\u5168\u5c40\u7684Dictionary\uff0c\u7528\u4e8e\u5b58\u50a8\u6211\u4eec\u9700\u8981\u7528\u5230\u7684\u5168\u5c40\u53d8\u91cf\u3002<\/p>\n<div style=\"border-bottom: silver 1px solid; text-align: left; border-left: silver 1px solid; padding-bottom: 4px; line-height: 12pt; background-color: #f4f4f4; margin: 20px 0px 10px; padding-left: 4px; width: 97.5%; padding-right: 4px; font-family: 'Courier New', courier, monospace; direction: ltr; max-height: 200px; font-size: 8pt; overflow: auto; border-top: silver 1px solid; cursor: text; border-right: silver 1px solid; padding-top: 4px\" id=\"codeSnippetWrapper\">\n<div style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\" id=\"codeSnippet\">\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum1\">   1:<\/span> <span style=\"color: #008000\">\/\/used to store variables which need to pass from one page to another<\/span><\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum2\">   2:<\/span>         <span style=\"color: #0000ff\">public<\/span> Dictionary&lt;<span style=\"color: #0000ff\">string<\/span>, <span style=\"color: #0000ff\">object<\/span>&gt; AppParameters;<\/pre>\n<p><!--CRLF--><\/div>\n<\/div>\n<p>\u3000\u3000\u5148\u5c06\u88ab\u70b9\u51fb\u7684Graphic\u5b58\u5165\u7a0b\u5e8f\u7684Silverlight\u7684\u5168\u5c40\u53d8\u91cfAppParameters\u4e2d\uff0c\u7136\u540e\u5728Attributes.xaml\u9875\u9762\u5c31\u80fd\u53d6\u5230\u3002Attributes.xaml\u4e2d\u7528ListBox\u63a7\u4ef6\u6765\u663e\u793a\u8d85\u5e02\u4fe1\u606f\uff0c\u7531\u4e8eWindows Phone\u57fa\u4e8eSilverlight 3\uff0c\u800cGraphic\u7684\u5c5e\u6027\u4fe1\u606fAttributes\u662fDictionary\u96c6\u5408\uff0cdictionary binding\u5728Silverlight 4\u4e2d\u624d\u652f\u6301\uff0c\u6240\u4ee5\u8fd9\u91cc\u6211\u4eec\u4f9d\u7136\u9700\u8981\u4f7f\u7528\u5230DictionaryConverter\u6765\u5728\u7ed1\u5b9a\u8fc7\u7a0b\u4e2d\u8fdb\u884c\u8f6c\u6362\u3002Attributes.xaml\u9875\u9762\uff1a<\/p>\n<div style=\"border-bottom: silver 1px solid; text-align: left; border-left: silver 1px solid; padding-bottom: 4px; line-height: 12pt; background-color: #f4f4f4; margin: 20px 0px 10px; padding-left: 4px; width: 97.5%; padding-right: 4px; font-family: 'Courier New', courier, monospace; direction: ltr; max-height: 200px; font-size: 8pt; overflow: auto; border-top: silver 1px solid; cursor: text; border-right: silver 1px solid; padding-top: 4px\" id=\"codeSnippetWrapper\">\n<div style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\" id=\"codeSnippet\">\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum1\">   1:<\/span> &lt;!--ContentPanel - place additional content here--&gt;<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum2\">   2:<\/span>         &lt;Grid x:Name=<span style=\"color: #006080\">\"ContentPanel\"<\/span> Grid.Row=<span style=\"color: #006080\">\"1\"<\/span> Margin=<span style=\"color: #006080\">\"12,0,12,0\"<\/span>&gt;<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum3\">   3:<\/span>             &lt;ListBox x:Name=<span style=\"color: #006080\">\"listbox\"<\/span> Margin=<span style=\"color: #006080\">\"0,0,-12,0\"<\/span> ItemsSource=<span style=\"color: #006080\">\"{Binding}\"<\/span>&gt;<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum4\">   4:<\/span>                 &lt;ListBox.ItemTemplate&gt;<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum5\">   5:<\/span>                     &lt;DataTemplate&gt;<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum6\">   6:<\/span>                         &lt;StackPanel Margin=<span style=\"color: #006080\">\"0,0,0,17\"<\/span> Width=<span style=\"color: #006080\">\"432\"<\/span>&gt;<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum7\">   7:<\/span>                             &lt;Canvas&gt;<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum8\">   8:<\/span>                                 &lt;Rectangle Fill=<span style=\"color: #006080\">\"#FF83919D\"<\/span> Canvas.Left=<span style=\"color: #006080\">\"0\"<\/span> Canvas.Top=<span style=\"color: #006080\">\"0\"<\/span> Height=<span style=\"color: #006080\">\"31\"<\/span> Width=<span style=\"color: #006080\">\"800\"<\/span>\/&gt;<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum9\">   9:<\/span>                                 &lt;TextBlock Text=<span style=\"color: #006080\">\"\u5e97\u540d\"<\/span><\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum10\">  10:<\/span>                         TextWrapping=<span style=\"color: #006080\">\"Wrap\"<\/span> Margin=<span style=\"color: #006080\">\"12,-4,4,5\"<\/span> FontSize=<span style=\"color: #006080\">\"26\"<\/span> Foreground=<span style=\"color: #006080\">\"White\"<\/span>\/&gt;<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum11\">  11:<\/span>                             &lt;\/Canvas&gt;<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum12\">  12:<\/span>                             &lt;TextBlock Text=<span style=\"color: #006080\">\"{Binding Path=Attributes, Converter={StaticResource MyDictionaryConverter}, ConverterParameter=Name}\"<\/span> <\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum13\">  13:<\/span>                             TextWrapping=<span style=\"color: #006080\">\"Wrap\"<\/span> FontSize=<span style=\"color: #006080\">\"30\"<\/span> Margin=<span style=\"color: #006080\">\"12,28,12,3\"<\/span> Foreground=<span style=\"color: #006080\">\"#FF188DC6\"<\/span>\/&gt;<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum14\">  14:<\/span>                             &lt;Canvas&gt;<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum15\">  15:<\/span>                                 &lt;Rectangle Fill=<span style=\"color: #006080\">\"#FF83919D\"<\/span> Canvas.Left=<span style=\"color: #006080\">\"0\"<\/span> Canvas.Top=<span style=\"color: #006080\">\"0\"<\/span> Height=<span style=\"color: #006080\">\"31\"<\/span> Width=<span style=\"color: #006080\">\"800\"<\/span>\/&gt;<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum16\">  16:<\/span>                                 &lt;TextBlock Text=<span style=\"color: #006080\">\"\u5730\u5740\"<\/span><\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum17\">  17:<\/span>                         TextWrapping=<span style=\"color: #006080\">\"Wrap\"<\/span> Margin=<span style=\"color: #006080\">\"12,-4,4,5\"<\/span> FontSize=<span style=\"color: #006080\">\"26\"<\/span> Foreground=<span style=\"color: #006080\">\"White\"<\/span>\/&gt;<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum18\">  18:<\/span>                             &lt;\/Canvas&gt;<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum19\">  19:<\/span>                             &lt;TextBlock Text=<span style=\"color: #006080\">\"{Binding Path=Attributes, Converter={StaticResource MyDictionaryConverter}, ConverterParameter=Address}\"<\/span> <\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum20\">  20:<\/span>                             TextWrapping=<span style=\"color: #006080\">\"Wrap\"<\/span> FontSize=<span style=\"color: #006080\">\"30\"<\/span> Margin=<span style=\"color: #006080\">\"12,28,12,3\"<\/span> Foreground=<span style=\"color: #006080\">\"#FF188DC6\"<\/span>\/&gt;<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum21\">  21:<\/span>                             \u3002\u3002\u3002\u3002\u3002\u3002\u3002\u3002\u3002\u3002\u3002\u3002<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum22\">  22:<\/span>                         &lt;\/StackPanel&gt;<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum23\">  23:<\/span>                     &lt;\/DataTemplate&gt;<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum24\">  24:<\/span>                 &lt;\/ListBox.ItemTemplate&gt;<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum25\">  25:<\/span>             &lt;\/ListBox&gt;<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum26\">  26:<\/span>         &lt;\/Grid&gt;<\/pre>\n<p><!--CRLF--><\/div>\n<\/div>\n<p>\u3000\u3000Attributes.xaml.cs\u6587\u4ef6\uff1a<\/p>\n<div style=\"border-bottom: silver 1px solid; text-align: left; border-left: silver 1px solid; padding-bottom: 4px; line-height: 12pt; background-color: #f4f4f4; margin: 20px 0px 10px; padding-left: 4px; width: 97.5%; padding-right: 4px; font-family: 'Courier New', courier, monospace; direction: ltr; max-height: 200px; font-size: 8pt; overflow: auto; border-top: silver 1px solid; cursor: text; border-right: silver 1px solid; padding-top: 4px\" id=\"codeSnippetWrapper\">\n<div style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\" id=\"codeSnippet\">\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum1\">   1:<\/span> <span style=\"color: #0000ff\">public<\/span> <span style=\"color: #0000ff\">partial<\/span> <span style=\"color: #0000ff\">class<\/span> Attributes : PhoneApplicationPage<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum2\">   2:<\/span>     {<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum3\">   3:<\/span>         <span style=\"color: #0000ff\">private<\/span> Graphic _graphic;<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum4\">   4:<\/span>         <span style=\"color: #0000ff\">public<\/span> Attributes()<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum5\">   5:<\/span>         {<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum6\">   6:<\/span>             InitializeComponent();<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum7\">   7:<\/span>&nbsp; <\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum8\">   8:<\/span>             _graphic = (Application.Current <span style=\"color: #0000ff\">as<\/span> App).AppParameters[<span style=\"color: #006080\">\"IdentifyGraphic\"<\/span>] <span style=\"color: #0000ff\">as<\/span> Graphic;<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum9\">   9:<\/span>             GraphicCollection gc = <span style=\"color: #0000ff\">new<\/span> GraphicCollection();<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum10\">  10:<\/span>             gc.Add(_graphic);<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum11\">  11:<\/span>             listbox.ItemsSource = gc;<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum12\">  12:<\/span>         }<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum13\">  13:<\/span>     }<\/pre>\n<p><!--CRLF--><\/div>\n<\/div>\n<p>\u3000\u3000\u5b8c\u6210\u4e86\u6574\u4e2aIdentify\u529f\u80fd\u540e\uff0c\u5728MainPage.xaml\u9875\u9762\u4e2d\uff0c\u6211\u4eec\u5728Application Bar\u4e2d\u6dfb\u52a0\u56db\u4e2a\u6309\u94ae\uff0c\u70b9\u51fb\u67d0\u4e2a\u6309\u94ae\u540e\uff0c\u5c31\u6fc0\u6d3b\u76f8\u5e94\u7684\u5de5\u5177\u3002\u6bd4\u5982\u5728\u70b9\u51fb\u4e86Identify\u529f\u80fd\u6309\u94ae\u540e\uff0c\u6211\u4eec\u9700\u8981\u5c06Identify\u5de5\u5177\u7684IsActived\u5c5e\u6027\u8bbe\u4e3atrue\uff0c\u5c06\u5176\u4ed6\u5de5\u5177\u7684IsActived\u5c5e\u6027\u8bbe\u4e3afalse\u3002\u6700\u540e\u522b\u5fd8\u4e86\uff0c\u5728\u8d85\u5e02\u56fe\u5c42FeatureLayer\u521d\u59cb\u5316\u65f6\uff08Update\u4e8b\u4ef6\uff09\uff0c\u5b9e\u4f8b\u5316\u6211\u4eec\u7684\u56db\u4e2a\u5de5\u5177\uff1a<\/p>\n<div style=\"border-bottom: silver 1px solid; text-align: left; border-left: silver 1px solid; padding-bottom: 4px; line-height: 12pt; background-color: #f4f4f4; margin: 20px 0px 10px; padding-left: 4px; width: 97.5%; padding-right: 4px; font-family: 'Courier New', courier, monospace; direction: ltr; max-height: 200px; font-size: 8pt; overflow: auto; border-top: silver 1px solid; cursor: text; border-right: silver 1px solid; padding-top: 4px\" id=\"codeSnippetWrapper\">\n<div style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\" id=\"codeSnippet\">\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum1\">   1:<\/span> <span style=\"color: #0000ff\">public<\/span> <span style=\"color: #0000ff\">partial<\/span> <span style=\"color: #0000ff\">class<\/span> MainPage : PhoneApplicationPage<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum2\">   2:<\/span>     {<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum3\">   3:<\/span>         <span style=\"color: #0000ff\">private<\/span> Identify _OpIdentify;<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum4\">   4:<\/span>         <span style=\"color: #0000ff\">private<\/span> SpatialQuery _OpSpatialQuery;<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum5\">   5:<\/span>         <span style=\"color: #0000ff\">private<\/span> TimeQuery _OpTimeQuery;<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum6\">   6:<\/span>         <span style=\"color: #0000ff\">private<\/span> Analysis _OpAnalysis;<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum7\">   7:<\/span>         <span style=\"color: #0000ff\">private<\/span> FeatureLayer _FLayer;<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum8\">   8:<\/span>&nbsp; <\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum9\">   9:<\/span>         <span style=\"color: #008000\">\/\/ Constructor<\/span><\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum10\">  10:<\/span>         <span style=\"color: #0000ff\">public<\/span> MainPage()<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum11\">  11:<\/span>         {<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum12\">  12:<\/span>             InitializeComponent();<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum13\">  13:<\/span>             _FLayer = map1.Layers[<span style=\"color: #006080\">\"BusinessLayer\"<\/span>] <span style=\"color: #0000ff\">as<\/span> FeatureLayer;<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum14\">  14:<\/span>             _FLayer.UpdateCompleted += (s, a) =&gt;<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum15\">  15:<\/span>             {<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum16\">  16:<\/span>                 <span style=\"color: #008000\">\/\/Add MainPage to app level, so other pages can navigates from it.<\/span><\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum17\">  17:<\/span>                 App app = Application.Current <span style=\"color: #0000ff\">as<\/span> App;<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum18\">  18:<\/span>                 <span style=\"color: #0000ff\">if<\/span> (!app.AppParameters.ContainsKey(<span style=\"color: #006080\">\"MainPage\"<\/span>))<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum19\">  19:<\/span>                     app.AppParameters.Add(<span style=\"color: #006080\">\"MainPage\"<\/span>, <span style=\"color: #0000ff\">this<\/span>);             <\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum20\">  20:<\/span>                 _OpIdentify = <span style=\"color: #0000ff\">new<\/span> Identify(map1, _FLayer);<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum21\">  21:<\/span>                 _OpSpatialQuery = <span style=\"color: #0000ff\">new<\/span> SpatialQuery(map1, BusyIndicator);<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum22\">  22:<\/span>                 _OpTimeQuery = <span style=\"color: #0000ff\">new<\/span> TimeQuery(map1);<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum23\">  23:<\/span>                 _OpAnalysis = <span style=\"color: #0000ff\">new<\/span> Analysis(map1,<span style=\"color: #0000ff\">this<\/span>,BusyIndicator);<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum24\">  24:<\/span>             };<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum25\">  25:<\/span>         }<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum26\">  26:<\/span>     }<\/pre>\n<p><!--CRLF--><\/div>\n<\/div>\n<p>\u3000\u3000\u4e0b\u4e00\u8282\u4e2d\uff0c\u6211\u4eec\u6765\u5b9e\u73b0\u6309\u7a7a\u95f4\u8303\u56f4\u67e5\u770b\u67d0\u51e0\u4e2a\u5e97\u9762\u7684\u9500\u552e\u603b\u989d\u7684\u529f\u80fd\uff0c\u4e5f\u5c31\u662fSpatialQuery\u8fd9\u4e2a\u7c7b\u3002 <\/p>\n<p>\u53c2\u8003\u8d44\u6599\uff1a <\/p>\n<p>Windows Phone\u4e2d\u7684Application Bar\u548cApplication Menu\uff1a<br \/><a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/ff431801(v=VS.92).aspx\">http:\/\/msdn.microsoft.com\/en-us\/library\/ff431801(v=VS.92).aspx<\/a> <\/p>\n<p>Windows Phone\u4e2d\u7684\u9875\u9762\u548c\u5bfc\u822a\u6846\u67b6\uff1a<br \/><a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/ff402536(v=vs.92).aspx\">http:\/\/msdn.microsoft.com\/en-us\/library\/ff402536(v=vs.92).aspx<\/a> <\/p>\n<p>Silverlight\u4e2d\u81ea\u5b9a\u4e49UserControl\uff1a<br \/><a href=\"http:\/\/www.cnblogs.com\/Terrylee\/archive\/2008\/03\/08\/Silverlight2-step-by-step-part10-using-user-controls.html\">http:\/\/www.cnblogs.com\/Terrylee\/archive\/2008\/03\/08\/Silverlight2-step-by-step-part10-using-user-controls.html<\/a> <\/p>\n<p>ArcGIS API for Windows Phone\/Silverlight\/WPF\u4e2d\u7684ElmentLayer\uff1a<a href=\"http:\/\/help.arcgis.com\/en\/webapi\/silverlight\/samples\/start.htm#ElementLayer\"><br \/>http:\/\/help.arcgis.com\/en\/webapi\/silverlight\/samples\/start.htm#ElementLayer<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3000\u3000\u672c\u6587\u5185\u5bb9\uff1aSilverlight\u7684\u81ea\u5b9a\u4e49UserControl\uff0cNavigationService\uff08\u9875\u9762\u5bfc\u822a\uff09\uff0cWP\u7684Application Bar\uff0cArcGIS API\u7684ElementLayer\u3002\u3000\u3000\u4e0a\u4e00\u8282\u4e2d\uff0c\u5df2\u7ecf\u5b8c\u6210\u4e86\u7a0b\u5e8f\u7684\u51c6\u5907\u5de5\u4f5c\uff0c\u5229\u7528FeatureLayer\u6765\u663e\u793a\u8d85\u5e02\u4f4d\u7f6e\uff0c\u63a5\u4e0b\u6765\u7684\u51e0\u7bc7\u6587\u7ae0\u4e2d\u6211\u4eec\u5c31\u6765\u4f9d\u6b21\u5b9e\u73b0\u7a0b\u5e8f\u7684\u56db\u4e2a\u529f\u80fd\u70b9\uff1a \u70b9\u51fb\u67e5\u770b\u67d0\u4e2a\u8d85\u5e02\u7684\u8be6\u7ec6\u4fe1\u606f\uff1b \u6309\u7a7a\u95f4\u8303\u56f4\u67e5\u770b\u67d0\u51e0\u4e2a\u5e97\u9762\u7684\u9500\u552e\u603b\u989d\uff1b \u6309\u65f6\u95f4\u7684\u65b9\u5f0f\u52a8\u6001\u67e5\u770b\u6bcf\u4e2a\u5e97\u9762\u7684\u8425\u4e1a\u60c5\u51b5\uff1b \u5bf9\u67d0\u4e2a\u5e97\u9762\u7684\u8fd1\u671f\u8425\u4e1a\u60c5\u51b5\u505a\u51fa\u5177\u4f53\u5206\u6790\u3002 \u3000\u3000\u7b2c\u4e00\u4e2a\u529f\u80fd\u5728GIS\u4e2d\u53eb\u505aIdentify\u3002\u8fd9\u4e2a\u529f\u80fd\u7684\u4f5c\u7528\u662f\uff0c\u5f53\u4f7f\u7528\u8005\u6fc0\u6d3b\u8be5\u529f\u80fd\u540e\uff0c\u70b9\u51fb\u5730\u56fe\u4e0a\u7684\u67d0\u4e2a\u8d85\u5e02\u56fe\u6807\uff0c\u4f1a\u5f39\u51fa\u4e00\u4e2a\u7c7b\u4f3c\u6c14\u6ce1\u7684\u5c0f\u7a97\u53e3\uff08InfoWindow\uff09\u663e\u793a\u8d85\u5e02\u540d\u79f0\uff0c\u70b9\u51fb\u8fd9\u4e2a\u6c14\u6ce1\u540e\uff0c\u7a0b\u5e8f\u53ef\u5bfc\u822a\u5230\u53e6\u4e00\u4e2a\u9875\u9762\u6765\u663e\u793a\u8be5\u8d85\u5e02\u7684\u8be6\u7ec6\u4fe1\u606f\u3002\u3000\u3000\u7531\u4e8e\u5f88\u591a\u529f\u80fd\u90fd\u662f\u5229\u7528\u5355\u51fb\u5730\u56fe\u7684\u65b9\u5f0f\u6765\u5b9e\u73b0\uff0c\u4e3a\u4e86\u4e0d\u8ba9\u8fd9\u4e9b\u529f\u80fd\u6df7\u6dc6\uff0c\u6211\u5c06\u7a0b\u5e8f\u4e2d\u7684\u56db\u4e2a\u529f\u80fd\u5206\u522b\u505a\u6210\u4e0d\u540c\u7684\u5de5\u5177\uff08\u5c01\u88c5\u6210\u4e0d\u540c\u7684\u7c7b\uff09\uff0c\u70b9\u51fb\u67d0\u4e2a\u5de5\u5177\u540e\u5c31\u6fc0\u6d3b\u5b83\uff0c\u6b64\u65f6\u5730\u56fe\u6216\u5176\u4e2d\u7684\u63a7\u4ef6\u5c31\u54cd\u5e94\u8be5\u5de5\u5177\u7684\u529f\u80fd\u3002\u3000\u3000\u6211\u4eec\u5728\u5de5\u7a0b\u4e2d\u65b0\u5efa\u4e00\u4e2a\u6587\u4ef6\u5939Tools\uff0c\u653e\u7f6e\u4e0e\u529f\u80fd\u70b9\u6709\u5173\u7684\u7c7b\uff1b\u5e76\u5728\u5176\u4e2d\u65b0\u5efa\u4e00\u4e2aIdentify.cs\u7684\u6587\u4ef6\uff0c\u7528\u6765\u5b9e\u73b0\u6211\u4eec\u7684\u7b2c\u4e00\u4e2a\u529f\u80fd\u70b9\u3002 1: public class Identify 2: { 3: private bool _isActivated; 4: private ElementLayer _elementLayer; \/\/InfoWindow layer 5: public Map _map1 { get; set; } 6: public GraphicsLayer GLayer { get; set; } \/\/supermarket layer 7: public bool IsActivated 8: { 9: get { return _isActivated; } 10: set 11: { 12: if (_isActivated != value) 13: { &hellip; <a href=\"https:\/\/blog.newnaw.com\/?p=696\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">ArcGIS API for Windows Phone\u5f00\u53d1\u5b9e\u4f8b(4):\u70b9\u51fb\u67e5\u770b\u8d85\u5e02\u4fe1\u606f<\/span> <span class=\"meta-nav\">&raquo;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[18,25],"_links":{"self":[{"href":"https:\/\/blog.newnaw.com\/index.php?rest_route=\/wp\/v2\/posts\/696"}],"collection":[{"href":"https:\/\/blog.newnaw.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.newnaw.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.newnaw.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.newnaw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=696"}],"version-history":[{"count":0,"href":"https:\/\/blog.newnaw.com\/index.php?rest_route=\/wp\/v2\/posts\/696\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.newnaw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=696"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.newnaw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=696"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.newnaw.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=696"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}