Users Pricing

forum

Home Forums Disabling ApplicationBarIconButton in wp7 – MindStick

Disabling ApplicationBarIconButton in wp7

Manoj Bhatt 2020 29 Jan 2014

I've two applicationbariconbuttons, out of which one is to be enabled only if certain conditions are met. My Code in C#

if (//conditions)
  {
     ((ApplicationBarIconButton)DeleteButton).IsEnabled = false;
  }

But while excecution, i get the following error,

An unhandled exception of type 'System.Reflection.TargetInvocationException' occurred in System.Windows.ni.dll

Help me to solve this one.

Thanks in advance

1 Answers

Markdown for AI

A clean, structured version of this page for AI assistants and LLMs.

Open .md