void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.ShowHideFilterToggleCommandButton = ((Elysium.Controls.ToggleCommandButton)(target)); return; case 2: this.ElasticPicker = ((Framework.UI.Controls.ElasticPicker)(target)); return; case 3: this.GenderElasticGroup = ((Framework.UI.Controls.ElasticGroup)(target)); return; case 4: this.EyeColourElasticGroup = ((Framework.UI.Controls.ElasticGroup)(target)); return; case 5: this.NationalityElasticGroup = ((Framework.UI.Controls.ElasticGroup)(target)); return; case 6: this.ProfessionElasticGroup = ((Framework.UI.Controls.ElasticGroup)(target)); return; } this._contentLoaded = true; }
/// <summary> /// Called when the reset button visibility is changed. /// </summary> /// <param name="dependencyObject">The dependency object.</param> /// <param name="e">The <see cref="DependencyPropertyChangedEventArgs"/> instance containing the event data.</param> private static void OnIsResetButtonVisibleChanged( DependencyObject dependencyObject, DependencyPropertyChangedEventArgs e) { ElasticPicker elasticPicker = (ElasticPicker)dependencyObject; elasticPicker.ResetAllCommand.RaiseCanExecuteChanged(); }
/// <summary> /// Called when the view is changed. /// </summary> /// <param name="dependencyObject">The dependency object.</param> /// <param name="e">The <see cref="DependencyPropertyChangedEventArgs"/> instance containing the event data.</param> private static void OnViewChanged( DependencyObject dependencyObject, DependencyPropertyChangedEventArgs e) { ElasticPicker elasticPicker = (ElasticPicker)dependencyObject; if (elasticPicker.IsLoaded) { elasticPicker.ResolveGroups(); } }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.ShowHideFilterToggleCommandButton = ((Elysium.Controls.ToggleCommandButton)(target)); return; case 2: this.ElasticPicker = ((Framework.UI.Controls.ElasticPicker)(target)); return; case 3: this.GenderElasticGroup = ((Framework.UI.Controls.ElasticGroup)(target)); return; case 4: this.EyeColourElasticGroup = ((Framework.UI.Controls.ElasticGroup)(target)); return; case 5: this.NationalityElasticGroup = ((Framework.UI.Controls.ElasticGroup)(target)); return; case 6: this.ProfessionElasticGroup = ((Framework.UI.Controls.ElasticGroup)(target)); return; } this._contentLoaded = true; }