# markerObj.ContextMenu

**URL:** <https://community.thinkgeo.com/t/markerobj-contextmenu/2769>\
**Category:** WPF\
**Created:** [August 11, 2010, 4:01am UTC](https://community.thinkgeo.com/t/markerobj-contextmenu/2769 "2010-08-11T04:01:42Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Prasanna](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/p/57b2e6/32.png) [@Prasanna](https://community.thinkgeo.com/u/Prasanna)\
**Post date:** [August 11, 2010, 4:01am UTC](https://community.thinkgeo.com/t/markerobj-contextmenu/2769/1 "2010-08-11T04:01:42Z")

</div>

Please&nbsp;let&nbsp;me&nbsp;know&nbsp;of&nbsp;any&nbsp;samples&nbsp;on&nbsp;how&nbsp;to&nbsp;implement&nbsp;context&nbsp;menu&nbsp;on&nbsp;marker&nbsp;object

---

<div class="post-metadata">

**Author:** ![Klaus3](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/k/e5b9ba/32.png) [@Klaus3](https://community.thinkgeo.com/u/Klaus3)\
**Post date:** [August 11, 2010, 4:54am UTC](https://community.thinkgeo.com/t/markerobj-contextmenu/2769/2 "2010-08-11T04:54:55Z")

</div>

I&nbsp;Like&nbsp;creating&nbsp;my&nbsp;ContextMenus&nbsp;on&nbsp;the&nbsp;fly,&nbsp;so&nbsp;this&nbsp;is&nbsp;what&nbsp;I&nbsp;did&nbsp;on&nbsp;Mouse&nbsp;Down&nbsp;or&nbsp;Mouse&nbsp;move,&nbsp;depending&nbsp;on&nbsp;how&nbsp;user&nbsp;wants&nbsp;map&nbsp;tip.&nbsp;  
&nbsp;&nbsp;  
&nbsp;1.&nbsp;Get&nbsp;world&nbsp;coordinate&nbsp;on&nbsp;mouse&nbsp;down&nbsp;event.&nbsp;  
&nbsp;2.&nbsp;Buffer&nbsp;point&nbsp;based&nbsp;on&nbsp;distance&nbsp;  
&nbsp;3.&nbsp;Use&nbsp;QueryTools&nbsp;to&nbsp;find&nbsp;feature&nbsp;closest&nbsp;feature&nbsp;to&nbsp;buffer&nbsp;in&nbsp;2.&nbsp;  
&nbsp;4.&nbsp;Create&nbsp;a&nbsp;custom&nbsp;maptip&nbsp;for&nbsp;this&nbsp;feature.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Maybe&nbsp;there&nbsp;is&nbsp;a&nbsp;better&nbsp;way.&nbsp;  
&nbsp;&nbsp;

---

<div class="post-metadata">

**Author:** ![Howard](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/h/90ced4/32.png) [@Howard](https://community.thinkgeo.com/u/Howard)\
**Post date:** [August 12, 2010, 1:03am UTC](https://community.thinkgeo.com/t/markerobj-contextmenu/2769/3 "2010-08-12T01:03:12Z")

</div>

Hi&nbsp;Prasanna,  
  
  
  
Welcome&nbsp;using&nbsp;Wpf&nbsp;Desktop&nbsp;edition;&nbsp;marker&nbsp;is&nbsp;actually&nbsp;a&nbsp;control,&nbsp;it&nbsp;can&nbsp;do&nbsp;any&nbsp;thing&nbsp;a&nbsp;control&nbsp;can;&nbsp;so&nbsp;marker&nbsp;is&nbsp;simple&nbsp;to&nbsp;add&nbsp;a&nbsp;context&nbsp;menu.&nbsp;Just&nbsp;set&nbsp;create&nbsp;context&nbsp;menu&nbsp;object&nbsp;and&nbsp;set&nbsp;to&nbsp;its&nbsp;property,&nbsp;you&nbsp;can&nbsp;also&nbsp;define&nbsp;it&nbsp;on&nbsp;the&nbsp;xaml&nbsp;and&nbsp;binding&nbsp;it.&nbsp;See&nbsp;my&nbsp;attached&nbsp;sample.  
  
  
  
Also,&nbsp;thanks&nbsp;for&nbsp;Klaus'&nbsp;idea,&nbsp;he&nbsp;represents&nbsp;how&nbsp;to&nbsp;add&nbsp;a&nbsp;tooltip&nbsp;for&nbsp;a&nbsp;feature&nbsp;which&nbsp;is&nbsp;pretty&nbsp;cool.  
  
  
  
Thanks&nbsp;and&nbsp;feel&nbsp;free&nbsp;to&nbsp;let&nbsp;me&nbsp;know&nbsp;if&nbsp;you&nbsp;have&nbsp;any&nbsp;queries,  
  
Howard

[Post7979.zip](https://community.thinkgeo.com/uploads/default/original/2X/6/666bcb54a829e096f32ff00b13ab4052f10fbafe.zip) (12.4 KB)

---

<div class="post-metadata">

**Author:** ![Prasanna](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/p/57b2e6/32.png) [@Prasanna](https://community.thinkgeo.com/u/Prasanna)\
**Post date:** [August 12, 2010, 6:49am UTC](https://community.thinkgeo.com/t/markerobj-contextmenu/2769/4 "2010-08-12T06:49:53Z")

</div>

&nbsp;thanks.&nbsp;it&nbsp;was&nbsp;very&nbsp;helpful ![]()

---

<div class="post-metadata">

**Author:** ![Howard](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/h/90ced4/32.png) [@Howard](https://community.thinkgeo.com/u/Howard)\
**Post date:** [August 12, 2010, 11:48pm UTC](https://community.thinkgeo.com/t/markerobj-contextmenu/2769/5 "2010-08-12T23:48:16Z")

</div>

Hi&nbsp;Prasanna,&nbsp;  
&nbsp;&nbsp;  
&nbsp;You&nbsp;are&nbsp;welcome,&nbsp;just&nbsp;free&nbsp;free&nbsp;to&nbsp;let&nbsp;us&nbsp;know&nbsp;if&nbsp;you&nbsp;have&nbsp;any&nbsp;queries.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks,&nbsp;  
&nbsp;Howard&nbsp;  
&nbsp;&nbsp;
