Click here to Skip to main content
15,891,136 members
Home / Discussions / WPF
   

WPF

 
QuestionCan attached behaviors have knowledge of ViewModels? Pin
sthotakura21-Jun-13 6:29
sthotakura21-Jun-13 6:29 
AnswerRe: Can attached behaviors have knowledge of ViewModels? Pin
Abhinav S22-Jun-13 18:32
Abhinav S22-Jun-13 18:32 
GeneralRe: Can attached behaviors have knowledge of ViewModels? Pin
sthotakura25-Jun-13 3:47
sthotakura25-Jun-13 3:47 
QuestionButton disables when bind command Pin
maxRazar20-Jun-13 18:27
maxRazar20-Jun-13 18:27 
AnswerRe: Button disables when bind command Pin
Pete O'Hanlon20-Jun-13 20:21
mvePete O'Hanlon20-Jun-13 20:21 
QuestionError in Wpf Pin
Nick_Frenk16-Jun-13 21:57
Nick_Frenk16-Jun-13 21:57 
AnswerRe: Error in Wpf Pin
Pete O'Hanlon16-Jun-13 23:20
mvePete O'Hanlon16-Jun-13 23:20 
GeneralRe: Error in Wpf Pin
Nick_Frenk17-Jun-13 0:03
Nick_Frenk17-Jun-13 0:03 
hi, I put a break-point and I noticed that IF is the cycle that makes me run any code inifinite times, but only the first line in the IF.

C#
public void setImage(Image images,string url)
        {
            
            if (images.Dispatcher.CheckAccess())
            {
                MessageBox.Show("ciao");
                Del ert = new Del(setImage);
                
                images.Dispatcher.Invoke(ert, new object[] { images, url });
                BitmapImage img = new BitmapImage();
                img.BeginInit();
                img.UriSource = new Uri(url);
                img.EndInit(); // Getting exception here 
                images.Source = img;
            }
            else
            {
                images.Dispatcher.BeginInvoke(new Del(setImage), DispatcherPriority.Normal,
                                                     new object[] { images, url });
                //images.Dispatcher.Invoke(new Action(Esc));
            }
        }
 

        public void StreamImg()
        {
            while (true)
            {
                var date = DateTime.Today.Hour;
                setImage(image1, @"http://ipaddress/jpg/image.jpg" + "?" + date);
                Thread.Sleep(1000);
             }
        }

GeneralRe: Error in Wpf Pin
Richard MacCutchan17-Jun-13 0:25
mveRichard MacCutchan17-Jun-13 0:25 
GeneralRe: Error in Wpf Pin
Nick_Frenk17-Jun-13 0:38
Nick_Frenk17-Jun-13 0:38 
GeneralRe: Error in Wpf Pin
Richard MacCutchan17-Jun-13 0:57
mveRichard MacCutchan17-Jun-13 0:57 
QuestionMove datatable/set between multiple wpf windows Pin
Member 989260614-Jun-13 4:57
Member 989260614-Jun-13 4:57 
AnswerRe: Move datatable/set between multiple wpf windows Pin
Mycroft Holmes18-Jun-13 23:21
professionalMycroft Holmes18-Jun-13 23:21 
GeneralRe: Move datatable/set between multiple wpf windows Pin
Member 989260619-Jun-13 9:51
Member 989260619-Jun-13 9:51 
QuestionReorder the columns in a data grid Pin
columbos1492713-Jun-13 4:26
columbos1492713-Jun-13 4:26 
AnswerRe: Reorder the columns in a data grid Pin
Mycroft Holmes18-Jun-13 23:13
professionalMycroft Holmes18-Jun-13 23:13 
QuestionSilverlight Charts Pin
swatibahl0412-Jun-13 19:56
swatibahl0412-Jun-13 19:56 
AnswerRe: Silverlight Charts Pin
Abhinav S12-Jun-13 20:49
Abhinav S12-Jun-13 20:49 
GeneralRe: Silverlight Charts Pin
swatibahl0412-Jun-13 20:55
swatibahl0412-Jun-13 20:55 
AnswerRe: Silverlight Charts Pin
Abhinav S12-Jun-13 21:03
Abhinav S12-Jun-13 21:03 
GeneralRe: Silverlight Charts Pin
swatibahl0412-Jun-13 21:38
swatibahl0412-Jun-13 21:38 
GeneralRe: Silverlight Charts Pin
Abhinav S13-Jun-13 1:10
Abhinav S13-Jun-13 1:10 
GeneralRe: Silverlight Charts Pin
swatibahl0413-Jun-13 1:22
swatibahl0413-Jun-13 1:22 
Questionchange color of Datagrid text Pin
picasso210-Jun-13 18:12
picasso210-Jun-13 18:12 
AnswerRe: change color of Datagrid text Pin
AbhijeetB12-Jun-13 1:18
AbhijeetB12-Jun-13 1:18 

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.