Click here to Skip to main content
15,885,176 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: MEF ImportingConstructor - How do we pass different concrete class if accepting parameter is interface type Pin
Richard Deeming6-Nov-17 3:20
mveRichard Deeming6-Nov-17 3:20 
QuestionWPF, DevExpress: Stop dxn:NavBarControl recreates it's children Pin
Member 1347601722-Oct-17 21:18
Member 1347601722-Oct-17 21:18 
AnswerRe: WPF, DevExpress: Stop dxn:NavBarControl recreates it's children Pin
Gerry Schmitz23-Oct-17 19:13
mveGerry Schmitz23-Oct-17 19:13 
GeneralRe: WPF, DevExpress: Stop dxn:NavBarControl recreates it's children Pin
Antoon Verroken26-Oct-17 1:26
Antoon Verroken26-Oct-17 1:26 
GeneralRe: WPF, DevExpress: Stop dxn:NavBarControl recreates it's children Pin
Gerry Schmitz26-Oct-17 4:09
mveGerry Schmitz26-Oct-17 4:09 
GeneralRe: WPF, DevExpress: Stop dxn:NavBarControl recreates it's children Pin
Antoon Verroken26-Oct-17 7:24
Antoon Verroken26-Oct-17 7:24 
GeneralRe: WPF, DevExpress: Stop dxn:NavBarControl recreates it's children Pin
Gerry Schmitz26-Oct-17 8:03
mveGerry Schmitz26-Oct-17 8:03 
QuestionHave Model Class Notify ViewModel Pin
Kevin Marois17-Oct-17 7:56
professionalKevin Marois17-Oct-17 7:56 
On my Main Window is a list of Vehicle Models:
public class MainWindowViewModel : INotifyPropertyChanged
{
    private List _Vehicles;
    public List Vehicles
    {
        get { return _Vehicles; }
        set
        {
            if (_Vehicles != value)
            {
                _Vehicles = value;
                RaisePropertyChanged("Vehicles");
            }
        }
    }

    private bool _IsValid;
    public bool IsValid
    {
        get { return _IsValid; }
        set
        {
            if (_IsValid != value)
            {
                _IsValid = value;
                RaisePropertyChanged("IsValid");
            }
        }
    }
}
Here's the VehicleModel:
public class VehicleModel : ModelBase
{
    private string _VehicleName;
    public string VehicleName
    {
        get { return _VehicleName; }
        set
        {
            if (_VehicleName != value)
            {
                _VehicleName = value;
                RaisePropertyChanged("VehicleName");
            }
        }
    }

    private bool _IsActive;
    public bool IsActive
    {
        get { return _IsActive; }
        set
        {
            if (_IsActive != value)
            {
                _IsActive = value;
                RaisePropertyChanged("IsActive");
            }
        }
    }
}

In the ViewModel, how can I tell when a VehicleModels' IsActive has changed? The IsValid property can only be True when one or more Vehicles is active.
If it's not broken, fix it until it is.
Everything makes sense in someone's mind.
Ya can't fix stupid.

AnswerRe: Have Model Class Notify ViewModel Pin
Pete O'Hanlon17-Oct-17 8:51
mvePete O'Hanlon17-Oct-17 8:51 
GeneralRe: Have Model Class Notify ViewModel Pin
Kevin Marois17-Oct-17 10:17
professionalKevin Marois17-Oct-17 10:17 
GeneralRe: Have Model Class Notify ViewModel Pin
Pete O'Hanlon17-Oct-17 10:44
mvePete O'Hanlon17-Oct-17 10:44 
QuestionDatabind to a ListView or TreeView with an Observable Collection with several array properties Pin
Member 134501316-Oct-17 7:23
Member 134501316-Oct-17 7:23 
AnswerRe: Databind to a ListView or TreeView with an Observable Collection with several array properties Pin
Gerry Schmitz7-Oct-17 7:13
mveGerry Schmitz7-Oct-17 7:13 
AnswerRe: Databind to a ListView or TreeView with an Observable Collection with several array properties Pin
Mycroft Holmes7-Oct-17 15:07
professionalMycroft Holmes7-Oct-17 15:07 
QuestionGroup Box Visibility Pin
Mycroft Holmes3-Oct-17 21:50
professionalMycroft Holmes3-Oct-17 21:50 
AnswerRe: Group Box Visibility Pin
Gerry Schmitz4-Oct-17 6:29
mveGerry Schmitz4-Oct-17 6:29 
GeneralRe: Group Box Visibility Pin
Mycroft Holmes4-Oct-17 13:18
professionalMycroft Holmes4-Oct-17 13:18 
SuggestionRe: Group Box Visibility Pin
Richard Deeming4-Oct-17 9:21
mveRichard Deeming4-Oct-17 9:21 
GeneralRe: Group Box Visibility Pin
Mycroft Holmes4-Oct-17 21:31
professionalMycroft Holmes4-Oct-17 21:31 
QuestionCreate Binding In View Model Code Pin
Kevin Marois21-Sep-17 7:08
professionalKevin Marois21-Sep-17 7:08 
AnswerRe: Create Binding In View Model Code Pin
Richard Deeming21-Sep-17 9:03
mveRichard Deeming21-Sep-17 9:03 
GeneralRe: Create Binding In View Model Code Pin
Kevin Marois22-Sep-17 4:39
professionalKevin Marois22-Sep-17 4:39 
AnswerRe: Add Path To ItemsControl In Code Behind Pin
Pete O'Hanlon8-Sep-17 9:10
mvePete O'Hanlon8-Sep-17 9:10 
GeneralRe: Add Path To ItemsControl In Code Behind Pin
Kevin Marois8-Sep-17 9:23
professionalKevin Marois8-Sep-17 9:23 
GeneralRe: Add Path To ItemsControl In Code Behind Pin
Pete O'Hanlon8-Sep-17 21:40
mvePete O'Hanlon8-Sep-17 21:40 

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.