Click here to Skip to main content
15,910,877 members
Home / Discussions / C#
   

C#

 
AnswerRe: Console.WriteLine properties of something Pin
Richard MacCutchan27-Dec-13 3:38
mveRichard MacCutchan27-Dec-13 3:38 
AnswerRe: Console.WriteLine properties of something Pin
BillWoodruff27-Dec-13 3:39
professionalBillWoodruff27-Dec-13 3:39 
AnswerRe: Console.WriteLine properties of something Pin
Vinay Jade27-Dec-13 4:39
professionalVinay Jade27-Dec-13 4:39 
GeneralRe: Console.WriteLine properties of something Pin
Dick Lasy27-Dec-13 4:49
Dick Lasy27-Dec-13 4:49 
GeneralRe: Console.WriteLine properties of something Pin
Dick Lasy27-Dec-13 23:36
Dick Lasy27-Dec-13 23:36 
QuestionGenerate hyperlink to file Pin
piet kouwer26-Dec-13 21:06
piet kouwer26-Dec-13 21:06 
AnswerRe: Generate hyperlink to file Pin
Richard MacCutchan26-Dec-13 22:33
mveRichard MacCutchan26-Dec-13 22:33 
GeneralRe: Generate hyperlink to file Pin
piet kouwer26-Dec-13 22:41
piet kouwer26-Dec-13 22:41 
GeneralRe: Generate hyperlink to file Pin
Richard MacCutchan26-Dec-13 23:17
mveRichard MacCutchan26-Dec-13 23:17 
GeneralRe: Generate hyperlink to file Pin
piet kouwer27-Dec-13 0:07
piet kouwer27-Dec-13 0:07 
GeneralRe: Generate hyperlink to file Pin
Richard MacCutchan27-Dec-13 0:10
mveRichard MacCutchan27-Dec-13 0:10 
GeneralRe: Generate hyperlink to file Pin
piet kouwer27-Dec-13 0:27
piet kouwer27-Dec-13 0:27 
GeneralRe: Generate hyperlink to file Pin
Richard MacCutchan27-Dec-13 0:33
mveRichard MacCutchan27-Dec-13 0:33 
GeneralRe: Generate hyperlink to file Pin
Richard MacCutchan27-Dec-13 0:22
mveRichard MacCutchan27-Dec-13 0:22 
GeneralRe: Generate hyperlink to file Pin
piet kouwer27-Dec-13 0:32
piet kouwer27-Dec-13 0:32 
AnswerRe: Generate hyperlink to file Pin
Ron Nicholson27-Dec-13 3:46
professionalRon Nicholson27-Dec-13 3:46 
QuestionConvert BitmapImage into byte arrays in wpf Pin
Member 1001614026-Dec-13 11:42
Member 1001614026-Dec-13 11:42 
Hello,
I found this class in my research but I do not know how to use it. Moreover, it seems to me that the ConvertBack () method is not completely completed.If someone has already used his help will be invaluable for me.
here is the class

C#
[ValueConversion(typeof(byte[]), typeof(ImageSource))]
   public class ByteArrayToImageSource : IValueConverter
   {
       #region Implementation of IValueConverter

       public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
       {
           var byteArrayImage = value as byte[];

           if (byteArrayImage != null && byteArrayImage.Length > 0)
           {
               var ms = new MemoryStream(byteArrayImage);

               var bitmapImg = new BitmapImage();

               bitmapImg.BeginInit();
               bitmapImg.StreamSource = ms;
               bitmapImg.EndInit();

               return bitmapImg;
           }

           return null;
       }

       public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
       {
           return null;
       }

       #endregion
   }

AnswerRe: Convert BitmapImage into byte arrays in wpf Pin
OriginalGriff26-Dec-13 21:04
mveOriginalGriff26-Dec-13 21:04 
GeneralRe: Convert BitmapImage into byte arrays in wpf Pin
Member 1001614027-Dec-13 0:24
Member 1001614027-Dec-13 0:24 
Questionhow to get Current language in C# Application Pin
mohmmadg26-Dec-13 1:00
mohmmadg26-Dec-13 1:00 
AnswerRe: how to get Current language in C# Application Pin
Eddy Vluggen26-Dec-13 1:28
professionalEddy Vluggen26-Dec-13 1:28 
AnswerRe: how to get Current language in C# Application Pin
BillWoodruff26-Dec-13 1:30
professionalBillWoodruff26-Dec-13 1:30 
Questionshowing image on label. Pin
Ron.bharath26-Dec-13 0:57
Ron.bharath26-Dec-13 0:57 
AnswerRe: showing image on label. Pin
Eddy Vluggen26-Dec-13 1:34
professionalEddy Vluggen26-Dec-13 1:34 
GeneralRe: showing image on label. Pin
BillWoodruff26-Dec-13 10:01
professionalBillWoodruff26-Dec-13 10:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.