6.2.5.54. Architecture-ComputeDependencyProperties

Extracts attached properties and dependency properties from code and inserts them in a separate RFG view

Required inputs: CSharpAST, RFG

Creates a view containing all detected accessors of dependency properties (including attached properties). Methods that are used for defining and registering dependency properties can configured using the options dependency_register_methods and attached_register_methods. It is also possible to add the detected accessors directly to the entries view.

Possible Messages

This rule has no predefined messages.

Options

add_accessors_to_entries_view

add_accessors_to_entries_view : bool = False

If true: add accessors unconditionally to entries view.
 

assembly_view_name

assembly_view_name : str = 'Assembly'

Name of the assembly view.
 

attached_register_methods

attached_register_methods : list[str] = ['RegisterAttached', 'RegisterAttachedReadOnly']

List of routines that register attached properties.
 

dependency_property_class

dependency_property_class : str = 'System.Windows.DependencyProperty'

Namespace-qualified name of type that is used to declare a DependencyProperty.
 

dependency_register_methods

dependency_register_methods : list[str] = ['Register']

List of routines that register dependency properties.
 

export_warnings

export_warnings : bool = True

Export output messages to the analysis database.
 

loglevel

loglevel : LogLevel = 'WARNING'

Logging mode. WARNING only outputs errors and warnings, INFO additionally prints info messages, DEBUG additionally outputs info and debug messages.
 

property_view_name

property_view_name : str = 'Routines used by dependency properties'

Name of the newly created property view.
 

Option Types

These types are used by options listed above:

LogLevel

An enumeration.
 
  • WARNING

  • INFO

  • DEBUG