Click here to Skip to main content
15,915,509 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: How do I handle both hover and click events on a button control? Pin
Abhinav S1-Mar-10 22:24
Abhinav S1-Mar-10 22:24 
QuestionFindResource method in WPF Pin
Ahamed Azeem1-Mar-10 1:57
Ahamed Azeem1-Mar-10 1:57 
AnswerRe: FindResource method in WPF Pin
fjparisIII1-Mar-10 7:30
fjparisIII1-Mar-10 7:30 
Questionanimation Pin
Ahamed Azeem28-Feb-10 19:50
Ahamed Azeem28-Feb-10 19:50 
AnswerRe: animation Pin
GomathiR28-Feb-10 21:52
GomathiR28-Feb-10 21:52 
GeneralRe: animation Pin
Ahamed Azeem1-Mar-10 1:23
Ahamed Azeem1-Mar-10 1:23 
GeneralRe: animation Pin
Ahamed Azeem1-Mar-10 1:26
Ahamed Azeem1-Mar-10 1:26 
AnswerRe: animation Pin
Pete O'Hanlon28-Feb-10 22:51
mvePete O'Hanlon28-Feb-10 22:51 
GeneralRe: animation Pin
Ahamed Azeem1-Mar-10 1:24
Ahamed Azeem1-Mar-10 1:24 
GeneralRe: animation Pin
Pete O'Hanlon1-Mar-10 1:48
mvePete O'Hanlon1-Mar-10 1:48 
QuestionIs it good idea to use SL for message board Pin
EugeneAA27-Feb-10 18:45
EugeneAA27-Feb-10 18:45 
AnswerRe: Is it good idea to use SL for message board Pin
Abhinav S28-Feb-10 0:50
Abhinav S28-Feb-10 0:50 
AnswerRe: Is it good idea to use SL for message board Pin
GomathiR28-Feb-10 21:30
GomathiR28-Feb-10 21:30 
QuestionHow to change WPF Image on run time ? Pin
Yanshof27-Feb-10 9:50
Yanshof27-Feb-10 9:50 
AnswerRe: How to change WPF Image on run time ? Pin
Pete O'Hanlon27-Feb-10 10:07
mvePete O'Hanlon27-Feb-10 10:07 
If you don't want to go down the MVVM route, there's no reason you can't name your image control and update the image directly in your load image handler. Here's an example of how to actually load the image (in C#):
public ImageSource LoadImage(string imageSource)
{
  src.BeginInit();
  src.UriSource = new Uri(imageSource, UriKind.RelativeOrAbsolute);
  src.CacheOption = BitmapCacheOption.OnLoad;
  src.EndInit();
  return src;
}

"WPF has many lovers. It's a veritable porn star!" - Josh Smith

As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.


My blog | My articles | MoXAML PowerToys | Onyx



QuestionBest container or control for a Card object for a card game in WPF Pin
czuhars5627-Feb-10 9:47
czuhars5627-Feb-10 9:47 
QuestionSilverlight for Windows Application Forms...? VB.Net 2008 Pin
Paramu197326-Feb-10 19:13
Paramu197326-Feb-10 19:13 
AnswerRe: Silverlight for Windows Application Forms...? VB.Net 2008 Pin
Not Active27-Feb-10 2:26
mentorNot Active27-Feb-10 2:26 
QuestionIs it Possible in XAML [modified] Pin
Joe Rozario26-Feb-10 0:02
Joe Rozario26-Feb-10 0:02 
AnswerRe: Is it Possible in XAML Pin
Pete O'Hanlon26-Feb-10 0:10
mvePete O'Hanlon26-Feb-10 0:10 
GeneralRe: Is it Possible in XAML Pin
Joe Rozario26-Feb-10 0:13
Joe Rozario26-Feb-10 0:13 
QuestionHow to specify URI for file protocol properly? Pin
Jun Du25-Feb-10 5:30
Jun Du25-Feb-10 5:30 
AnswerRe: How to specify URI for file protocol properly? Pin
Daniel Vaughan25-Feb-10 7:17
Daniel Vaughan25-Feb-10 7:17 
GeneralRe: How to specify URI for file protocol properly? Pin
Jun Du25-Feb-10 7:43
Jun Du25-Feb-10 7:43 
QuestionCould not download the Silverlight application... Pin
Jun Du25-Feb-10 3:38
Jun Du25-Feb-10 3:38 

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.