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

Deprecate #243

Open
4 of 10 tasks
konne opened this issue May 24, 2020 · 5 comments
Open
4 of 10 tasks

Deprecate #243

konne opened this issue May 24, 2020 · 5 comments
Assignees
Milestone

Comments

@konne
Copy link
Member

konne commented May 24, 2020

  • GapTextControl
  • LocProxy
  • LocBinding
  • CSVProvider
    • build sample
    • update docu
  • all MarkupExtensions in Compatibility
  • EnumComboBox
    • Build sample
    • update docu

add new Namespace with WPFLocalizeExtension.Deprecated and add Xmln with a compatiblity URL

@konne konne self-assigned this May 24, 2020
@konne konne changed the title Depreacate Deprecate May 24, 2020
@konne
Copy link
Member Author

konne commented May 31, 2020

starting with the next preRelease there are 2 xmlns Namespaces:

  1. http://wpflocalizeextension.codeplex.com
  2. https://github.com/XAMLMarkupExtensions/WPFLocalizationExtension
    If you use the existing every works like before. If you use the new one you can already check you code if it will work in the 4.0 Release. Because this doesn't contains the deprecated elements.

In the next release the http://wpflocalizeextension.codeplex.com will remove the elements and you can only access them through XMLNS http://wpflocalizeextension.codeplex.com/compatibility
In 4.0 even the XMLNS http://wpflocalizeextension.codeplex.com will be removed.

@konne konne added this to the 4.0 milestone May 31, 2020
@sa-he
Copy link

sa-he commented Jun 2, 2020

In my point of view FELoc can also be deprecated. I've never had the need of using it and it carries some load of redundant code.

@nithinshiriya
Copy link

I am having a warning and what is the alternative code for the same?

warning CS0618: 'LocProxy' is obsolete: 'LocProxy is deprecated and will be removed in version 4.0, because lex:Loc supports now direct Binding, see documentation'

                <lex:LocProxy x:Name="title" Source="{Binding Title}"/>
                <TextBlock Style="{StaticResource PanelTitleSecondary}" Text="{Binding ElementName=title, Path=Result}" VerticalAlignment="Center" Margin="5,0" />

@sa-he
Copy link

sa-he commented Oct 10, 2020

@nithinshiriya

Try

<TextBlock Style="{StaticResource PanelTitleSecondary}" Text="{lex:Loc {Binding Title}}" VerticalAlignment="Center" Margin="5,0" />

@alex6dj
Copy link

alex6dj commented May 8, 2021

After EnumComboBox disappear, what is the recommended way to get the same behavior for the above code.

<lex:EnumComboBox PrependType="True" SelectedItem="{Binding Preset.InputPostConversionAction}" Type="{x:Type model:InputPostConversionAction}" />

Thanks in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants