Skip to content

Add ControlStyles to PaModule YAML persistence#812

Merged
tehcrashxor merged 3 commits into
masterfrom
tehcrash-38567538-control-styles
Jun 24, 2026
Merged

Add ControlStyles to PaModule YAML persistence#812
tehcrashxor merged 3 commits into
masterfrom
tehcrash-38567538-control-styles

Conversation

@tehcrashxor

@tehcrashxor tehcrashxor commented Jun 24, 2026

Copy link
Copy Markdown
Member

Summary

Adds YAML persistence modeling for Control Styles to the Persistence library (SchemaV3 / PaYamlV3 Source Code schema).

A control style is a reusable, named set of property formulas that applies to a single target control type. Each style is identified by a unique name within the module.

Changes

  • New ControlStyleDefinition record (Control target type + Properties formula map).
  • New ControlStyles property on PaModule, modeled as a name-keyed NamedObjectMapping<ControlStyleDefinition> (unique style names; duplicate-key checking on deserialize).
  • Round-trip serialization test + sample ControlStyles.pa.yaml under FullSchemaUses.

YAML shape

ControlStyles:
  PrimaryButton:
    Control: Button
    Properties:
      Fill: =Color.Blue

Work item: AB#38567538

Adds a name-keyed ControlStyles collection to the SchemaV3 PaModule. A control style is a reusable, named set of property formulas applied to a single target control type.

- New ControlStyleDefinition record (Control + Properties)

- NamedObjectMapping<ControlStyleDefinition> ControlStyles on PaModule (style name is the unique key)

- Round-trip serialization test + sample ControlStyles.pa.yaml

Work item: AB#38567538
@tehcrashxor tehcrashxor requested review from a team as code owners June 24, 2026 20:33
Comment thread src/Persistence/PaYaml/Models/SchemaV3/ControlStyleDefinition.cs Outdated
Comment thread src/Persistence/PaYaml/Models/SchemaV3/ControlStyleDefinition.cs Outdated
@tehcrashxor tehcrashxor requested a review from joem-msft June 24, 2026 22:47
Comment thread src/Persistence/PaYaml/Models/SchemaV3/PaModule.cs

@joem-msft joem-msft left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you should

@tehcrashxor tehcrashxor merged commit 45e17c4 into master Jun 24, 2026
6 checks passed
@tehcrashxor tehcrashxor deleted the tehcrash-38567538-control-styles branch June 24, 2026 23:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants