­
C#

How to show line numbers in Visual Studio (cs and xaml)

10:13 AM
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...

Read More...

C#

Get image relative source in WPF

4:28 PM
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()); ...

Read More...

Popular Posts

Total Pageviews