Click here to Skip to main content
15,888,286 members
Home / Discussions / WPF
   

WPF

 
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 
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
mve#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
mve#realJSOP16-Apr-10 6:10 

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.