Skip to content

Remove last remaining SRID enum usages from WpfGfx/include/wgx_render.cs - #11789

Closed
davkean with Copilot wants to merge 2 commits into
mainfrom
copilot/use-nameof-syntax
Closed

davkean with Copilot wants to merge 2 commits into
mainfrom
copilot/use-nameof-syntax

Conversation

Copilot AI commented Jul 16, 2026 •

Copy link
Copy Markdown

The codebase has been progressively migrated away from the SRID enum (generated by Arcade's GenerateResxSource.GenerateResourcesCodeAsConstants) toward direct SR.PropertyName property access. This removes the final 53 remaining SRID. references, all in WpfGfx/include/wgx_render.cs.

Changes

  • WpfGfx/include/wgx_render.cs: Replace old SR.Get(SRID.*) calls with modern equivalents:
    • SR.Get(SRID.Image_WrongState) → SR.Image_WrongState
    • SR.Get(SRID.Media_InvalidArgument, null) → SR.Format(SR.Media_InvalidArgument, null)

The canonical compiled copy (Common/Graphics/wgx_render.cs, referenced by PresentationCore.csproj) was already updated; this brings the legacy WpfGfx include copy into alignment.

@dotnet-policy-service dotnet-policy-service Bot added the PR metadata: Label to tag PRs, to facilitate with triage label Jul 16, 2026
Copilot AI changed the title [WIP] Update code to use nameof(SRID.PropertyName) syntax Remove last remaining SRID enum usages from WpfGfx/include/wgx_render.cs Jul 16, 2026
Copilot AI requested a review from davkean July 16, 2026 02:00
@davkean davkean closed this Jul 16, 2026
@davkean
davkean deleted the copilot/use-nameof-syntax branch July 27, 2026 00:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR metadata: Label to tag PRs, to facilitate with triage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use nameof(SRID.PropertyName) syntax instead of depending on GenerateResxSource.GenerateResourcesCodeAsConstants

2 participants