public void SetProperties(int top, int left, XkcdTileMap map) { _refreshing = true; this.SetCurrentValue(XkcdMapControl.TopProperty, top); this.SetCurrentValue(XkcdMapControl.LeftProperty, left); this.SetCurrentValue(XkcdMapControl.TileMapProperty, map); _refreshing = false; Refresh(); }