# How I can restyle MapTools.PanZoomBar?

**URL:** <https://community.thinkgeo.com/t/how-i-can-restyle-maptools-panzoombar/6906>\
**Category:** Silverlight\
**Created:** [January 6, 2011, 9:23am UTC](https://community.thinkgeo.com/t/how-i-can-restyle-maptools-panzoombar/6906 "2011-01-06T09:23:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yura](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/y/e0b2c6/32.png) [@Yura](https://community.thinkgeo.com/u/Yura)\
**Post date:** [January 6, 2011, 9:23am UTC](https://community.thinkgeo.com/t/how-i-can-restyle-maptools-panzoombar/6906/1 "2011-01-06T09:23:44Z")

</div>

&nbsp;Hello&nbsp;friends.

I&nbsp;want&nbsp;to&nbsp;restyle&nbsp;existing&nbsp;design&nbsp;of&nbsp;PanZoomBar.&nbsp;I&nbsp;want&nbsp;to&nbsp;create&nbsp;own&nbsp;design.&nbsp;How&nbsp;I&nbsp;can&nbsp;do&nbsp;this?

Sorry&nbsp;for&nbsp;my&nbsp;bad&nbsp;English.

&nbsp;

Thanks

---

<div class="post-metadata">

**Author:** ![Johnny](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/johnny/32/19044_2.png) [@Johnny](https://community.thinkgeo.com/u/Johnny)\
**Post date:** [January 7, 2011, 12:34am UTC](https://community.thinkgeo.com/t/how-i-can-restyle-maptools-panzoombar/6906/2 "2011-01-07T00:34:04Z")

</div>

Hi&nbsp;Yura,

Usually,&nbsp;Skinning&nbsp;is&nbsp;a&nbsp;way&nbsp;to&nbsp;completely&nbsp;replace&nbsp;the&nbsp;look&nbsp;of&nbsp;the&nbsp;Silverlight&nbsp;control.&nbsp;In&nbsp;order&nbsp;to&nbsp;do&nbsp;that,&nbsp;you&nbsp;have&nbsp;to&nbsp;define&nbsp;new&nbsp;template&nbsp;and&nbsp;set&nbsp;it&nbsp;to&nbsp;the&nbsp;control.template&nbsp;property.&nbsp;The&nbsp;attached&nbsp;is&nbsp;a&nbsp;simple&nbsp;demo&nbsp;about&nbsp;how&nbsp;to&nbsp;re-define&nbsp;the&nbsp;template&nbsp;for&nbsp;PanZoomBar.&nbsp;From&nbsp;that,&nbsp;we&nbsp;know&nbsp;the&nbsp;steps&nbsp;as&nbsp;following:  
1.&nbsp;Define&nbsp;the&nbsp;new&nbsp;controltemplate&nbsp;for&nbsp;PanZoomBarMapTool.  
2.&nbsp;Assign&nbsp;the&nbsp;new&nbsp;controltemplate&nbsp;to&nbsp;the&nbsp;built-in&nbsp;PanZoomBarMapToll&nbsp;via&nbsp;the&nbsp;map's&nbsp;property.  
Note:&nbsp;Please&nbsp;don't&nbsp;remove&nbsp;any&nbsp;element&nbsp;in&nbsp;the&nbsp;control&nbsp;template,&nbsp;because&nbsp;some&nbsp;events&nbsp;are&nbsp;attached&nbsp;to&nbsp;these&nbsp;canvas.  
Thanks,  
Johnny&nbsp;&nbsp;  
  
[001\_GettingStarted.zip](https://community.thinkgeo.com/uploads/default/original/2X/3/36bdf08b8482296fc437bd3fe4b7fa74643dceb8.zip) (1.41 KB)

---

<div class="post-metadata">

**Author:** ![Yura](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/y/e0b2c6/32.png) [@Yura](https://community.thinkgeo.com/u/Yura)\
**Post date:** [January 9, 2011, 6:43pm UTC](https://community.thinkgeo.com/t/how-i-can-restyle-maptools-panzoombar/6906/3 "2011-01-09T18:43:02Z")

</div>

Thank&nbsp;you&nbsp;for&nbsp;your&nbsp;help,&nbsp;Johnny

---

<div class="post-metadata">

**Author:** ![Johnny](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/johnny/32/19044_2.png) [@Johnny](https://community.thinkgeo.com/u/Johnny)\
**Post date:** [January 9, 2011, 7:18pm UTC](https://community.thinkgeo.com/t/how-i-can-restyle-maptools-panzoombar/6906/4 "2011-01-09T19:18:15Z")

</div>

You&nbsp;are&nbsp;so&nbsp;welcome.&nbsp;Any&nbsp;questions&nbsp;please&nbsp;be&nbsp;free&nbsp;to&nbsp;post&nbsp;here.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks,&nbsp;  
&nbsp;Johnny
