Skip to content

Options

Lucas Trzesniewski edited this page Mar 17, 2020 · 11 revisions

EventInvokerNames

Used to change the name of the method that fires the notify event. This is a string that accepts multiple values in a comma separated form.

Optional. Defaults to "OnPropertyChanged, NotifyOfPropertyChange, RaisePropertyChanged, NotifyPropertyChanged, NotifyChanged"

For example

<?xml version="1.0" encoding="utf-8" ?>
<Weavers>
  <PropertyChanged EventInvokerNames="NotifyPropertyChanged"/>
</Weavers>

Note: For most tool-kits you actually do not need to set EventInvokerNames as the default covers most common tool-kits.

See: SupportedToolkits

InjectOnPropertyNameChanged

Used to control if the On_PropertyName_Changed feature is enable.

Optional. Defaults to "true"

For example

<?xml version="1.0" encoding="utf-8" ?>
<Weavers>
  <PropertyChanged InjectOnPropertyNameChanged='false'/>
</Weavers>

CheckForEquality

Used to control if equality checks should be created. If false, equality checking will be disabled for the project.

Optional. Defaults to "true"

For example

<?xml version="1.0" encoding="utf-8" ?>
<Weavers>
  <PropertyChanged CheckForEquality='false'/>
</Weavers>

CheckForEqualityUsingBaseEquals

Used to control if equality checks should use the Equals method resolved from the base class.

Optional. Defaults to "true"

For example

<?xml version="1.0" encoding="utf-8" ?>
<Weavers>
  <PropertyChanged CheckForEqualityUsingBaseEquals='false'/>
</Weavers>

SuppressWarnings

Used to turn off build warnings from this weaver.

Optional. Defaults to "false"

For example

<?xml version="1.0" encoding="utf-8" ?>
<Weavers>
  <PropertyChanged SuppressWarnings='true'/>
</Weavers>

SuppressOnPropertyNameChangedWarning

Used to turn off build warnings about mismatched On_PropertyName_Changed methods.

Optional. Defaults to "false"

For example

<?xml version="1.0" encoding="utf-8" ?>
<Weavers>
  <PropertyChanged SuppressOnPropertyNameChangedWarning='true'/>
</Weavers>