ArcGISPortalViewer.Common.RichTextColumns.ResetOverflowLayout C# (CSharp) Method

ResetOverflowLayout() private static method

Invoked when the content or overflow template is changed to recreate the column layout.
private static ResetOverflowLayout ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void
d Windows.UI.Xaml.DependencyObject Instance of where the change /// occurred.
e Windows.UI.Xaml.DependencyPropertyChangedEventArgs Event data describing the specific change.
return void
        private static void ResetOverflowLayout(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            // When dramatic changes occur, rebuild the column layout from scratch
            var target = d as RichTextColumns;
            if (target != null)
            {
                target._overflowColumns = null;
                target.Children.Clear();
                target.InvalidateMeasure();
            }
        }