internal enum RoutedEventStrategy { Tunnel, Bubble, Direct, } // internal sealed class RoutedEventAttribute : global::System.Attribute // ... 省略 [global::System.AttributeUsage(global::System.AttributeTargets.Class, AllowMultiple = true)] [global::System.Diagnostics.Conditional("DEPENDENCY_PROPERTY_GENERATOR_ATTRIBUTES")] internal sealed class RoutedEventAttribute : global::System.Attribute { /// /// Name of this routed event. /// public string Name { get; } /// /// Strategy of this routed event. /// public RoutedEventStrategy Strategy { get; } /// /// Type of this routed event.
/// Default - typeof(RoutedEventHandler). ///
public global::System.Type? Type { get; set; } /// /// Will generates attached routed event.
/// Default - . ///
public bool IsAttached { get; set; } /// /// Description of this routed event.
/// The event will contain a with this value.
/// This will also be used in the xml documentation if not explicitly specified.
/// Default - . ///
public string? Description { get; set; } /// /// Category of this routed event.
/// The event will contain a with this value.
/// Default - . ///
public string? Category { get; set; } /// /// The routed event xml documentation.
/// Default - "<summary></summary>". ///
public string XmlDocumentation { get; set; } = string.Empty; /// /// The event add/remove xml documentation.
/// Default - "<summary></summary>". ///
public string EventXmlDocumentation { get; set; } = string.Empty; /// /// /// /// /// /// public RoutedEventAttribute( string name, RoutedEventStrategy strategy) { Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); Strategy = strategy; Type = typeof(T); } }