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

Image source binding #294

Open
Uporka95 opened this issue Mar 21, 2021 · 4 comments
Open

Image source binding #294

Uporka95 opened this issue Mar 21, 2021 · 4 comments

Comments

@Uporka95
Copy link

Uporka95 commented Mar 21, 2021

Can you give an actual example of binding for Image's "Source" property with XAML markup?
Im using LocProxy now:

<Image x:Name="MyImh" Grid.Row="0" Grid.Column="1" Source="{Binding ElementName=LocProxy, Path=Result}" Stretch="UniformToFill"></Image> <lex:LocProxy Name="LocProxy" Source="{Binding SelectedItem.Slide}"/>

Thank you

@Karnah
Copy link
Contributor

Karnah commented Jul 2, 2022

Hello, @Uporka95!
I think the problem is that Binding inside lex:Loc doesn't have access to control's ILocalizationProvider, only to default. And I think you use default provider for strings (because I do the same).
@konne, I think this restriction with Binding is very bad. And now threre is not opportunity to refuse from LocProxy untill it wasn't fixed.

@konne
Copy link
Member

konne commented Jul 2, 2022

@Karnah can we have next week a sync and let us discuss potential changes. I this week ill. You should still have my skype connection. What would fit for you (after Wednesday)

@Karnah
Copy link
Contributor

Karnah commented Jul 3, 2022

@Uporka95, sorry, but I had a mistake. It's possible to do like this:

<Image Source="{lex:Loc {Binding SelectedItem.Slide}}" />

or if you want to specify a different resource, use this:

<Image Source="{lex:Loc {Binding SelectedItem.Slide, StringFormat='{}Assembly:DictionaryName:{0}'}}" />

@konne, sorry too, this case is ok. But there are another cases with problems. And it is a good idea to have a call. I think we can discuss time on Thursday.

@Karnah
Copy link
Contributor

Karnah commented Aug 3, 2022

Hi, @Uporka95! Did you have opportunity to check this?

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

3 participants