Click here to Skip to main content
15,912,932 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: Silverlight and WCF issue Pin
CrazyCoder2623-Apr-10 17:43
CrazyCoder2623-Apr-10 17:43 
QuestionDatagridRow DetailsTemplate Problem Pin
vsaratkar22-Apr-10 10:43
vsaratkar22-Apr-10 10:43 
Questionwindows application user control in wpf Pin
dashingsidds22-Apr-10 1:56
dashingsidds22-Apr-10 1:56 
AnswerRe: windows application user control in wpf Pin
dashingsidds22-Apr-10 19:33
dashingsidds22-Apr-10 19:33 
Questionneed 2 extract links from a html file Pin
shoeb0171721-Apr-10 21:19
shoeb0171721-Apr-10 21:19 
AnswerRe: need 2 extract links from a html file Pin
Pete O'Hanlon22-Apr-10 23:15
mvePete O'Hanlon22-Apr-10 23:15 
QuestionSilverlight and WCF issue Pin
CrazyCoder2621-Apr-10 17:36
CrazyCoder2621-Apr-10 17:36 
AnswerMessage Removed Pin
21-Apr-10 17:58
CrazyCoder2621-Apr-10 17:58 
GeneralRe: Silverlight and WCF issue Pin
Abhinav S21-Apr-10 18:54
Abhinav S21-Apr-10 18:54 
QuestionHow to combine multiple usercontrols into a single dll Pin
Prasoon Chaudhary21-Apr-10 2:28
Prasoon Chaudhary21-Apr-10 2:28 
QuestionSilverlight Database Access [modified] Pin
#realJSOP21-Apr-10 1:45
professional#realJSOP21-Apr-10 1:45 
AnswerRe: Silverlight Database Access Pin
daveyerwin21-Apr-10 15:09
daveyerwin21-Apr-10 15:09 
GeneralRe: Silverlight Database Access Pin
#realJSOP22-Apr-10 0:09
professional#realJSOP22-Apr-10 0:09 
AnswerRe: Silverlight Database Access Pin
Abhinav S21-Apr-10 18:50
Abhinav S21-Apr-10 18:50 
AnswerRe: Silverlight Database Access Pin
Michel Godfroid22-Apr-10 1:59
Michel Godfroid22-Apr-10 1:59 
AnswerRe: Silverlight Database Access Pin
econner1-May-10 17:47
econner1-May-10 17:47 
QuestionCommon Properties get disappeared after converting a WPF control into UserControl Pin
Prasoon Chaudhary21-Apr-10 0:15
Prasoon Chaudhary21-Apr-10 0:15 
AnswerRe: Common Properties get disappeared after converting a WPF control into UserControl Pin
BlitzPackage21-Apr-10 16:20
BlitzPackage21-Apr-10 16:20 
Questionwpf tooltip on datagrid cell. [modified] Pin
Ravi Mori19-Apr-10 23:38
Ravi Mori19-Apr-10 23:38 
QuestionUnable to get proper uri of resource dictionary Pin
dashingsidds19-Apr-10 22:33
dashingsidds19-Apr-10 22:33 
AnswerRe: Unable to get proper uri of resource dictionary Pin
dashingsidds19-Apr-10 23:16
dashingsidds19-Apr-10 23:16 
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 

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.