Click here to Skip to main content
13,771,662 members

Silverlight / WPF

 
AnswerRe: MEF ImportingConstructor - How do we pass different concrete class if accepting parameter is interface type Pin
Richard Deeming6-Nov-17 4:20
mvpRichard Deeming6-Nov-17 4:20 
QuestionWPF, DevExpress: Stop dxn:NavBarControl recreates it's children Pin
Member 1347601722-Oct-17 22:18
memberMember 1347601722-Oct-17 22:18 
AnswerRe: WPF, DevExpress: Stop dxn:NavBarControl recreates it's children Pin
Gerry Schmitz23-Oct-17 20:13
memberGerry Schmitz23-Oct-17 20:13 
GeneralRe: WPF, DevExpress: Stop dxn:NavBarControl recreates it's children Pin
Antoon Verroken26-Oct-17 2:26
memberAntoon Verroken26-Oct-17 2:26 
GeneralRe: WPF, DevExpress: Stop dxn:NavBarControl recreates it's children Pin
Gerry Schmitz26-Oct-17 5:09
memberGerry Schmitz26-Oct-17 5:09 
GeneralRe: WPF, DevExpress: Stop dxn:NavBarControl recreates it's children Pin
Antoon Verroken26-Oct-17 8:24
memberAntoon Verroken26-Oct-17 8:24 
GeneralRe: WPF, DevExpress: Stop dxn:NavBarControl recreates it's children Pin
Gerry Schmitz26-Oct-17 9:03
memberGerry Schmitz26-Oct-17 9:03 
QuestionHave Model Class Notify ViewModel Pin
Kevin Marois17-Oct-17 8:56
professionalKevin Marois17-Oct-17 8: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 9:51
protectorPete O'Hanlon17-Oct-17 9:51 
GeneralRe: Have Model Class Notify ViewModel Pin
Kevin Marois17-Oct-17 11:17
professionalKevin Marois17-Oct-17 11:17 
GeneralRe: Have Model Class Notify ViewModel Pin
Pete O'Hanlon17-Oct-17 11:44
protectorPete O'Hanlon17-Oct-17 11:44 
QuestionDatabind to a ListView or TreeView with an Observable Collection with several array properties Pin
Member 134501316-Oct-17 8:23
memberMember 134501316-Oct-17 8:23 
AnswerRe: Databind to a ListView or TreeView with an Observable Collection with several array properties Pin
Gerry Schmitz7-Oct-17 8:13
memberGerry Schmitz7-Oct-17 8:13 
AnswerRe: Databind to a ListView or TreeView with an Observable Collection with several array properties Pin
Mycroft Holmes7-Oct-17 16:07
memberMycroft Holmes7-Oct-17 16:07 
QuestionGroup Box Visibility Pin
Mycroft Holmes3-Oct-17 22:50
memberMycroft Holmes3-Oct-17 22:50 
AnswerRe: Group Box Visibility Pin
Gerry Schmitz4-Oct-17 7:29
memberGerry Schmitz4-Oct-17 7:29 
GeneralRe: Group Box Visibility Pin
Mycroft Holmes4-Oct-17 14:18
memberMycroft Holmes4-Oct-17 14:18 
SuggestionRe: Group Box Visibility Pin
Richard Deeming4-Oct-17 10:21
mvpRichard Deeming4-Oct-17 10:21 
GeneralRe: Group Box Visibility Pin
Mycroft Holmes4-Oct-17 22:31
memberMycroft Holmes4-Oct-17 22:31 
QuestionCreate Binding In View Model Code Pin
Kevin Marois21-Sep-17 8:08
professionalKevin Marois21-Sep-17 8:08 
AnswerRe: Create Binding In View Model Code Pin
Richard Deeming21-Sep-17 10:03
mvpRichard Deeming21-Sep-17 10:03 
GeneralRe: Create Binding In View Model Code Pin
Kevin Marois22-Sep-17 5:39
professionalKevin Marois22-Sep-17 5:39 
AnswerRe: Add Path To ItemsControl In Code Behind Pin
Pete O'Hanlon8-Sep-17 10:10
protectorPete O'Hanlon8-Sep-17 10:10 
GeneralRe: Add Path To ItemsControl In Code Behind Pin
Kevin Marois8-Sep-17 10:23
professionalKevin Marois8-Sep-17 10:23 
GeneralRe: Add Path To ItemsControl In Code Behind Pin
Pete O'Hanlon8-Sep-17 22:40
protectorPete O'Hanlon8-Sep-17 22: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.


Advertise | Privacy | Cookies | Terms of Service
Web05 | 2.8.181119.1 | Last Updated 20 Nov 2018
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid