by
0
6
1,657
0
Top 1% !
Popular
Famous
Easy-to-find
Specified
OpenSource
Popularity: 13825th place

Published on:

LanguageCSharp
LicenseMIT_X11
OSWindows

ResetOverflowLayout: Invoked when the content or overflow template is changed to recreate the column layout.

<summary>
Invoked when the content or overflow template is changed to recreate the column layout.
</summary>
<param name="d">Instance of <see cref="RichTextColumns"/> where the change
occurred.</param>
<param name="e">Event data describing the specific change.</param>
Copy Embed Code
<iframe id="embedFrame" style="width:600px; height:300px;"
src="https://www.snip2code.com/Embed/285637/ResetOverflowLayout--Invoked-when-the-co?startLine=0"></iframe>
Click on the embed code to copy it into your clipboard Width Height
Leave empty to retrieve all the content Start End
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Windows.Foundation; using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; using Windows.UI.Xaml.Data; using Windows.UI.Xaml.Documents; /// <summary> /// Invoked when the content or overflow template is changed to recreate the column layout. /// </summary> /// <param name="d">Instance of <see cref="RichTextColumns"/> where the change /// occurred.</param> /// <param name="e">Event data describing the specific change.</param> 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(); } }
If you want to be updated about similar snippets, Sign in and follow our Channels

blog comments powered by Disqus