WP8 Error – Cannot clear the icon while in a list Parameter name: value

Published on December 27, 2013 by abundantcode

Filed under Windows Phone

Last modified December 27, 2013

Print this page

rate 1 star rate 2 star rate 3 star rate 4 star rate 5 star
Your rating: none, Average: 0 (0 votes)

This article have been viewed 3316 times

When using the ApplicationBar in the Windows Phone Application and dynamically setting the IconButtons from code behind , I encounter this error .

Cannot clear the icon while in a list Parameter name: value

The cause of the error and the fix is pretty straight forward .

I was setting the IconUri of the ApplicationBarIcon button programmatically and the value of the IconUri was not set for one of the IconButtons.

WP8 Error - Cannot clear the icon while in a list Parameter name: value

Setting the right IconUri resolved the issue.

If you enjoyed this post, please consider leaving a comment or subscribing to the RSS feed to have future articles delivered to your feed reader.

Leave a Comment


x

You might be Interested in these Posts

Could not load file or assembly … An attempt was made to load a program with an incorrect format (System.BadImageFormatException)

There are times when you might get the following error when running the application from Visual Stud...

Example of Lambda Expression with Action method with String as Parameter in C#

Below is a sample code snippet that demonstrates the lambda expression with action method with strin...

What are the Different Tile templates in Windows Phone 8?

The Windows Phone 8 SDK provides the developers with the option to use one of the below tile templat...