Hi @Ethan
I want to change the style of PanZoomBarMap.The diagram below is a rendering
I’ve rewritten this class PanZoomBarMap like this:
public class OwnPanZoomBarMapTool:PanZoomBarMapTool
{
public override void OnApplyTemplate()
{
base.OnApplyTemplate();
var zoomInImage = (Image)base.GetTemplateChild(“ZoomInImage”);
zoomInImage.Source = new BitmapImage(new Uri(@“C:\Users\asus\Desktop\ThinkGeoGis\qq1.png”));
var canvasZoomBar = (Canvas)base.GetTemplateChild(“ZoomBar”);
canvasZoomBar.Background = Brushes.Transparent;
var canvasTip = (Canvas)base.GetTemplateChild(“ZoomHandlerTip”);
canvasTip.Background = Brushes.Transparent;
var grid = (Grid)base.GetTemplateChild(“PanPanel”);
grid.Background = Brushes.Transparent;
}
}
MapControl.MapTools.Clear();
OwnPanZoomBarMapTool ownPanZoomBarMapTool = new OwnPanZoomBarMapTool();
MapControl.MapTools.Add(ownPanZoomBarMapTool);
The mark above is what I want. How can i do?
Regards
ZhangMing