added more samples when building without XNA installed

This commit is contained in:
Glatzemann 2012-11-24 09:41:27 +00:00 committed by Konstantin Koch
parent dfe2e99724
commit 1570d270d3
3 changed files with 55 additions and 50 deletions

View File

@ -28,53 +28,56 @@
/// </summary> /// </summary>
private void InitializeComponent() private void InitializeComponent()
{ {
this.panel1 = new System.Windows.Forms.Panel(); this.panel1 = new System.Windows.Forms.Panel();
this.button1 = new System.Windows.Forms.Button(); this.button1 = new System.Windows.Forms.Button();
this.label1 = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label();
this.panel1.SuspendLayout(); this.panel1.SuspendLayout();
this.SuspendLayout(); this.SuspendLayout();
// //
// panel1 // panel1
// //
this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.panel1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
this.panel1.Controls.Add(this.button1); | System.Windows.Forms.AnchorStyles.Left)
this.panel1.Location = new System.Drawing.Point(132, 67); | System.Windows.Forms.AnchorStyles.Right)));
this.panel1.Name = "panel1"; this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel1.Size = new System.Drawing.Size(409, 298); this.panel1.Controls.Add(this.button1);
this.panel1.TabIndex = 0; this.panel1.Location = new System.Drawing.Point(132, 67);
// this.panel1.Name = "panel1";
// button1 this.panel1.Size = new System.Drawing.Size(409, 298);
// this.panel1.TabIndex = 0;
this.button1.Location = new System.Drawing.Point(320, 3); //
this.button1.Name = "button1"; // button1
this.button1.Size = new System.Drawing.Size(86, 23); //
this.button1.TabIndex = 0; this.button1.Location = new System.Drawing.Point(320, 3);
this.button1.Text = "button1"; this.button1.Name = "button1";
this.button1.UseVisualStyleBackColor = true; this.button1.Size = new System.Drawing.Size(86, 23);
// this.button1.TabIndex = 0;
// label1 this.button1.Text = "button1";
// this.button1.UseVisualStyleBackColor = true;
this.label1.AutoSize = true; //
this.label1.Location = new System.Drawing.Point(37, 23); // label1
this.label1.Name = "label1"; //
this.label1.Size = new System.Drawing.Size(35, 13); this.label1.AutoSize = true;
this.label1.TabIndex = 1; this.label1.Location = new System.Drawing.Point(37, 23);
this.label1.Text = "label1"; this.label1.Name = "label1";
// this.label1.Size = new System.Drawing.Size(35, 13);
// Form1 this.label1.TabIndex = 1;
// this.label1.Text = "label1";
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); //
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; // Form1
this.ClientSize = new System.Drawing.Size(555, 380); //
this.Controls.Add(this.label1); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.Controls.Add(this.panel1); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; this.ClientSize = new System.Drawing.Size(555, 380);
this.MaximizeBox = false; this.Controls.Add(this.label1);
this.Name = "Form1"; this.Controls.Add(this.panel1);
this.Text = "Form1"; this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.panel1.ResumeLayout(false); this.MaximizeBox = false;
this.ResumeLayout(false); this.Name = "Form1";
this.PerformLayout(); this.Text = "Form1";
this.panel1.ResumeLayout(false);
this.ResumeLayout(false);
this.PerformLayout();
} }

View File

@ -4,9 +4,9 @@
xmlns:winForms="clr-namespace:System.Windows.Forms;assembly=System.Windows.Forms" xmlns:winForms="clr-namespace:System.Windows.Forms;assembly=System.Windows.Forms"
Title="MainWindow" Height="350" Width="525" xmlns:my="clr-namespace:WpfEditor"> Title="MainWindow" Height="350" Width="525" xmlns:my="clr-namespace:WpfEditor">
<Grid> <Grid>
<Label Content="Label" Height="27" HorizontalAlignment="Left" Margin="15,22,0,0" Name="label1" VerticalAlignment="Top" Width="71" /> <WindowsFormsHost Margin="10">
<WindowsFormsHost Margin="116,68,12,12">
<winForms:Panel x:Name="GamePanel" /> <winForms:Panel x:Name="GamePanel" />
</WindowsFormsHost> </WindowsFormsHost>
<Label Content="Label" Height="27" HorizontalAlignment="Left" Margin="15,22,0,0" Name="label1" VerticalAlignment="Top" Width="71" />
</Grid> </Grid>
</Window> </Window>

View File

@ -319,7 +319,9 @@
<fileset id="sample_files" basedir="../Samples/"> <fileset id="sample_files" basedir="../Samples/">
<include name="**/*.csproj" unless="${not xnasdk.installed}" /> <include name="**/*.csproj" unless="${not xnasdk.installed}" />
<include name="**/SimpleNoContent.csproj" /> <include name="**/SimpleNoContent.csproj" />
<include name="**/WindowsFormsEditor.csproj" />
<include name="**/WpfEditor.csproj" />
<exclude name="**/*Kinect*.csproj" /> <exclude name="**/*Kinect*.csproj" />
<exclude name="**/*PSVita*.csproj" /> <exclude name="**/*PSVita*.csproj" />