Modifying a Macro in VisualStudio

The "propdp" macro creates a dependency property as follows:

public int MyProperty
{
    get { return (int)GetValue(MyPropertyProperty); }
    set { SetValue(MyPropertyProperty, value); }
}

// Using a DependencyProperty as the backing store for MyProperty.  This enables animation, styling, binding, etc...
public static readonly DependencyProperty MyPropertyProperty =
    DependencyProperty.Register("MyProperty", typeof(int), typeof(ownerclass), new UIPropertyMetadata(0));

      

I would like to change it a little. To look like this:

public int MyProperty
{
    get { return (int)GetValue(MyPropertyProperty); }
    set { SetValue(MyPropertyProperty, value); }
}
public static readonly DependencyProperty MyPropertyProperty = DependencyProperty.Register("MyProperty", typeof(int), typeof(ownerclass), new UIPropertyMetadata(0));

      

Can this be done? Does anyone know where to change this?

+2


a source to share


1 answer


Go to C: \ Program Files \ Microsoft Visual Studio 9.0 \ VC # \ Snippets \ 1033 \ NetFX30

You will find propa.snippet and propdp.snippet there.



Edit to do what you want ...

+2


a source







All Articles