-
Notifications
You must be signed in to change notification settings - Fork 24
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
I can't bind the color in Shade to my selected item #10
Comments
ohoh, I maybe eer, maybe forgot to pass the <sh:Shade BlurRadius="10"
BindingContext="{Binding YourModel}"
Opacity="0.5"
Offset="10,10"
Color="{Binding Color}" /> Will fix this silly mistake quickly |
or you could do: <sh:Shade BlurRadius="10"
Opacity="0.5"
Offset="10,10"
Color="{Binding Source={RelativeSource AncestorType={x:Type local:YourModel}}, Path=Color}" /> It's just a workaround till waiting for the fix |
@roubachof thanks, this - local:YourModel is my ViewModel? |
in the example with RelativeSource, it is your ViewModel type yes. |
so it doesn't work, this is a selected item in a list. |
what is the name of your item ViewModel, and show me your xaml |
Sure :)
|
the type here: AncestorType={x:Type local:DeviceLocateSetupLedColorViewModel} should be your view model item type, not your parent view model. The one in your |
tried both of these and still nothing :/
|
lol no... not these one. |
Sure: ` public class DeviceLocateSetupLedColorViewModel : ViewModelBase
public class LedColorModel : ExtendedBindableObject
` |
ok then it's: Color="{Binding Source={RelativeSource AncestorType={x:Type local:LedColorModel}}, Path=Color}" |
still no:/ + there is a Xaml error |
Ok then it means we got the syntax wrong, juste give me a repro sample please. |
ok. <views:ViewContentBase
</views:ViewContentBase> |
man this is not a repro sample, this is code. I need your whole solution zipped or shared on github. |
sorry, this is not an option. this a production app. |
stay tuned, I will try something :) |
thanks so much, biting my nails with anticipation. |
Hi, do you have a workaround in the meantime? I really want to use this package. |
Hey, I'm currently fixing the issue, and I will release the package next week. |
You are the best man! |
thanks, how can I test it? |
Either uninstall nuget and add the source files to your projects or wait for a new release |
I prefer to use your official release, do you think that will be soon? |
Well, @roubachof promised next week. So hold on) |
Please test the attached package (@themronion you can also test to see if your pr was correctly merged) |
Thanks, I've got a crash when I click on one of the items in the list: |
Could I have the full stack trace please ? |
|
Here is a link to a Sample Project: https://github.com/AlonRom/Sample.git |
Thanks for the feedback it helped a lot ! |
Sure :) will you release soon? |
new attempt. |
sorry, still the same crash |
you need to clear your nuget cache before testing it, cause it has the same version as the previous one |
can you release it, please? |
It won't change a thing for you if I release it, you still have a previous nuget package in your nuget cache. If you don't clear your local cache, it will not update the package. |
not sure what you mean, I don't clean my cache when I update a nuget version. |
I deleted, but I'm still getting error about 1.0.2: Install-Package : NU1102: Unable to find package Sharpnado.Shadows with version (>= 1.1.0)
Install-Package : Package restore failed. Rolling back package changes for 'PetActivityMobile.Droid'.
|
Put the unzipped package in a folder and add this folder as a local nuget storage. |
cool, from the initial test looks great :) waiting for the official release. |
@roubachof Hi, when will you publish the new package? |
Just wanted to mention that I am also interested in the next version. |
Sharpnado.Shadows 1.1.0 has been released \o/ |
Hi I am on version 1.2.0, and still this issue persists. Error XFC0009: No property, BindableProperty, or event found for "Color", or mismatching type between value and property. (XFC0009)
OnViewModel |
Sorry this is not the same issue |
@roubachof So can you give me hints on how to solve this, BTW, I tried adding color with StaticResource in Xaml and it worked. |
Hi,
for example, this doesn't work:
<sh:Shade BlurRadius="10"
Opacity="0.5"
Offset="10,10"
Color="{Binding Color}" />
am I'm doing something wrong?
thanks
The text was updated successfully, but these errors were encountered: