ValidationErrorCollection.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / MS / Internal / Controls / ValidationErrorCollection.cs / 1305600 / ValidationErrorCollection.cs

                            //---------------------------------------------------------------------------- 
//
// 
//    Copyright (C) 2003 by Microsoft Corporation.  All rights reserved.
//  
//
// 
// Description: 
//      ValidationErrorCollection contains the list of ValidationErrors from
//      the various Bindings and MultiBindings on an Element.  ValidationErrorCollection 
//      be set through the Validation.ErrorsProperty.
//
// See specs at http://avalon/connecteddata/Specs/Validation.mht
// 
// History:
//  5/3/2004       mharper: created. 
// 
//---------------------------------------------------------------------------
 

using System;
using System.ComponentModel;
using System.Collections.Generic; 
using System.Collections.ObjectModel;
using System.Windows; 
using System.Windows.Controls; 
using System.Windows.Data;
 

namespace MS.Internal.Controls
{
    ///  
    ///      ValidationErrorCollection contains the list of ValidationErrors from
    ///      the various Bindings and MultiBindings on an Element.  ValidationErrorCollection 
    ///      be set through the Validation.ErrorsProperty. 
    /// 
    internal class ValidationErrorCollection : ObservableCollection 
    {

        /// 
        /// Empty collection that serves as a default value for 
        /// Validation.ErrorsProperty.
        ///  
        public static readonly ReadOnlyObservableCollection Empty = 
                new ReadOnlyObservableCollection(new ValidationErrorCollection());
    } 
}

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
//---------------------------------------------------------------------------- 
//
// 
//    Copyright (C) 2003 by Microsoft Corporation.  All rights reserved.
//  
//
// 
// Description: 
//      ValidationErrorCollection contains the list of ValidationErrors from
//      the various Bindings and MultiBindings on an Element.  ValidationErrorCollection 
//      be set through the Validation.ErrorsProperty.
//
// See specs at http://avalon/connecteddata/Specs/Validation.mht
// 
// History:
//  5/3/2004       mharper: created. 
// 
//---------------------------------------------------------------------------
 

using System;
using System.ComponentModel;
using System.Collections.Generic; 
using System.Collections.ObjectModel;
using System.Windows; 
using System.Windows.Controls; 
using System.Windows.Data;
 

namespace MS.Internal.Controls
{
    ///  
    ///      ValidationErrorCollection contains the list of ValidationErrors from
    ///      the various Bindings and MultiBindings on an Element.  ValidationErrorCollection 
    ///      be set through the Validation.ErrorsProperty. 
    /// 
    internal class ValidationErrorCollection : ObservableCollection 
    {

        /// 
        /// Empty collection that serves as a default value for 
        /// Validation.ErrorsProperty.
        ///  
        public static readonly ReadOnlyObservableCollection Empty = 
                new ReadOnlyObservableCollection(new ValidationErrorCollection());
    } 
}

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
                        

Link Menu

Network programming in C#, Network Programming in VB.NET, Network Programming in .NET
This book is available now!
Buy at Amazon US or
Buy at Amazon UK