Sometimes we get an error or exception in Visual Studio which points us to some specific line where it has been occured. To make our work more effective, we could use following steps : In VS Tools->Options->Text Editor In order to see lines in cs files we choose C# In order to see lines in xaml files we choose XAML In order...
Lets assume we get an Image : Image img = new Image() { Width = image.Width, Height = image.Height, Source = image }; then, our solution will look as following : Uri path = new Uri(((BitmapFrame)imageControl.Source).Decoder.ToString()); ...