Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting "Explicit languages" does not work #227

Open
JanPichl opened this issue Sep 21, 2022 · 1 comment
Open

Setting "Explicit languages" does not work #227

JanPichl opened this issue Sep 21, 2022 · 1 comment

Comments

@JanPichl
Copy link

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.
@JanPichl
Copy link
Author

JanPichl commented Sep 21, 2022

Broken by the commit on 28.6.2020 13:13-> by removing the parameterless constructor.

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

No branches or pull requests

1 participant