Click here to Skip to main content
15,910,009 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: Silverlight delivery Pin
_Maxxx_23-May-11 13:03
professional_Maxxx_23-May-11 13:03 
GeneralRe: Silverlight delivery Pin
Mycroft Holmes23-May-11 13:53
professionalMycroft Holmes23-May-11 13:53 
AnswerRe: Silverlight delivery Pin
Abhinav S22-May-11 20:04
Abhinav S22-May-11 20:04 
GeneralRe: Silverlight delivery Pin
Mycroft Holmes22-May-11 20:58
professionalMycroft Holmes22-May-11 20:58 
AnswerRe: Silverlight delivery [modified] Pin
Pete O'Hanlon23-May-11 2:23
mvePete O'Hanlon23-May-11 2:23 
GeneralRe: Silverlight delivery Pin
Mycroft Holmes23-May-11 2:31
professionalMycroft Holmes23-May-11 2:31 
GeneralRe: Silverlight delivery Pin
Pete O'Hanlon23-May-11 2:32
mvePete O'Hanlon23-May-11 2:32 
QuestionCaro online with wpf Pin
Minh Hai Phan20-May-11 17:15
Minh Hai Phan20-May-11 17:15 
AnswerRe: Caro online with wpf Pin
Pete O'Hanlon20-May-11 22:33
mvePete O'Hanlon20-May-11 22:33 
AnswerRe: Caro online with wpf Pin
Abhinav S22-May-11 20:00
Abhinav S22-May-11 20:00 
QuestionPlacing WPF user control into VS tool-box Pin
Prasoon Chaudhary20-May-11 1:57
Prasoon Chaudhary20-May-11 1:57 
AnswerRe: Placing WPF user control into VS tool-box Pin
Mycroft Holmes22-May-11 14:38
professionalMycroft Holmes22-May-11 14:38 
QuestionRe: Placing WPF user control into VS tool-box Pin
Prasoon Chaudhary22-May-11 19:08
Prasoon Chaudhary22-May-11 19:08 
AnswerRe: Placing WPF user control into VS tool-box Pin
Mycroft Holmes22-May-11 19:32
professionalMycroft Holmes22-May-11 19:32 
GeneralRe: Placing WPF user control into VS tool-box Pin
Prasoon Chaudhary22-May-11 19:36
Prasoon Chaudhary22-May-11 19:36 
QuestionUsing XAML for business objects Pin
Jean-Louis Leroy20-May-11 1:35
Jean-Louis Leroy20-May-11 1:35 
AnswerRe: Using XAML for business objects Pin
Jean-Louis Leroy20-May-11 1:49
Jean-Louis Leroy20-May-11 1:49 
Question[WPF] Problem binding to an image property Pin
SVanraes19-May-11 21:50
SVanraes19-May-11 21:50 
Hello all,
I have a series of "drawing" objects that hold some application specific data alongside an image. These objects (or at least their dates) are displayed in a listbox, when an item is selected it's image should be generated and displayed in another part of the grid. It does however not appear.

Here is some code:

<ListBox Grid.Column="0" ItemsSource="{Binding Source={StaticResource _Settings}, Path=ImageCollection.CurrentList}" Name="DrawingsList">
<ListBox.ItemTemplate>
<DataTemplate>
<Label Content="{Binding DateTime}"/>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>

<Image Grid.Column="1" Source="{Binding ElementName=DrawingsList, Path=SelectedItem.ActualImage}" Width="500" Height="500"/>
<!--<Label Grid.Column="1" Content="{Binding ElementName=DrawingsList, Path=SelectedItem.DateTime}"/> -->

And behind:

private System.Drawing.Image _ActualImage;
public System.Drawing.Image ActualImage
{
get
{
if (_ActualImage == null)
{
_ActualImage = GenerateImage();
}
return _ActualImage;
}
}

private System.Drawing.Image GenerateImage()
{
Bitmap bmp = new Bitmap(500, 500);
Graphics G = Graphics.FromImage(bmp);
G.Clear(Color.Red);
G.Save();
return bmp;
}

The commented label in the WPF that just displays the datetime property of the object works perfectly, so why doesn't the image ?
AnswerRe: [WPF] Problem binding to an image property Pin
Mark Salsbery20-May-11 5:03
Mark Salsbery20-May-11 5:03 
QuestionHow to change the color of a row in listbox Itemsource Pin
Rocky2319-May-11 21:21
Rocky2319-May-11 21:21 
AnswerRe: How to change the color of a row in listbox Itemsource Pin
BubingaMan19-May-11 22:52
BubingaMan19-May-11 22:52 
Questionvisibility of form sections based on selected index of DataGrid Pin
Michael J. Eber19-May-11 13:31
Michael J. Eber19-May-11 13:31 
AnswerRe: visibility of form sections based on selected index of DataGrid [modified] Pin
Mark Salsbery19-May-11 17:35
Mark Salsbery19-May-11 17:35 
GeneralRe: visibility of form sections based on selected index of DataGrid Pin
Michael J. Eber20-May-11 7:09
Michael J. Eber20-May-11 7:09 
GeneralRe: visibility of form sections based on selected index of DataGrid Pin
Mark Salsbery20-May-11 7:28
Mark Salsbery20-May-11 7:28 

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.