Example #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="PropertySheet"/> class.
        /// </summary>
        public PropertySheet()
        {
            IsHitTestVisible = true;
            ClipToBounds = true;
            Background = Brushes.Transparent;

            if (GroupHeaderRenderer == null) GroupHeaderRenderer = new PropertySheetHeaderRenderer();

            Loaded += (s, e) => CreateScrollbars();
            IsVisibleChanged += (s, e) => HandleScrollBarVisibility(_lastTotalHeight);
            MouseWheel += (s, e) =>
            {
                if (_scrollVertical.Visibility == Visibility.Visible)
                    _scrollVertical.Value -= e.Delta;
            };
        }
Example #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="PropertySheet"/> class.
        /// </summary>
        public PropertySheet()
        {
            IsHitTestVisible = true;
            ClipToBounds     = true;
            Background       = Brushes.Transparent;

            if (GroupHeaderRenderer == null)
            {
                GroupHeaderRenderer = new PropertySheetHeaderRenderer();
            }

            Loaded           += (s, e) => CreateScrollbars();
            IsVisibleChanged += (s, e) => HandleScrollBarVisibility(_lastTotalHeight);
            MouseWheel       += (s, e) =>
            {
                if (_scrollVertical.Visibility == Visibility.Visible)
                {
                    _scrollVertical.Value -= e.Delta;
                }
            };
        }