Click here to Skip to main content
15,917,005 members
Home / Discussions / WPF
   

WPF

 
QuestionHTTP POST with C Sharp Silverlight Pin
Brent Dirks19-Apr-10 19:06
Brent Dirks19-Apr-10 19:06 
QuestionPreload ImageSource from URI Pin
ezazazel19-Apr-10 2:38
ezazazel19-Apr-10 2:38 
Hi folks!
Is there a way to do some preloading of images in WPF?
My Image has an URI as source (a URI property implementing INotifyPropertyChanged in the code behind)
When I create the URI (points to a network share) and fire the NotifyPropertyChanged Event, my application freezes for a second or two.
So how can I preload the image so the applicatio won't freeze?

Here's some code:
XAML:
<Image Source={Binding Path=Image_1, NoitifyOnSourceUpdated=True}/>


And the CB:
public DataContextClass : INotifyPropertyChanged
{
private Uri image_1;
public Uri Image_1
{
   get
   {
   }
   set
   {
      image_1 = value;
      PropertyHasChanged("Image_1");
   }
}

void Timer_Elapsed(object sender, EventArgs e)
{
      Image_1 = CreateUri(GetFilePathFromNetworkShare());
}
}


Thanks in advance!
eza
AnswerRe: Preload ImageSource from URI Pin
Pete O'Hanlon19-Apr-10 8:56
mvePete O'Hanlon19-Apr-10 8:56 
GeneralRe: Preload ImageSource from URI Pin
ezazazel20-Apr-10 6:22
ezazazel20-Apr-10 6:22 
GeneralRe: Preload ImageSource from URI Pin
Leung Yat Chun26-Apr-10 10:14
Leung Yat Chun26-Apr-10 10:14 
QuestionShowing an external image in Expression Blend or Visual Studio ? Pin
Mohammad Dayyan18-Apr-10 20:43
Mohammad Dayyan18-Apr-10 20:43 
QuestionLoading an external image to WPF App ? Pin
Mohammad Dayyan18-Apr-10 0:32
Mohammad Dayyan18-Apr-10 0:32 
AnswerRe: Loading an external image to WPF App ? Pin
Roman Lerman21-Apr-10 19:43
Roman Lerman21-Apr-10 19:43 
QuestionMessage Removed Pin
15-Apr-10 23:39
Lana_15-Apr-10 23:39 
AnswerRe: How to make the arrows keys act as another keys? Pin
Abhinav S16-Apr-10 1:34
Abhinav S16-Apr-10 1:34 
QuestionTreeView Data binding Pin
Joe Rozario15-Apr-10 20:45
Joe Rozario15-Apr-10 20:45 
AnswerRe: TreeView Data binding Pin
Pete O'Hanlon15-Apr-10 22:01
mvePete O'Hanlon15-Apr-10 22:01 
GeneralRe: TreeView Data binding Pin
Joe Rozario15-Apr-10 22:26
Joe Rozario15-Apr-10 22:26 
GeneralRe: TreeView Data binding Pin
Pete O'Hanlon16-Apr-10 2:46
mvePete O'Hanlon16-Apr-10 2:46 
GeneralRe: TreeView Data binding Pin
silverlightnewbee4-Jan-11 18:34
silverlightnewbee4-Jan-11 18:34 
AnswerRe: TreeView Data binding Pin
Leung Yat Chun26-Apr-10 10:19
Leung Yat Chun26-Apr-10 10:19 
QuestionUriMapper (and stuff) [SOLVED (sorta)] Pin
#realJSOP15-Apr-10 6:23
professional#realJSOP15-Apr-10 6:23 
AnswerRe: UriMapper (and stuff) Pin
Abhinav S16-Apr-10 1:50
Abhinav S16-Apr-10 1:50 
GeneralRe: UriMapper (and stuff) Pin
#realJSOP16-Apr-10 6:10
professional#realJSOP16-Apr-10 6:10 
GeneralRe: UriMapper (and stuff) [SOLVED (sorta)] Pin
Abhinav S16-Apr-10 20:19
Abhinav S16-Apr-10 20:19 
QuestionEncrypting app.config through code [modified] Pin
dashingsidds15-Apr-10 0:21
dashingsidds15-Apr-10 0:21 
AnswerRe: Encrypting app.config through code Pin
dashingsidds15-Apr-10 0:57
dashingsidds15-Apr-10 0:57 
AnswerRe: Encrypting app.config through code Pin
Not Active15-Apr-10 2:08
mentorNot Active15-Apr-10 2:08 
GeneralRe: Encrypting app.config through code Pin
dashingsidds15-Apr-10 2:59
dashingsidds15-Apr-10 2:59 
GeneralRe: Encrypting app.config through code Pin
Not Active15-Apr-10 3:31
mentorNot Active15-Apr-10 3:31 

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.