Click here to Skip to main content
15,914,160 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: Help with ProgressBar Pin
Etienne_12310-Oct-09 7:21
Etienne_12310-Oct-09 7:21 
AnswerRe: Help with ProgressBar Pin
Nigel Ferrissey11-Oct-09 9:27
Nigel Ferrissey11-Oct-09 9:27 
AnswerRe: Help with ProgressBar Pin
Pete O'Hanlon11-Oct-09 11:11
mvePete O'Hanlon11-Oct-09 11:11 
QuestionTextBox trigger question Pin
QzRz10-Oct-09 0:55
QzRz10-Oct-09 0:55 
AnswerRe: TextBox trigger question Pin
Daniel Vaughan11-Oct-09 8:10
Daniel Vaughan11-Oct-09 8:10 
QuestionReplacing the desktop instead of running in a window? [SOLVED] Pin
seguso9-Oct-09 20:31
seguso9-Oct-09 20:31 
QuestionUser Control with collection for property Pin
Adam R Harris9-Oct-09 11:24
Adam R Harris9-Oct-09 11:24 
QuestionChange color of ribbon control..... Pin
yogeshdew9-Oct-09 6:31
yogeshdew9-Oct-09 6:31 
QuestionGetting mouse up event on WPF Figure [modified] Pin
fjparisIII9-Oct-09 5:40
fjparisIII9-Oct-09 5:40 
AnswerRe: Getting mouse up event on WPF Figure Pin
Pete O'Hanlon11-Oct-09 11:55
mvePete O'Hanlon11-Oct-09 11:55 
GeneralRe: Getting mouse up event on WPF Figure Pin
fjparisIII11-Oct-09 14:42
fjparisIII11-Oct-09 14:42 
QuestionCan we use control properties in windows forms from a user control create in Wpf .and currently we are using user control in windows forms.... Pin
Anuj Banka9-Oct-09 1:57
Anuj Banka9-Oct-09 1:57 
AnswerRe: Can we use control properties in windows forms from a user control create in Wpf .and currently we are using user control in windows forms.... Pin
Pete O'Hanlon9-Oct-09 2:21
mvePete O'Hanlon9-Oct-09 2:21 
GeneralRe: Can we use control properties in windows forms from a user control create in Wpf .and currently we are using user control in windows forms.... Pin
Anuj Banka9-Oct-09 2:23
Anuj Banka9-Oct-09 2:23 
QuestionStarting to hate silverlight Pin
gantww8-Oct-09 16:59
gantww8-Oct-09 16:59 
AnswerRe: Starting to hate silverlight Pin
lepipele8-Oct-09 18:01
lepipele8-Oct-09 18:01 
QuestionHow to show SSL WCF Service Padlock Pin
Soulforged8-Oct-09 13:48
Soulforged8-Oct-09 13:48 
AnswerRe: How to show SSL WCF Service Padlock Pin
Nigel Ferrissey8-Oct-09 14:22
Nigel Ferrissey8-Oct-09 14:22 
GeneralRe: How to show SSL WCF Service Padlock Pin
Soulforged8-Oct-09 15:31
Soulforged8-Oct-09 15:31 
GeneralRe: How to show SSL WCF Service Padlock Pin
Nigel Ferrissey8-Oct-09 16:15
Nigel Ferrissey8-Oct-09 16:15 
GeneralRe: How to show SSL WCF Service Padlock Pin
Soulforged8-Oct-09 16:49
Soulforged8-Oct-09 16:49 
GeneralRe: How to show SSL WCF Service Padlock Pin
Nigel Ferrissey8-Oct-09 18:07
Nigel Ferrissey8-Oct-09 18:07 
QuestionDynemic Data binding for image within ListBox Pin
grvdarji8-Oct-09 10:40
grvdarji8-Oct-09 10:40 
AnswerRe: Dynemic Data binding for image within ListBox Pin
Gideon Engelberth9-Oct-09 3:32
Gideon Engelberth9-Oct-09 3:32 
You could try making an IValueConverter that turns a byte[] into an ImageSource. Then you could say
<!-- put this in the resources section of the window
     or usercontrol
    (assuming you make a class called 
     ByteArrayToImageSourceConverter and the namespace 
     it is in is mapped to local in XAML) -->
<local:ByteArrayToImageSourceConverter
    x:Key="B2IConv" />

<!-- put this in the list box item template -->
<Image Source="{Binding ByteArrayProperty Converter={StaticResource B2IConv}} />


It looks like you already have the code for converting a byte array to an image source, so all you have to do is look up the methods for IValueConverter and you should be set. Don't feel like you have to actually ConvertBack from the converter.
GeneralRe: Dynemic Data binding for image within ListBox Pin
grvdarji9-Oct-09 6:20
grvdarji9-Oct-09 6:20 

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.