protected override DependencyObject CloneAxis(DependencyObject obj) { var dateTimeCategoryAxis = new DateTimeCategoryAxis(); dateTimeCategoryAxis.Interval = this.Interval; dateTimeCategoryAxis.IntervalType = this.IntervalType; obj = dateTimeCategoryAxis; return(base.CloneAxis(obj)); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.symbolBox = ((Telerik.Windows.Controls.RadAutoCompleteBox)(target)); return; case 2: this.dpStart = ((System.Windows.Controls.DatePicker)(target)); #line 22 "..\..\MainWindow.xaml" this.dpStart.SelectedDateChanged += new System.EventHandler <System.Windows.Controls.SelectionChangedEventArgs>(this.dpStart_SelectedDateChanged); #line default #line hidden return; case 3: this.dpExpiration = ((System.Windows.Controls.DatePicker)(target)); #line 32 "..\..\MainWindow.xaml" this.dpExpiration.SelectedDateChanged += new System.EventHandler <System.Windows.Controls.SelectionChangedEventArgs>(this.dpExpiration_SelectedDateChanged); #line default #line hidden return; case 4: this.mainChart = ((Syncfusion.UI.Xaml.Charts.SfChart)(target)); return; case 5: this.primaryMain = ((Syncfusion.UI.Xaml.Charts.DateTimeCategoryAxis)(target)); return; case 6: this.secondaryMain = ((Syncfusion.UI.Xaml.Charts.NumericalAxis)(target)); return; case 7: this.navigator = ((Syncfusion.UI.Xaml.Charts.SfDateTimeRangeNavigator)(target)); return; case 8: this.navigatorChart = ((Syncfusion.UI.Xaml.Charts.SfLineSparkline)(target)); return; case 9: this.lblInfo = ((System.Windows.Controls.TextBlock)(target)); return; case 10: this.btnQuery = ((System.Windows.Controls.Button)(target)); #line 78 "..\..\MainWindow.xaml" this.btnQuery.Click += new System.Windows.RoutedEventHandler(this.btnQuery_Click); #line default #line hidden return; case 11: this.btnQueryPercent = ((System.Windows.Controls.Button)(target)); #line 79 "..\..\MainWindow.xaml" this.btnQueryPercent.Click += new System.Windows.RoutedEventHandler(this.btnQueryPrice_Click); #line default #line hidden return; } this._contentLoaded = true; }