Skip to content

Setting "Explicit languages" does not work #227

@JanPichl

Description

@JanPichl

Using the following code from the example.

<l:LanguageSelector>
    <l:Language Culture="de-DE"
                FlagSource="pack://application:,,,/Gu.Wpf.Localization;component/Flags/de.png" />
    <l:Language Culture="en-GB"
                FlagSource="pack://application:,,,/Gu.Wpf.Localization;component/Flags/gb.png" />
    <l:Language Culture="sv-SE"
                FlagSource="pack://application:,,,/Gu.Wpf.Localization;component/Flags/se.png" />
</l:LanguageSelector>

Throws the following errors in the XAML designer:

  • XDG0023 The type "Language" does not include any accessible constructors.
  • XLS0507 Type 'Language' is not usable as an object element because it is not public or does not define a public parameterless constructor or a type converter.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions