void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.IsZoomEnabled = ((System.Windows.Controls.Primitives.ToggleButton)(target));
                return;

            case 2:
                this.IsPanEnabled = ((System.Windows.Controls.Primitives.ToggleButton)(target));
                return;

            case 3:
                this.StrokeThicknesses = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 4:
                this.UseAntiAliasing = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 5:
                this.PriceChart = ((SciChart.Charting.Visuals.TradeChart.SciStockChart)(target));
                return;

            case 6:
                this.Proxy = ((SciChart.Examples.ExternalDependencies.Helpers.ActualSizePropertyProxy)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemple #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 13 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MainMenu_File_Click);

            #line default
            #line hidden
                return;

            case 2:

            #line 15 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MainMenu_Exit_Click);

            #line default
            #line hidden
                return;

            case 3:
                this.StockChart = ((SciChart.Charting.Visuals.TradeChart.SciStockChart)(target));
                return;

            case 4:
                this.CandleChart = ((SciChart.Charting.Visuals.RenderableSeries.FastCandlestickRenderableSeries)(target));
                return;

            case 5:
                this.StockChart2 = ((SciChart.Charting.Visuals.TradeChart.SciStockChart)(target));
                return;

            case 6:
                this.SarChart = ((SciChart.Charting.Visuals.RenderableSeries.FastLineRenderableSeries)(target));
                return;
            }
            this._contentLoaded = true;
        }