-
-
Notifications
You must be signed in to change notification settings - Fork 516
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
Using images that can't be found during design time crashes designer #543
Comments
Are your icons compiled as resource in your application assembly? The converter which enables you to just say "images/myicon.png" checks if the file exists on disc, if the file is not on disc it just prepends "pack://application:,,,/" and tries to load that image. You can always use the full resource syntax if you want to. |
If the images would not be sealed you risk getting this issue #493 |
My images are on disk in my Images folder. If I use "pack://application:,,,/" in a DropDownButton which is the first control in a UserControl then it wont work either. Thanks Batzen! |
#493 is fixed and causes your issue. You only get that error during design-time, or? |
It seems like that. As soon as the app starts the error is gone. When I stop the debug there it comes again. |
Ok. Then in previous versions you just would have seen no icons in the designer. Will restore that behavior. Totally forgot about the designer on that one. |
To clarify, this is a designer only issue.
|
I think that showing a generic “missing image” will be more intuitive. Than you know its a recognized error. |
Hallo,
I tried to update from 6.0.0-dev0171 to a higher version and then I only get errrors. One of the errors I could detect is:
Severity Code Description Project File Line Suppression State
Error 'ComboBox' ControlTemplate TargetType does not match templated type 'ComboBox'.
I deleted all the Icons and now I get the Error:
Severity Code Description Project File Line Suppression State
Error Part URI cannot start with two forward slashes.
After this I removed all LargeIcons and then my project starts again. However it seems like it cant find any normal icon path.
I decided to try again and now I give the large Icon as:
LargeIcon=Images\past-48.png
This seems to work. However after debuging I still see an error:
Severity Code Description Project File Line Suppression State
Error Cannot locate resource 'images/past-48.png'.
Environment
The text was updated successfully, but these errors were encountered: