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

WPF

 
GeneralRe: XAML Diff Source Compare Pin
_Maxxx_30-Oct-12 23:24
professional_Maxxx_30-Oct-12 23:24 
QuestionHow to set the wcf ria service time out. Pin
Saurabh_0829-Oct-12 11:32
Saurabh_0829-Oct-12 11:32 
AnswerRe: How to set the wcf ria service time out. Pin
Keith Barrow29-Oct-12 23:18
professionalKeith Barrow29-Oct-12 23:18 
QuestionDownload Xap file in silverlight4.0 Pin
Saurabh_0829-Oct-12 11:28
Saurabh_0829-Oct-12 11:28 
AnswerRe: Download Xap file in silverlight4.0 Pin
Mycroft Holmes29-Oct-12 12:56
professionalMycroft Holmes29-Oct-12 12:56 
AnswerRe: Download Xap file in silverlight4.0 Pin
Abhinav S30-Oct-12 6:40
Abhinav S30-Oct-12 6:40 
QuestionBinding from a lookup Pin
cjb11029-Oct-12 5:18
cjb11029-Oct-12 5:18 
AnswerRe: Binding from a lookup Pin
Keith Barrow29-Oct-12 6:25
professionalKeith Barrow29-Oct-12 6:25 
cjb110 wrote:
I could *cheat* a put the lookup list in the Model, but that doesn't seem the right approach at all...this is a view only thing.

You've almost provided an answer to your own question: The viewmodel you are binding to can have the value being bound and the lookup list(s) being used. That way, when the bound "master" property changes, the view model handles/cascades the update to the dependant lookup list. Here is some psuedocode to try and help explain what I mean:

C#
public class FooViewModel : INotifyPropertChanged
{
  string _boundProperty;
  public string BoundProperty
  {
    get
    {
      return _boundProperty;
    }
    set
    {
      if(_boundProperty != value)
      {
        _boundProperty = value;
        NotifyPropertyChanged("BoundProperty");
        NotifyPropertyChanged("DependantProperty");
      }
    }

  }

  //Could be observable collection etc.....
  public List<Foo> DependantProperty
  { 
    get
    {
      return MyMasterListOfFoo.Where(x=> x.Bar ==BoundProperty).ToList()
    }
  }

}


BoundProperty is the propert that gets changed to kick off the changes and is bound to some control in your XAML. DependantProperty is bound to the control that will be updated when BoundProperty changes

GeneralRe: Binding from a lookup Pin
cjb11031-Oct-12 1:10
cjb11031-Oct-12 1:10 
QuestionNeed assistance on WPF Pin
Hema Bairavan27-Oct-12 6:56
Hema Bairavan27-Oct-12 6:56 
AnswerRe: Need assistance on WPF Pin
Abhinav S30-Oct-12 6:40
Abhinav S30-Oct-12 6:40 
GeneralRe: Need assistance on WPF Pin
Hema Bairavan4-Nov-12 18:21
Hema Bairavan4-Nov-12 18:21 
GeneralHow to Print & Export Search Results in WPF using MVVM? Pin
Satheeskumar Manickam25-Oct-12 7:18
Satheeskumar Manickam25-Oct-12 7:18 
AnswerRe: How to Print & Export Search Results in WPF using MVVM? Pin
Richard MacCutchan25-Oct-12 22:26
mveRichard MacCutchan25-Oct-12 22:26 
AnswerRe: How to Print & Export Search Results in WPF using MVVM? Pin
Mycroft Holmes26-Oct-12 0:58
professionalMycroft Holmes26-Oct-12 0:58 
QuestionFrom WinForms to WPF and XAML problem with properties (not Dependency)... Pin
User 224816825-Oct-12 1:59
User 224816825-Oct-12 1:59 
AnswerRe: From WinForms to WPF and XAML problem with properties (not Dependency)... Pin
Pete O'Hanlon25-Oct-12 2:11
mvePete O'Hanlon25-Oct-12 2:11 
GeneralRe: From WinForms to WPF and XAML problem with properties (not Dependency)... Pin
User 224816825-Oct-12 2:51
User 224816825-Oct-12 2:51 
GeneralRe: From WinForms to WPF and XAML problem with properties (not Dependency)... Pin
Pete O'Hanlon25-Oct-12 3:01
mvePete O'Hanlon25-Oct-12 3:01 
GeneralRe: From WinForms to WPF and XAML problem with properties (not Dependency)... Pin
User 224816825-Oct-12 3:14
User 224816825-Oct-12 3:14 
GeneralRe: From WinForms to WPF and XAML problem with properties (not Dependency)... Pin
Pete O'Hanlon25-Oct-12 3:32
mvePete O'Hanlon25-Oct-12 3:32 
GeneralRe: From WinForms to WPF and XAML problem with properties (not Dependency)... Pin
User 224816825-Oct-12 3:58
User 224816825-Oct-12 3:58 
GeneralRe: From WinForms to WPF and XAML problem with properties (not Dependency)... Pin
Pete O'Hanlon25-Oct-12 4:33
mvePete O'Hanlon25-Oct-12 4:33 
GeneralRe: From WinForms to WPF and XAML problem with properties (not Dependency)... Pin
User 224816825-Oct-12 22:03
User 224816825-Oct-12 22:03 
GeneralRe: From WinForms to WPF and XAML problem with properties (not Dependency)... Pin
Pete O'Hanlon25-Oct-12 22:09
mvePete O'Hanlon25-Oct-12 22:09 

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.