本文整理汇总了C#中System.Windows.Forms.Integration.WindowsFormsHost类的典型用法代码示例。如果您正苦于以下问题:C# WindowsFormsHost类的具体用法?C# WindowsFormsHost怎么用?C# WindowsFormsHost使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
WindowsFormsHost类属于System.Windows.Forms.Integration命名空间,在下文中一共展示了WindowsFormsHost类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: switch
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
switch (connectionId)
{
case 1:
this.windowsFormsHost1 = ((System.Windows.Forms.Integration.WindowsFormsHost)(target));
return;
}
this._contentLoaded = true;
}
示例2: switch
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
switch (connectionId)
{
case 1:
this.UserControl = ((ProcessCapture.PDF.PDFViewer)(target));
return;
case 2:
this.host = ((System.Windows.Forms.Integration.WindowsFormsHost)(target));
return;
}
this._contentLoaded = true;
}
示例3: initializeBoard
public void initializeBoard()
{
new WorldMap().Show();
for (int i = 0; i < 12; i++)
{
for (int j = 0; j < 12; j++)
{
host[i, j] = new System.Windows.Forms.Integration.WindowsFormsHost();
play[i, j] = new System.Windows.Forms.Tyle();
play[i, j].Size = new System.Drawing.Size(50, 50);
play[i, j].Row = i;
play[i, j].Col = j;
play[i, j].BorderStyle = BorderStyle.None;
play[i, j].Location = new System.Drawing.Point(j * 50 + 50, i * 50 + 50);
if (table[i, j] == 2)
{
play[i, j].BackColor = System.Drawing.Color.Blue;
}
else
{
play[i, j].BackColor = System.Drawing.Color.Green;
}
play[i, j].BackgroundImageLayout = ImageLayout.Center;
play[i, j].Click += new EventHandler(Tyle_Click);
play[i, j].Timer += new EventHandler(timer_Tick);
host[i, j].Child = play[i, j];
board.Children.Add(host[i, j]);
}
}
}
示例4: switch
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
switch (connectionId)
{
case 1:
this.HousePlacerStackPanel = ((System.Windows.Controls.StackPanel)(target));
return;
case 2:
this.HousePlacerListBox = ((System.Windows.Controls.ListBox)(target));
return;
case 5:
this.StartCaculateButton = ((System.Windows.Controls.Button)(target));
#line 211 "..\..\..\..\UserControl\HousePlacerUserControl.xaml"
this.StartCaculateButton.Click += new System.Windows.RoutedEventHandler(this.StartCaculateButtonClick);
#line default
#line hidden
return;
case 6:
this.HouseToolbarHost = ((System.Windows.Forms.Integration.WindowsFormsHost)(target));
return;
case 7:
this.HouseMapHost = ((System.Windows.Forms.Integration.WindowsFormsHost)(target));
return;
}
this._contentLoaded = true;
}
示例5: switch
//.........这里部分代码省略.........
return;
case 77:
this.stackValidation5 = ((System.Windows.Controls.StackPanel)(target));
return;
case 78:
this.Stack_Adicionales_4 = ((System.Windows.Controls.StackPanel)(target));
return;
case 79:
this.textblock_recuento4 = ((System.Windows.Controls.TextBlock)(target));
return;
case 80:
this.Border_Detail1 = ((System.Windows.Controls.Border)(target));
return;
case 81:
this.Stack_DetailSerial18 = ((System.Windows.Controls.StackPanel)(target));
return;
case 82:
this.Stack_DetailSerial1 = ((System.Windows.Controls.StackPanel)(target));
return;
case 83:
this.Stack_DetailSerial455 = ((System.Windows.Controls.StackPanel)(target));
return;
case 84:
this.Stack_DetailSerial9 = ((System.Windows.Controls.StackPanel)(target));
return;
case 85:
this.Stack_UploadPrealerta9 = ((System.Windows.Controls.StackPanel)(target));
return;
case 86:
this.txt_serial = ((System.Windows.Controls.TextBlock)(target));
return;
case 87:
this.tb_serial = ((System.Windows.Controls.TextBox)(target));
#line 397 "..\..\..\..\IQ\Views\AdministradorView.xaml"
this.tb_serial.KeyDown += new System.Windows.Input.KeyEventHandler(this.tb_Serial_keydown_admin);
#line default
#line hidden
return;
case 88:
this.Stack_UploadPrealerta10 = ((System.Windows.Controls.StackPanel)(target));
return;
case 89:
this.txt_mac = ((System.Windows.Controls.TextBlock)(target));
return;
case 90:
this.tb_mac = ((System.Windows.Controls.TextBox)(target));
#line 402 "..\..\..\..\IQ\Views\AdministradorView.xaml"
this.tb_mac.KeyDown += new System.Windows.Input.KeyEventHandler(this.tb_mac_keydown_admin);
#line default
#line hidden
return;
case 91:
this.Stack_Adicionales_2 = ((System.Windows.Controls.StackPanel)(target));
return;
case 92:
this.lv_equipos = ((System.Windows.Controls.ListView)(target));
#line 406 "..\..\..\..\IQ\Views\AdministradorView.xaml"
this.lv_equipos.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.lv_listEquipos_selectionChanged);
#line default
#line hidden
return;
case 93:
this.GridViewDetails3 = ((System.Windows.Controls.GridView)(target));
return;
case 94:
this.textblock_recuento1 = ((System.Windows.Controls.TextBlock)(target));
return;
case 95:
this.Stack_DetailSerial45 = ((System.Windows.Controls.StackPanel)(target));
return;
case 96:
this.host = ((System.Windows.Forms.Integration.WindowsFormsHost)(target));
return;
case 97:
this.MyWinformChart = ((System.Windows.Forms.DataVisualization.Charting.Chart)(target));
return;
case 98:
this.Stack_DetailSerial55 = ((System.Windows.Controls.StackPanel)(target));
return;
case 99:
this.Stack_Adicionales1 = ((System.Windows.Controls.StackPanel)(target));
return;
case 100:
this.dataGrid1 = ((System.Windows.Controls.DataGrid)(target));
return;
case 101:
this.textblock_recuento2 = ((System.Windows.Controls.TextBlock)(target));
return;
case 102:
this.Stack_Button1 = ((System.Windows.Controls.StackPanel)(target));
return;
}
this._contentLoaded = true;
}
示例6: switch
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
switch (connectionId)
{
case 1:
#line 6 "..\..\..\View\ImportDialog.xaml"
((WordToTFSWordAddIn.Views.ImportDialog)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.DataWindowClosed);
#line default
#line hidden
return;
case 2:
this.windowsFormsHost1 = ((System.Windows.Forms.Integration.WindowsFormsHost)(target));
return;
case 3:
this.importButton = ((System.Windows.Controls.Button)(target));
#line 24 "..\..\..\View\ImportDialog.xaml"
this.importButton.Click += new System.Windows.RoutedEventHandler(this.importButton_Click);
#line default
#line hidden
return;
case 4:
this.cancelButton = ((System.Windows.Controls.Button)(target));
#line 25 "..\..\..\View\ImportDialog.xaml"
this.cancelButton.Click += new System.Windows.RoutedEventHandler(this.cancelButton_Click);
#line default
#line hidden
return;
case 5:
this.contentImportCheckBox = ((System.Windows.Controls.CheckBox)(target));
return;
}
this._contentLoaded = true;
}
示例7: switch
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
switch (connectionId)
{
case 1:
#line 6 "..\..\..\..\窗体\MainWindow.xaml"
((Intersect.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);
#line default
#line hidden
return;
case 2:
this.SelectHousePopup = ((System.Windows.Controls.Primitives.Popup)(target));
return;
case 3:
this.ProgramListTitle = ((System.Windows.Controls.TextBlock)(target));
return;
case 4:
this.CreateProgramButton = ((System.Windows.Controls.Button)(target));
#line 152 "..\..\..\..\窗体\MainWindow.xaml"
this.CreateProgramButton.Click += new System.Windows.RoutedEventHandler(this.CreateProgramButtonClick);
#line default
#line hidden
return;
case 5:
this.ProgramList = ((System.Windows.Controls.ListBox)(target));
return;
case 8:
this.toolbarHost = ((System.Windows.Forms.Integration.WindowsFormsHost)(target));
return;
case 9:
this.mapHost = ((System.Windows.Forms.Integration.WindowsFormsHost)(target));
return;
case 10:
this.TotalHouseInfo = ((System.Windows.Controls.TextBlock)(target));
return;
}
this._contentLoaded = true;
}
示例8: switch
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
switch (connectionId)
{
case 1:
#line 5 "..\..\..\LichSuBanHang\WindowLichSuBanHang.xaml"
((Report.LichSuBanHang.WindowLichSuBanHang)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);
#line default
#line hidden
return;
case 2:
this.ReportData = ((System.Windows.Forms.Integration.WindowsFormsHost)(target));
return;
case 3:
this._reportViewer = ((Microsoft.Reporting.WinForms.ReportViewer)(target));
return;
case 4:
this.uCTileReport = ((Report.UCTileReport)(target));
return;
}
this._contentLoaded = true;
}
示例9: switch
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
switch (connectionId)
{
case 1:
#line 7 "..\..\..\MainWindow.xaml"
((EzMon_V0._01.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);
#line default
#line hidden
#line 7 "..\..\..\MainWindow.xaml"
((EzMon_V0._01.MainWindow)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.Window_Closing);
#line default
#line hidden
return;
case 2:
this.ChartGrid = ((System.Windows.Controls.Grid)(target));
return;
case 3:
this.GraphicalDisplayGrid = ((System.Windows.Controls.Grid)(target));
return;
case 4:
this.sliderGrid = ((System.Windows.Controls.Grid)(target));
return;
case 5:
this.youPointer = ((System.Windows.Controls.Image)(target));
return;
case 6:
this.TBHRDisplay_secondary = ((System.Windows.Controls.TextBlock)(target));
return;
case 7:
this.tbHRStatus = ((System.Windows.Controls.TextBlock)(target));
return;
case 8:
this.ChartHost = ((System.Windows.Forms.Integration.WindowsFormsHost)(target));
return;
case 9:
this.leftColumn = ((System.Windows.Controls.Grid)(target));
return;
case 10:
this.HRGrid = ((System.Windows.Controls.Grid)(target));
return;
case 11:
this.tbHeartRate = ((System.Windows.Controls.TextBlock)(target));
return;
case 12:
this.label1 = ((System.Windows.Controls.Label)(target));
return;
case 13:
this.tempGrid = ((System.Windows.Controls.Grid)(target));
return;
case 14:
this.tbTemperature = ((System.Windows.Controls.TextBlock)(target));
return;
case 15:
this.AccGrid = ((System.Windows.Controls.Grid)(target));
return;
case 16:
this.arcActivity = ((Microsoft.Expression.Shapes.Arc)(target));
return;
case 17:
this.txtActivityIndex = ((System.Windows.Controls.TextBlock)(target));
return;
case 18:
this.txtActivityStatus = ((System.Windows.Controls.TextBlock)(target));
return;
case 19:
this.Grid2 = ((System.Windows.Controls.Grid)(target));
return;
case 20:
this.xVal = ((System.Windows.Controls.TextBlock)(target));
return;
case 21:
this.yVal = ((System.Windows.Controls.TextBlock)(target));
return;
case 22:
this.zVal = ((System.Windows.Controls.TextBlock)(target));
return;
case 23:
this.fallGrid = ((System.Windows.Controls.Grid)(target));
return;
case 24:
this.debugText = ((System.Windows.Controls.TextBlock)(target));
return;
case 25:
this.top = ((System.Windows.Controls.Grid)(target));
return;
case 26:
this.ConnectDisconnectButton = ((System.Windows.Controls.Button)(target));
#line 186 "..\..\..\MainWindow.xaml"
this.ConnectDisconnectButton.Click += new System.Windows.RoutedEventHandler(this.ConnectDisconnectButton_Click);
#line default
#line hidden
return;
case 27:
this.grid2 = ((System.Windows.Controls.Grid)(target));
//.........这里部分代码省略.........
示例10: switch
//.........这里部分代码省略.........
this.checkBox4 = ((System.Windows.Controls.CheckBox)(target));
return;
case 48:
this.checkBox5 = ((System.Windows.Controls.CheckBox)(target));
return;
case 49:
this.checkBox6 = ((System.Windows.Controls.CheckBox)(target));
return;
case 50:
this.checkBox7 = ((System.Windows.Controls.CheckBox)(target));
return;
case 51:
this.checkBox8 = ((System.Windows.Controls.CheckBox)(target));
return;
case 52:
this.checkBox9 = ((System.Windows.Controls.CheckBox)(target));
return;
case 53:
this.checkBox10 = ((System.Windows.Controls.CheckBox)(target));
return;
case 54:
this.checkBox11 = ((System.Windows.Controls.CheckBox)(target));
return;
case 55:
this.checkBox12 = ((System.Windows.Controls.CheckBox)(target));
return;
case 56:
this.checkBox13 = ((System.Windows.Controls.CheckBox)(target));
return;
case 57:
this.checkBox14 = ((System.Windows.Controls.CheckBox)(target));
return;
case 58:
this.WinFormHost = ((System.Windows.Forms.Integration.WindowsFormsHost)(target));
return;
case 59:
this.gridView = ((System.Windows.Forms.DataGridView)(target));
return;
case 60:
this.Lbl_Explain3 = ((System.Windows.Controls.Label)(target));
return;
case 61:
this.textBox18 = ((System.Windows.Controls.TextBox)(target));
return;
case 62:
this.Lbl_Malek = ((System.Windows.Controls.Label)(target));
return;
case 63:
this.textBox14 = ((System.Windows.Controls.TextBox)(target));
return;
case 64:
this.Lbl_TelHamahangi = ((System.Windows.Controls.Label)(target));
return;
case 65:
this.textBox15 = ((System.Windows.Controls.TextBox)(target));
return;
case 66:
this._4thOrder = ((System.Windows.Controls.Grid)(target));
return;
case 67:
this.Lbl_Price_harmetr_zamin = ((System.Windows.Controls.Label)(target));
return;
case 68:
this.textBox16 = ((System.Windows.Controls.TextBox)(target));
#line 284 "..\..\..\..\Results\HouseS.xaml"
示例11: switch
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
switch (connectionId)
{
case 1:
this.Window = ((UseWindowsFormsHost.Window1)(target));
return;
case 2:
this.chkMakeAppt = ((System.Windows.Controls.CheckBox)(target));
#line 18 "..\..\Window1.xaml"
this.chkMakeAppt.Checked += new System.Windows.RoutedEventHandler(this.chkMakeAppt_Checked);
#line default
#line hidden
#line 18 "..\..\Window1.xaml"
this.chkMakeAppt.Unchecked += new System.Windows.RoutedEventHandler(this.chkMakeAppt_Unchecked);
#line default
#line hidden
return;
case 3:
this.wfhAppt = ((System.Windows.Forms.Integration.WindowsFormsHost)(target));
return;
case 4:
this.dtpAppt = ((System.Windows.Forms.DateTimePicker)(target));
return;
case 5:
this.wfhAppt1 = ((System.Windows.Forms.Integration.WindowsFormsHost)(target));
return;
case 6:
this.cmb = ((System.Windows.Forms.ComboBox)(target));
return;
}
this._contentLoaded = true;
}
示例12: switch
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
switch (connectionId)
{
case 1:
#line 6 "..\..\..\TableauWinformsWindow.xaml"
((Soggiorni.TableauWinformsWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);
#line default
#line hidden
return;
case 2:
this.btnLeft = ((System.Windows.Controls.Button)(target));
#line 14 "..\..\..\TableauWinformsWindow.xaml"
this.btnLeft.Click += new System.Windows.RoutedEventHandler(this.btnLeft_Click);
#line default
#line hidden
return;
case 3:
this.btnRight = ((System.Windows.Controls.Button)(target));
#line 19 "..\..\..\TableauWinformsWindow.xaml"
this.btnRight.Click += new System.Windows.RoutedEventHandler(this.btnRight_Click);
#line default
#line hidden
return;
case 4:
this.txtIntervallo = ((System.Windows.Controls.TextBlock)(target));
return;
case 5:
this.btnPrint = ((System.Windows.Controls.Button)(target));
#line 25 "..\..\..\TableauWinformsWindow.xaml"
this.btnPrint.Click += new System.Windows.RoutedEventHandler(this.btnPrint_Click);
#line default
#line hidden
return;
case 6:
this.windowsFormsHost = ((System.Windows.Forms.Integration.WindowsFormsHost)(target));
return;
}
this._contentLoaded = true;
}
示例13: switch
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
switch (connectionId)
{
case 1:
this.fondo = ((System.Windows.Controls.Grid)(target));
#line 6 "..\..\..\..\VisoresDocumentos\VentanaDocumentos.xaml"
this.fondo.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.fondo_MouseLeftButtonDown);
#line default
#line hidden
return;
case 2:
this.label2 = ((System.Windows.Controls.Label)(target));
return;
case 3:
this.image1 = ((System.Windows.Controls.Image)(target));
return;
case 4:
this.btnCerrar = ((mialejandria.mifaro.Controles.BotonCerrado)(target));
return;
case 5:
this.btnRestaurar = ((mialejandria.mifaro.Controles.BotonRestaurar)(target));
return;
case 6:
this.windowsFormsHost1 = ((System.Windows.Forms.Integration.WindowsFormsHost)(target));
return;
case 7:
this.label1 = ((System.Windows.Controls.Label)(target));
return;
case 8:
this.panelEtiquetas = ((System.Windows.Controls.WrapPanel)(target));
return;
case 9:
this.label3 = ((System.Windows.Controls.Label)(target));
return;
case 10:
this.textBlock1 = ((System.Windows.Controls.TextBlock)(target));
return;
case 11:
this.txtAddLabel = ((System.Windows.Controls.TextBox)(target));
return;
case 12:
this.btnAddEtiqueta = ((System.Windows.Controls.Image)(target));
return;
}
this._contentLoaded = true;
}
示例14: switch
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
switch (connectionId)
{
case 1:
#line 31 "..\..\..\..\Samples\AvalonEdit\Window1.xaml"
((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.openFileClick);
#line default
#line hidden
return;
case 2:
#line 32 "..\..\..\..\Samples\AvalonEdit\Window1.xaml"
((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.saveFileClick);
#line default
#line hidden
return;
case 3:
#line 34 "..\..\..\..\Samples\AvalonEdit\Window1.xaml"
((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.exitClick);
#line default
#line hidden
return;
case 4:
this.highlightingComboBox = ((System.Windows.Controls.ComboBox)(target));
#line 61 "..\..\..\..\Samples\AvalonEdit\Window1.xaml"
this.highlightingComboBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.HighlightingComboBox_SelectionChanged);
#line default
#line hidden
return;
case 5:
this.textEditor = ((ICSharpCode.AvalonEdit.TextEditor)(target));
return;
case 6:
this.propertyGridComboBox = ((System.Windows.Controls.ComboBox)(target));
#line 78 "..\..\..\..\Samples\AvalonEdit\Window1.xaml"
this.propertyGridComboBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.propertyGridComboBoxSelectionChanged);
#line default
#line hidden
return;
case 7:
this.propertyGridHost = ((System.Windows.Forms.Integration.WindowsFormsHost)(target));
return;
case 8:
this.propertyGrid = ((System.Windows.Forms.PropertyGrid)(target));
return;
}
this._contentLoaded = true;
}
示例15: switch
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
switch (connectionId)
{
case 1:
#line 5 "..\..\..\..\Modules\Utilities\SQLDataBaseDocumentationrPage.xaml"
((System.Windows.Controls.Grid)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Grid_Loaded);
#line default
#line hidden
return;
case 2:
this.MainWindowsFormsHost = ((System.Windows.Forms.Integration.WindowsFormsHost)(target));
return;
}
this._contentLoaded = true;
}