示例#1
0
        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;
        }
示例#2
0
        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);
        }