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
Pravesh Singh
29-Jan-2014Use like that
And you will disable it.