// // OnApplyTemplate // /// <summary> /// Called when ApplyTemplate is called. /// </summary> public override void OnApplyTemplate() { PreOnApplyTemplate(); base.OnApplyTemplate(); this.picker = WpfHelp.GetTemplateChild <PickerBase>(this, "PART_Picker"); PostOnApplyTemplate(); }
// // OnApplyTemplate // /// <summary> /// Called when ApplyTemplate is called. /// </summary> public override void OnApplyTemplate() { PreOnApplyTemplate(); base.OnApplyTemplate(); this.viewManager = WpfHelp.GetTemplateChild <ListOrganizer>(this, "PART_ViewManager"); this.viewSaver = WpfHelp.GetTemplateChild <PickerBase>(this, "PART_ViewSaver"); PostOnApplyTemplate(); }
static private void DropDownButtonTemplateProperty_PropertyChanged(DependencyObject o, DependencyPropertyChangedEventArgs e) { PickerBase obj = (PickerBase)o; obj.OnDropDownButtonTemplateChanged(new PropertyChangedEventArgs <ControlTemplate>((ControlTemplate)e.OldValue, (ControlTemplate)e.NewValue)); }
static private void CloseDropDownCommand_CommandExecuted(object sender, ExecutedRoutedEventArgs e) { PickerBase obj = (PickerBase)sender; obj.OnCloseDropDownExecuted(e); }
static private void IsOpenProperty_PropertyChanged(DependencyObject o, DependencyPropertyChangedEventArgs e) { PickerBase obj = (PickerBase)o; obj.OnIsOpenChanged(new PropertyChangedEventArgs <bool>((bool)e.OldValue, (bool)e.NewValue)); }
static private void DropDownStyleProperty_PropertyChanged(DependencyObject o, DependencyPropertyChangedEventArgs e) { PickerBase obj = (PickerBase)o; obj.OnDropDownStyleChanged(new PropertyChangedEventArgs <Style>((Style)e.OldValue, (Style)e.NewValue)); }