src/Misc/EFTools/XmlCore/UI/Views/Explorer/ExplorerFrame.cs
/// <summary>
///     If the Vertical Scrollbar changes in size, if there is an active search,
///     the adorners need to be redrawn.
/// </summary>
If the Vertical Scrollbar changes in size, if there is an active search,
the adorners need to be redrawn.
If the Vertical Scrollbar changes in size if there is an active search the adorners need to be redrawn .
private void VScrollBar_SizeChanged(object sender, SizeChangedEventArgs e)
        {
            var paddingTop = SystemParameters.VerticalScrollBarButtonHeight;
            var paddingBottom = paddingTop;
            if (ScrollViewer.ComputedHorizontalScrollBarVisibility == Visibility.Visible)
            {
                paddingBottom += SystemParameters.HorizontalScrollBarHeight;
            }
            double marginRight = 0; 
            SearchTicksTrack.Margin = new Thickness(0, 0, marginRight, 0);
            SearchTicksTrack.SetValue(Border.PaddingProperty, new Thickness(0, paddingTop, 0, paddingBottom));
            if (_searchIsActive && !_searchExpansionInProgress)
            {
                ResetAdorners();
                WaitForExpansionThenProcessTreeView();
            }
        }
private void VScrollBar_SizeChanged ( object sender , SizeChangedEventArgs e ) { var paddingTop = SystemParameters . VerticalScrollBarButtonHeight ; var paddingBottom = paddingTop ; if ( ScrollViewer . ComputedHorizontalScrollBarVisibility == Visibility . Visible ) { paddingBottom += SystemParameters . HorizontalScrollBarHeight ; } double marginRight = 0 ; SearchTicksTrack . Margin = new Thickness ( 0 , 0 , marginRight , 0 ) ; SearchTicksTrack . SetValue ( Border . PaddingProperty , new Thickness ( 0 , paddingTop , 0 , paddingBottom ) ) ; if ( _searchIsActive && ! _searchExpansionInProgress ) { ResetAdorners ( ) ; WaitForExpansionThenProcessTreeView ( ) ; } }
If the Vertical Scrollbar changes in size, if there is an active search,
the adorners need to be redrawn.
If the Vertical Scrollbar changes in size if there is an active search the adorners need to be redrawn .
// SystemParameters.VerticalScrollBarWidth;
sender
object
e
SizeChangedEventArgs