WPFCustomControls::ContextQueries::MultiContextQuery Class Reference


Detailed Description

ContextQuery combining the results of multiple sub-queries.

Inheritance diagram for WPFCustomControls::ContextQueries::MultiContextQuery:
Inheritance graph
[legend]

List of all members.

Public Member Functions

  MultiContextQuery ()
  Constructor.
override void  CopyFrom (Object source)
  Copy the given object's current property values into this instance.
override void  RefreshValue ()
  Overridden to call RefreshValue on all child queries.

Static Public Attributes

static readonly DependencyProperty  RootProperty
  Indicates that this MultiContextQuery is the root of its query tree.
static readonly DependencyProperty  ConverterProperty
  Converter used to combine the child query results into this query's result.
static readonly DependencyProperty  FallbackValueProperty
  Value applied when there are no ContextQueries in the Queries list.

Protected Member Functions

virtual void  OnFallbackValueChanged (DependencyPropertyChangedEventArgs e)

Properties

ObservableCollection
< ContextQuery
Queries [get, set]
  Set of queries whose results are combined to produce this query's result.
bool  Root [get, set]
  Indicates that this MultiContextQuery is the root of its query tree.
IMultiValueConverter  Converter [get, set]
  Converter used to combine the child query results into this query's result.
bool  FallbackValue [get, set]
  Value applied when there are no ContextQueries in the Queries list.

Events

DependencyPropertyChangedEventHandler  RootChanged
  Fires when the value of Root changes.
DependencyPropertyChangedEventHandler  FallbackValueChanged
  Fires when the FallbackValue changes.

Constructor & Destructor Documentation

WPFCustomControls::ContextQueries::MultiContextQuery::MultiContextQuery ( ) [inline]

Constructor.


Member Function Documentation

override void WPFCustomControls::ContextQueries::MultiContextQuery::CopyFrom ( Object  source ) [inline, virtual]

Copy the given object's current property values into this instance.

Clones every ContextQuery from the source's Queries list.

Parameters:
source Object to copy.

Reimplemented from WPFCustomControls::ContextQueries::ContextQuery.

override void WPFCustomControls::ContextQueries::MultiContextQuery::RefreshValue ( ) [inline, virtual]

Overridden to call RefreshValue on all child queries.

Reimplemented from WPFCustomControls::ContextQueries::ContextQuery.

virtual void WPFCustomControls::ContextQueries::MultiContextQuery::OnFallbackValueChanged ( DependencyPropertyChangedEventArgs  e ) [inline, protected, virtual]

Member Data Documentation

Initial value:
        DependencyProperty.Register(
            "Root",
            typeof(bool),
            typeof(MultiContextQuery),
            new PropertyMetadata(false, OnRootPropertyChanged))

Indicates that this MultiContextQuery is the root of its query tree.

Root affects how the Label is formatted. This property must be set externally, the MultiContextQuery does not determine if it has a parent automatically.

Initial value:
        DependencyProperty.Register(
            "Converter",
            typeof(IMultiValueConverter),
            typeof(MultiContextQuery),
            new PropertyMetadata(new AndMultiValueConverter()))

Converter used to combine the child query results into this query's result.

Defaults to AndMultiValueConverter.

Initial value:
 
        DependencyProperty.Register(
            "FallbackValue",
            typeof(bool),
            typeof(MultiContextQuery),
            new PropertyMetadata(true, new PropertyChangedCallback(OnFallbackValuePropertyChanged)) )

Value applied when there are no ContextQueries in the Queries list.


Property Documentation

ObservableCollection<ContextQuery> WPFCustomControls::ContextQueries::MultiContextQuery::Queries [get, set]

Set of queries whose results are combined to produce this query's result.

bool WPFCustomControls::ContextQueries::MultiContextQuery::Root [get, set]

Indicates that this MultiContextQuery is the root of its query tree.

Root affects how the Label is formatted. This property must be set externally, the MultiContextQuery does not determine if it has a parent automatically.

IMultiValueConverter WPFCustomControls::ContextQueries::MultiContextQuery::Converter [get, set]

Converter used to combine the child query results into this query's result.

Defaults to AndMultiValueConverter.

bool WPFCustomControls::ContextQueries::MultiContextQuery::FallbackValue [get, set]

Value applied when there are no ContextQueries in the Queries list.


Event Documentation

DependencyPropertyChangedEventHandler WPFCustomControls::ContextQueries::MultiContextQuery::RootChanged

Fires when the value of Root changes.

DependencyPropertyChangedEventHandler WPFCustomControls::ContextQueries::MultiContextQuery::FallbackValueChanged

Fires when the FallbackValue changes.


WPFCustomControls::ContextQueries::MultiContextQuery WPFCustomControls::ContextQueries::MultiContextQuery WPFCustomControls::ContextQueries::MultiContextQuery WPFCustomControls::ContextQueries::MultiContextQuery WPFCustomControls::ContextQueries::MultiContextQuery WPFCustomControls::ContextQueries::MultiContextQuery WPFCustomControls::ContextQueries::MultiContextQuery WPFCustomControls::ContextQueries::MultiContextQuery WPFCustomControls::ContextQueries::MultiContextQuery WPFCustomControls::ContextQueries::MultiContextQuery
WPFCustomControls::ContextQueries::MultiContextQuery WPFCustomControls::ContextQueries::MultiContextQuery WPFCustomControls::ContextQueries::MultiContextQuery WPFCustomControls::ContextQueries::MultiContextQuery WPFCustomControls::ContextQueries::MultiContextQuery WPFCustomControls::ContextQueries::MultiContextQuery WPFCustomControls::ContextQueries::MultiContextQuery WPFCustomControls::ContextQueries::MultiContextQuery WPFCustomControls::ContextQueries::MultiContextQuery WPFCustomControls::ContextQueries::MultiContextQuery