Skip to content

Instantly share code, notes, and snippets.

View SuavePirate's full-sized avatar
🐕
Rescuing dogs and building accessibility tech

Alex Dunn SuavePirate

🐕
Rescuing dogs and building accessibility tech
View GitHub Profile
public class HtmlTextBehavior : Behavior<TextBlock>
{
protected override void OnAttached()
{
base.OnAttached();
AssociatedObject.Loaded += OnAssociatedObjectLoaded;
AssociatedObject.LayoutUpdated += OnAssociatedObjectLayoutUpdated;
}
protected override void OnDetaching()