Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Bug: NullReferenceException in generated resource code #1954

Copy link
Copy link
Open
@dotMorten

Description

@dotMorten
Issue body actions

Description

I have a custom resource dictionary for my generic xaml, with code-behind so I can use x-bind in my control templates.
However when using converters a null-reference exception is thrown in the generated code because the localResources field hasn't been initialized.

Image

Steps To Reproduce

  1. Unpack, open and run the following sample: XBindBug.zip
  2. Note the above exception.

Expected Behavior

No exception ;-)

Version Info

CSWinRT 2.2.0, WinAppSDK 1.7.0

Additional Context

If I move all code-behind to generic.xaml this issue does go away, but I don't want all my control styles in a single file for maintainability. This appears to just be a code generator bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.