I’m using Mark Smith’s Julmar MVVM-Helpers library in an application and would like to add one of his behavior’s to all my textboxs. Obviously, this needs to be done in a Resource dictionary, but I’m very much still a newbie at configuring them.
What I want to do is to add the below behavior
namespace JulMar.Windows.Interactivity
{
/// <summary>
/// This behavior selects all text in a TextBox when it gets focus
/// </summary>
public class SelectTextOnFocusBehavior : Behavior<TextBox>
{....
To all of my textboxes. What I cannot find is the syntax on how to add this in the resource dictionary.
Assuming the SelectTextOnFocusBehavior class is used in a XAML file in the same assembly, then you’d want to do something like: