void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.DataPlot = ((Microsoft.Research.DynamicDataDisplay.ChartPlotter)(target)); return; case 2: this.PlotTitle = ((Microsoft.Research.DynamicDataDisplay.Header)(target)); return; case 3: this.PlotYLabel = ((Microsoft.Research.DynamicDataDisplay.VerticalAxisTitle)(target)); return; case 4: this.DataLabel = ((System.Windows.Controls.Label)(target)); return; case 5: this.ValueLabel = ((System.Windows.Controls.Label)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 5 "..\..\..\..\xaml\HeavyMetal\CurveWindow.xaml" ((AIO.xaml.HeavyMetal.CurveWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded); #line default #line hidden return; case 2: this.plotter = ((Microsoft.Research.DynamicDataDisplay.ChartPlotter)(target)); return; case 3: this.dianwei = ((Microsoft.Research.DynamicDataDisplay.Header)(target)); return; case 4: this.dianliu = ((Microsoft.Research.DynamicDataDisplay.VerticalAxisTitle)(target)); return; } this._contentLoaded = true; }
void Page_Loaded(object sender, RoutedEventArgs e) { mainHeader = new Header(); TextBlock anotherHeaderText = new TextBlock(); anotherHeaderText.Text = "Layout Tutorial"; anotherHeaderText.TextAlignment = TextAlignment.Center; anotherHeaderText.FontSize = 22; mainHeader.Content = anotherHeaderText; PlotterMain.Children.Add(mainHeader); additioanlHeader = new Header(); TextBlock headerText = new TextBlock(); headerText.Text = "Additional header"; headerText.FontSize = 20; headerText.FontWeight = FontWeights.Bold; additioanlHeader.Content = headerText; PlotterMain.Children.Add(additioanlHeader); footer = new Footer(); TextBlock footerText = new TextBlock(); footerText.Text = "Small footer"; footerText.FontSize = 8; footerText.FontStyle = FontStyles.Italic; footer.Content = footerText; TextBlock vertTitleTextBlock = new TextBlock(); vertTitleTextBlock.Text = "This is Vertical title"; //Only VerticalAxisTitle should be created this way, to create HorizonatalAxisTitle use its Content property //DO NOT use Content property in VerticalAxisTitle vertTitle = new VerticalAxisTitle(vertTitleTextBlock); PlotterMain.Children.Add(vertTitle); //Use Content property of the HorizontalAxisTitle to set its content horiTitle = new HorizontalAxisTitle(); horiTitle.Content = new TextBlock() { Text="Horizontal axis title set from code",HorizontalAlignment= HorizontalAlignment.Center}; PlotterMain.Children.Add(horiTitle); TextBoxUpperHeaderTitle.Text = anotherHeaderText.Text; TextBoxVerticalTitle.Text = vertTitleTextBlock.Text; }
public MainWindow() { InitializeComponent(); header = new Header(); TextBlock headerText = new TextBlock(); headerText.Text = "Additional header"; headerText.FontSize = 20; headerText.FontWeight = FontWeights.Bold; headerText.Foreground = Brushes.DarkBlue; header.Content = headerText; plotter.Children.Add(header); footer = new Footer(); TextBlock footerText = new TextBlock(); footerText.Text = "Small footer"; footerText.FontSize = 8; footerText.FontStyle = FontStyles.Italic; footerText.Foreground = Brushes.DarkGreen; footer.Content = footerText; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.gridTab1 = ((System.Windows.Controls.Grid)(target)); return; case 2: this.gridonlineGraphic = ((System.Windows.Controls.Grid)(target)); return; case 3: this.menuIOnlineMain = ((System.Windows.Controls.MenuItem)(target)); return; case 4: this.menuIshowOnlineOptions = ((System.Windows.Controls.MenuItem)(target)); #line 66 "..\..\..\..\OnlineModeFolder\OnlineMode.xaml" this.menuIshowOnlineOptions.Click += new System.Windows.RoutedEventHandler(this.showOnlineOptions_Click); #line default #line hidden return; case 5: this.menuIshowGraphicChangeOfParameters = ((System.Windows.Controls.MenuItem)(target)); #line 71 "..\..\..\..\OnlineModeFolder\OnlineMode.xaml" this.menuIshowGraphicChangeOfParameters.Click += new System.Windows.RoutedEventHandler(this.menuIshowGraphicChangeOfParameters_Click); #line default #line hidden return; case 6: this.menuIshowOptionsChangeOfParameters = ((System.Windows.Controls.MenuItem)(target)); #line 75 "..\..\..\..\OnlineModeFolder\OnlineMode.xaml" this.menuIshowOptionsChangeOfParameters.Click += new System.Windows.RoutedEventHandler(this.menuIshowOptionsChangeOfParameters_Click); #line default #line hidden return; case 7: this.menuIshowOptionsManagingOfTTM = ((System.Windows.Controls.MenuItem)(target)); #line 80 "..\..\..\..\OnlineModeFolder\OnlineMode.xaml" this.menuIshowOptionsManagingOfTTM.Click += new System.Windows.RoutedEventHandler(this.menuIshowOptionsManagingOfTTM_Click); #line default #line hidden return; case 8: this.gridForButtons = ((System.Windows.Controls.Grid)(target)); return; case 9: this.btnSampleData = ((System.Windows.Controls.Button)(target)); #line 109 "..\..\..\..\OnlineModeFolder\OnlineMode.xaml" this.btnSampleData.Click += new System.Windows.RoutedEventHandler(this.btnSampleData_Click); #line default #line hidden return; case 10: this.btnStartSample = ((System.Windows.Controls.Button)(target)); #line 127 "..\..\..\..\OnlineModeFolder\OnlineMode.xaml" this.btnStartSample.Click += new System.Windows.RoutedEventHandler(this.btnStartSample_Click); #line default #line hidden return; case 11: this.chbStartSampleShowChangedPar = ((System.Windows.Controls.CheckBox)(target)); return; case 12: this.btnStopSample = ((System.Windows.Controls.Button)(target)); #line 149 "..\..\..\..\OnlineModeFolder\OnlineMode.xaml" this.btnStopSample.Click += new System.Windows.RoutedEventHandler(this.btnStopSample_Click); #line default #line hidden return; case 13: this.btnSetTlb = ((System.Windows.Controls.Button)(target)); #line 164 "..\..\..\..\OnlineModeFolder\OnlineMode.xaml" this.btnSetTlb.Click += new System.Windows.RoutedEventHandler(this.btnSetTlb_Click); #line default #line hidden return; case 14: this.gridLabelForButton_btnSampleData = ((System.Windows.Controls.Grid)(target)); return; case 15: this.tfRemarkOnlineFileHeaderWritten = ((System.Windows.Controls.TextBlock)(target)); return; case 16: this.lblOnlineStatus = ((System.Windows.Controls.Label)(target)); return; case 17: this.plotter = ((Microsoft.Research.DynamicDataDisplay.ChartPlotter)(target)); return; case 18: this._MarkerGraph = ((Microsoft.Research.DynamicDataDisplay.MarkerPointsGraph)(target)); return; case 19: this.Header = ((Microsoft.Research.DynamicDataDisplay.Header)(target)); return; case 20: this.gridLabelsParameters = ((System.Windows.Controls.Grid)(target)); return; case 21: this.lblForceInN = ((System.Windows.Controls.TextBlock)(target)); return; case 22: this.lblMaxForceInKN = ((System.Windows.Controls.TextBlock)(target)); return; case 23: this.lblMaxForceInKN2 = ((System.Windows.Controls.TextBlock)(target)); return; case 24: this.lblPreassureInMPa = ((System.Windows.Controls.TextBlock)(target)); return; case 25: this.lblPreassureInMPa2 = ((System.Windows.Controls.TextBlock)(target)); return; case 26: this.lblElongationInMM = ((System.Windows.Controls.TextBlock)(target)); return; case 27: this.lblElongationInMM2 = ((System.Windows.Controls.TextBlock)(target)); return; case 28: this.lblElongationInProcent = ((System.Windows.Controls.TextBlock)(target)); return; case 29: this.lblElongationInProcent2 = ((System.Windows.Controls.TextBlock)(target)); return; case 30: this.lblDeltaPreassure = ((System.Windows.Controls.TextBlock)(target)); return; case 31: this.lblDeltaPreassure2 = ((System.Windows.Controls.TextBlock)(target)); return; case 32: this.lblMaxDeltaPreassure = ((System.Windows.Controls.TextBlock)(target)); return; case 33: this.lblMaxDeltaPreassure2 = ((System.Windows.Controls.TextBlock)(target)); return; case 34: this.lblDeltaElongation = ((System.Windows.Controls.TextBlock)(target)); return; case 35: this.lblDeltaElongation2 = ((System.Windows.Controls.TextBlock)(target)); return; case 36: this.lblMaxDeltaElongation = ((System.Windows.Controls.TextBlock)(target)); return; case 37: this.lblMaxDeltaElongation2 = ((System.Windows.Controls.TextBlock)(target)); return; case 38: this.gridTextboxParameters = ((System.Windows.Controls.Grid)(target)); return; case 39: this.tfForceInN = ((System.Windows.Controls.TextBox)(target)); return; case 40: this.tfMaxForceInKN = ((System.Windows.Controls.TextBox)(target)); return; case 41: this.tfPreassureInMPa = ((System.Windows.Controls.TextBox)(target)); return; case 42: this.tfElongationInMM = ((System.Windows.Controls.TextBox)(target)); return; case 43: this.tfElongationInProcent = ((System.Windows.Controls.TextBox)(target)); return; case 44: this.tfDeltaPreassure = ((System.Windows.Controls.TextBox)(target)); return; case 45: this.tfMaxDeltaPreassure = ((System.Windows.Controls.TextBox)(target)); return; case 46: this.tfDeltaElongation = ((System.Windows.Controls.TextBox)(target)); return; case 47: this.tfMaxDeltaElongation = ((System.Windows.Controls.TextBox)(target)); return; case 48: this.gridonlineoptions = ((System.Windows.Controls.Grid)(target)); return; case 49: this.btnEnterNewSample = ((System.Windows.Controls.Button)(target)); #line 691 "..\..\..\..\OnlineModeFolder\OnlineMode.xaml" this.btnEnterNewSample.Click += new System.Windows.RoutedEventHandler(this.btnEnterNewSample_Click); #line default #line hidden return; case 50: this.btnSaveSample = ((System.Windows.Controls.Button)(target)); #line 732 "..\..\..\..\OnlineModeFolder\OnlineMode.xaml" this.btnSaveSample.Click += new System.Windows.RoutedEventHandler(this.btnSaveSample_Click); #line default #line hidden return; case 51: this.btnShowOnlineOptions = ((System.Windows.Controls.Button)(target)); #line 761 "..\..\..\..\OnlineModeFolder\OnlineMode.xaml" this.btnShowOnlineOptions.Click += new System.Windows.RoutedEventHandler(this.btnShowOnlineOptions_Click); #line default #line hidden return; case 52: this.gridRemarkOnlineFileHeaderWritten = ((System.Windows.Controls.Grid)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.plotter = ((Microsoft.Research.DynamicDataDisplay.ChartPlotter)(target)); return; case 2: this.dateAxis = ((Microsoft.Research.DynamicDataDisplay.Charts.Axes.HorizontalIntegerAxis)(target)); return; case 3: this.countAxis = ((Microsoft.Research.DynamicDataDisplay.Charts.Axes.VerticalIntegerAxis)(target)); return; case 4: this.graphTitle = ((Microsoft.Research.DynamicDataDisplay.Header)(target)); return; case 5: this.verticalAxisTitle = ((Microsoft.Research.DynamicDataDisplay.VerticalAxisTitle)(target)); return; case 6: this.horizontalAxisTitle = ((Microsoft.Research.DynamicDataDisplay.HorizontalAxisTitle)(target)); return; } this._contentLoaded = true; }
public void SetMainTitle(string title) { Header hdr; if (m_Plotter.Children.OfType<Header>().Count() == 1) { hdr = m_Plotter.Children.OfType<Header>().Single(); m_Plotter.Children.Remove(hdr); } hdr = new Header(); hdr.Content = title; m_Plotter.Children.Add(hdr); }
private void drowChartPlotter(ChartPlotter cp) { this.chartGrid_.Children.Clear(); Header h = new Header(); h.Content = "Payoff"; cp.Children.Add(h); VerticalAxisTitle vat = new VerticalAxisTitle(); vat.Content = "억원"; HorizontalAxisTitle hat = new HorizontalAxisTitle(); hat.Content = "P"; cp.Children.Add(vat); cp.Children.Add(hat); }