private void NotifyDataViewMouseEnter(DetailedDataGroupView dataView) { var counterPart = DetailedDataView.GetCounterpart(dataView); Panel.SetZIndex(dataView, 1); if (counterPart != null) { Panel.SetZIndex(counterPart, 0); } dataView.MinimumPriority = (int)DetailedDataViewModel.DisplayPriority.DefaultHidden; dataView.Height = double.NaN; }
private void NotifyDataViewMouseLeave(DetailedDataGroupView dataView) { var counterPart = DetailedDataView.GetCounterpart(dataView); dataView.MinimumPriority = _defaultDataPriority; var binding = new Binding("ActualHeight"); binding.Converter = SHalfConverter; binding.Source = VisualTreeHelper.GetParent(dataView); dataView.SetBinding(MinHeightProperty, binding); dataView.SetBinding(HeightProperty, binding); }