ContextQuery combining the results of multiple sub-queries.
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.
|
WPFCustomControls::ContextQueries::MultiContextQuery::MultiContextQuery | ( | ) | [inline] |
Constructor.
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.
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] |
readonly DependencyProperty
WPFCustomControls::ContextQueries::MultiContextQuery::RootProperty
[static] |
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.
readonly DependencyProperty
WPFCustomControls::ContextQueries::MultiContextQuery::ConverterProperty
[static] |
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.
readonly DependencyProperty
WPFCustomControls::ContextQueries::MultiContextQuery::FallbackValueProperty
[static] |
DependencyProperty.Register( "FallbackValue", typeof(bool), typeof(MultiContextQuery), new PropertyMetadata(true, new PropertyChangedCallback(OnFallbackValuePropertyChanged)) )
Value applied when there are no ContextQueries in the Queries list.
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.
DependencyPropertyChangedEventHandler WPFCustomControls::ContextQueries::MultiContextQuery::RootChanged |
Fires when the value of Root changes.
DependencyPropertyChangedEventHandler WPFCustomControls::ContextQueries::MultiContextQuery::FallbackValueChanged |
Fires when the FallbackValue changes.