Click here to Skip to main content
15,888,113 members
Home / Discussions / C#
   

C#

 
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 
AnswerRe: showing image on label. Pin
BillWoodruff26-Dec-13 1:46
professionalBillWoodruff26-Dec-13 1:46 
GeneralRe: showing image on label. Pin
Ron.bharath26-Dec-13 18:50
Ron.bharath26-Dec-13 18:50 
Questionneed solution for the following Pin
Surabhi1725-Dec-13 13:21
Surabhi1725-Dec-13 13:21 
AnswerRe: need solution for the following Pin
BillWoodruff25-Dec-13 14:30
professionalBillWoodruff25-Dec-13 14:30 
QuestionFinger Print Scanner in C#.NET Pin
srdk_flora25-Dec-13 3:36
srdk_flora25-Dec-13 3:36 
AnswerRe: Finger Print Scanner in C#.NET Pin
Dave Kreskowiak25-Dec-13 6:08
mveDave Kreskowiak25-Dec-13 6:08 
AnswerRe: Finger Print Scanner in C#.NET Pin
jschell25-Dec-13 8:08
jschell25-Dec-13 8:08 
Questionc# Pin
Member 1048691225-Dec-13 2:22
Member 1048691225-Dec-13 2:22 
AnswerRe: c# Pin
Pete O'Hanlon25-Dec-13 4:40
mvePete O'Hanlon25-Dec-13 4:40 

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.