Now I am stuck into another problem(but i hope its very simple..)
Actually i am not able to load my image when i run my application.. it seems its a pity error.. but still.. code seems to be all right to me
BitmapImage firstImg = new BitmapImage();
string path = "../_assets/Themes/0/icons/51-icon.png";
firstImg.UriSource = new Uri(firstUri, UriKind.Relative);
Image img1;
img1 = new Image()
{
Source = firstImg,
Width = 50,
Height = 50,
Cursor = Cursors.Hand,
VerticalAlignment = VerticalAlignment.Top,
HorizontalAlignment = HorizontalAlignment.Right,
Visibility = Visibility.Visible
};
Then i have defined a grid and tried to add this image to my grid but its not running and an internal exception "Invalid Operation exception" is coming
g.children.add(img1);Any Suggestions where i went wrong please.......
Thanks a lot
Deepak