Skip to content

Do not use the Style property to provide default appearance, use DefaultStyleKey instead. #1013

@yll690

Description

@yll690

You should use the DefaultStyle property to provide default appearance and let user to use the Style property to modify it.

Now you occupied the Style property, so we can only use a style with a BasedOn. Without it, the new style with few setters will replace the original style and makes the control invisible.

Why not set the DefaultStyleKey property like normal custom controls? Using the DefaultStyleKey can also help the control display normally even without adding the HandyControl's resource dictionary.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions