// (c) Copyright Microsoft Corporation.
// This source is subject to the Microsoft Public License (Ms-PL).
// Please see http://go.microsoft.com/fwlink/?LinkID=131993] for details.
// All other rights reserved.
using System;
using System.Windows;
namespace System.Windows.Controls
{
///
/// Provides data for the
///
/// event.
///
/// Stable
public class PopulatingEventArgs : RoutedEventArgs
{
///
/// Gets the text that is used to determine which items to display in
/// the
/// control.
///
/// The text that is used to determine which items to display in
/// the .
public string Parameter { get; private set; }
///
/// Gets or sets a value indicating whether the
///
/// event should be canceled.
///
/// True to cancel the event, otherwise false. The default is
/// false.
public bool Cancel { get; set; }
///
/// Initializes a new instance of the
/// .
///
/// The value of the
///
/// property, which is used to filter items for the
/// control.
public PopulatingEventArgs(string parameter)
{
Parameter = parameter;
}
#if !SILVERLIGHT
///
/// Initializes a new instance of the
/// .
///
/// The value of the
///
/// property, which is used to filter items for the
/// control.
/// The routed event identifier for this instance.
public PopulatingEventArgs(string parameter, RoutedEvent routedEvent)
: base(routedEvent)
{
Parameter = parameter;
}
#endif
}
}