// Token: 0x0600569C RID: 22172 RVA: 0x0017F660 File Offset: 0x0017D860 private static void ResetScrolling(StackPanel element) { element.InvalidateMeasure(); if (element.IsScrolling) { element._scrollData.ClearLayout(); } }
private static void ResetScrolling(StackPanel element) { element.InvalidateMeasure(); // Clear scrolling data. Because of thrash (being disconnected & reconnected, &c...), we may if (element.IsScrolling) { element._scrollData.ClearLayout(); } }
private static void OnStackPanelOrientationChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { StackPanel sp = d as StackPanel; if (sp == null) { return; } sp.InvalidateMeasure(); sp.InvalidateArrange(); }