如何在悬停突出显示时删除ListViewItem?

时间:2016-03-16 10:26:49

标签: wpf xaml

我有一个处理流程形状的按钮,看起来不错,但在悬停时,下面会出现丑陋的蓝色高光。我该如何删除它?

按钮2突出显示:

https://docs.angularjs.org/error/$injector/unpr

资源词典:

<SolidColorBrush x:Key="ItemBackgroundHover" Color="Transparent" />
<SolidColorBrush x:Key="ItemBackgroundSelected" Color="Transparent" />

查看:

for (; i < noOfData; ++i) {
                (function(n) {
                    setTimeout(function() {
                        var position = new plugin.google.maps.LatLng(resultList[n].latitude, resultList[n].longitude);
                        markers.push(position);
                        $rootScope.map.addMarker({
                            'position': position,
                            'title': resultList[n].name,
                            'index': n,
                            'snippet': resultList[n].address,
                            "styles": {
                                'text-align': 'center',
                                'font-style': 'italic',
                                'color': 'red'
                            },
                            disableAutoPan: false
                        }, function(marker) {
                            $scope.listResults = resultList;
                            if ((+n + 1) == noOfData) {
                                var latLngBounds = new plugin.google.maps.LatLngBounds(markers);
                                console.log(hashCodeArrayOfMarkers.toString());
                                $rootScope.map.animateCamera({
                                    'target': latLngBounds,
                                    'zoom': 15,
                                    'duration': 1000 // 1 seconds
                                });
                            }
                            marker.addEventListener(plugin.google.maps.event.MARKER_CLICK, function() {
                                var indexOfMarkerClicked = marker.get("index");
                                marker.showInfoWindow();
                                $scope.clickList(indexOfMarkerClicked);
                                marker.showInfoWindow();
                                marker.getPosition(function(latLng) {
                                    $rootScope.map.animateCamera({
                                        'target': latLng,
                                        // 'zoom': 16,
                                        'duration': 400
                                    });
                                });
                            });
                        });
                    }, 0 + (0 * n));
                })(i);
            }

我试图通过下面隐藏它,但没有变化:

{{1}}

0 个答案:

没有答案