I have 5 errors e.g : null Image ImageBrush.ImageSource ImageSource - Cannot find governing FrameworkElement or FrameworkContentElement for target element
The image in your project Set its build action to resource, you can do that in the property is panel ,so that when the project is compiled the image will be considered as a resource of the application when you run the application it will easily find that image
The control works fine but rises (Cannot find governing FrameworkElement or FrameworkContentElement for target element) Binding Error. How can i solve binding error, more output details below. --------------------------------------------------------------------------------------------------------------------------------- Data Context Binding Path Target Target Type null Image ImageBrush.ImageSource ImageSource Thank you.
@@TacticDevs Thanks for replying. Default value is set to null, One more think I forgot to mention is that all dependency properties (Ytranslate, BorderWidth etc..) yield similar result.
I think I know where the problem, You need to verify the binding attribute of the image control element in the control template make sure it’s relative and it set to templated parent you check this part of the video 9:00 And make sure the binding attribute expression is the same as the one in the video
Finally. This is what I needed. Thanks a lot.
Best tutorial video. Thanks for your dedication.
A really clear explanation. 👍
Thanks man... keep it up
Great video 👍 Could you provide a version in which oyu bind the ImageSource to an Image from a database?
BTW great job
I’m having problem with the Generic pls
It says the name space “sososo ” does not exist i the namespace “clr-namespace:sososo”.
And and my name space is correct
I have 5 errors e.g :
null Image ImageBrush.ImageSource ImageSource - Cannot find governing FrameworkElement or FrameworkContentElement for target element
The image in your project Set its build action to resource, you can do that in the property is panel ,so that when the project is compiled the image will be considered as a resource of the application when you run the application it will easily find that image
@@TacticDevs This is what I have set up and I still get errors.
The control works fine but rises (Cannot find governing FrameworkElement or FrameworkContentElement for target element) Binding Error.
How can i solve binding error, more output details below.
---------------------------------------------------------------------------------------------------------------------------------
Data Context Binding Path Target Target Type
null Image ImageBrush.ImageSource ImageSource
Thank you.
Try to check the declaration of the image dependency property set the default value to null
1:18 you can check this part of the video
@@TacticDevs Thanks for replying.
Default value is set to null, One more think I forgot to mention is that all dependency properties (Ytranslate, BorderWidth etc..) yield similar result.
I think I know where the problem, You need to verify the binding attribute of the image control element in the control template make sure it’s relative and it set to templated parent you check this part of the video 9:00 And make sure the binding attribute expression is the same as the one in the video
@@TacticDevs It is set to "ImageSource="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Image}"