CA-147612 - EN: background should expand to the right border.

Also fixed appearance to be consistent with other Vertically Tabbed Dialogs

Signed-off-by: Letsibogo Ramadi <letsibogo.ramadi@citrix.com>
This commit is contained in:
Letsibogo Ramadi 2017-03-09 17:38:04 +00:00
parent d85af7f8a5
commit e6b912173d
4 changed files with 28 additions and 153 deletions

View File

@ -124,14 +124,12 @@ namespace XenAdmin.Dialogs.Wlb
//
this.wlbAdvancedSettingsPage.BackColor = System.Drawing.Color.Transparent;
resources.ApplyResources(this.wlbAdvancedSettingsPage, "wlbAdvancedSettingsPage");
this.wlbAdvancedSettingsPage.MinimumSize = new System.Drawing.Size(560, 560);
this.wlbAdvancedSettingsPage.Name = "wlbAdvancedSettingsPage";
//
// WlbConfigurationDialog
//
resources.ApplyResources(this, "$this");
this.Name = "WlbConfigurationDialog";
this.SizeChanged += new System.EventHandler(this.WlbConfigurationDialog_SizeChanged);
this.Controls.SetChildIndex(this.cancelButton, 0);
this.Controls.SetChildIndex(this.okButton, 0);
this.Controls.SetChildIndex(this.splitContainer, 0);

View File

@ -218,16 +218,5 @@ namespace XenAdmin.Dialogs.Wlb
}
}
}
private void WlbConfigurationDialog_SizeChanged(object sender, EventArgs e)
{
// When the size of configuration dialog is changed,
// the SplitContainer panels should expand and contract correspondingly.
// Originally the dialog height is 750, SplitContainer height is 674,
// the difference is 76.
// The SplitContainer height must track the change of the dialog height.
splitContainer.Height = this.Height - 76;
}
}
}

View File

@ -112,23 +112,19 @@
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="ContentPanel.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
<value>Top, Left</value>
</data>
<assembly alias="mscorlib" name="mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="ContentPanel.AutoScroll" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="wlbOptimizationModePage.Dock" type="System.Windows.Forms.DockStyle, System.Windows.Forms">
<value>Fill</value>
</data>
<assembly alias="System.Drawing" name="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="wlbOptimizationModePage.Font" type="System.Drawing.Font, System.Drawing">
<value>Segoe UI, 9pt</value>
</data>
@ -136,8 +132,9 @@
<value>10, 49</value>
</data>
<data name="wlbOptimizationModePage.Size" type="System.Drawing.Size, System.Drawing">
<value>552, 613</value>
<value>556, 599</value>
</data>
<assembly alias="mscorlib" name="mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="wlbOptimizationModePage.TabIndex" type="System.Int32, mscorlib">
<value>1</value>
</data>
@ -163,7 +160,7 @@
<value>10, 49</value>
</data>
<data name="wlbAutomationPage.Size" type="System.Drawing.Size, System.Drawing">
<value>552, 613</value>
<value>556, 599</value>
</data>
<data name="wlbAutomationPage.TabIndex" type="System.Int32, mscorlib">
<value>2</value>
@ -190,7 +187,7 @@
<value>10, 49</value>
</data>
<data name="wlbThresholdsPage.Size" type="System.Drawing.Size, System.Drawing">
<value>552, 613</value>
<value>556, 599</value>
</data>
<data name="wlbThresholdsPage.TabIndex" type="System.Int32, mscorlib">
<value>2</value>
@ -217,7 +214,7 @@
<value>10, 49</value>
</data>
<data name="wlbMetricWeightingPage.Size" type="System.Drawing.Size, System.Drawing">
<value>552, 613</value>
<value>556, 599</value>
</data>
<data name="wlbMetricWeightingPage.TabIndex" type="System.Int32, mscorlib">
<value>0</value>
@ -244,7 +241,7 @@
<value>10, 49</value>
</data>
<data name="wlbHostExclusionPage.Size" type="System.Drawing.Size, System.Drawing">
<value>552, 613</value>
<value>556, 599</value>
</data>
<data name="wlbHostExclusionPage.TabIndex" type="System.Int32, mscorlib">
<value>3</value>
@ -271,7 +268,7 @@
<value>10, 49</value>
</data>
<data name="wlbAdvancedSettingsPage.Size" type="System.Drawing.Size, System.Drawing">
<value>560, 613</value>
<value>560, 599</value>
</data>
<data name="wlbAdvancedSettingsPage.TabIndex" type="System.Int32, mscorlib">
<value>0</value>
@ -298,13 +295,13 @@
<value>10, 49, 10, 10</value>
</data>
<data name="ContentPanel.Size" type="System.Drawing.Size, System.Drawing">
<value>572, 672</value>
<value>576, 658</value>
</data>
<data name="&gt;&gt;ContentPanel.Name" xml:space="preserve">
<value>ContentPanel</value>
</data>
<data name="&gt;&gt;ContentPanel.Type" xml:space="preserve">
<value>System.Windows.Forms.Panel, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
<value>System.Windows.Forms.Panel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;ContentPanel.Parent" xml:space="preserve">
<value>blueBorder</value>
@ -312,11 +309,8 @@
<data name="&gt;&gt;ContentPanel.ZOrder" xml:space="preserve">
<value>1</value>
</data>
<data name="verticalTabs.Location" type="System.Drawing.Point, System.Drawing">
<value>20, 0</value>
</data>
<data name="verticalTabs.Size" type="System.Drawing.Size, System.Drawing">
<value>216, 674</value>
<value>229, 660</value>
</data>
<data name="&gt;&gt;verticalTabs.Name" xml:space="preserve">
<value>verticalTabs</value>
@ -330,62 +324,44 @@
<data name="&gt;&gt;verticalTabs.ZOrder" xml:space="preserve">
<value>0</value>
</data>
<data name="cancelButton.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
<value>Bottom, Right</value>
</data>
<data name="cancelButton.Location" type="System.Drawing.Point, System.Drawing">
<value>738, 682</value>
<value>738, 681</value>
</data>
<data name="&gt;&gt;cancelButton.Name" xml:space="preserve">
<value>cancelButton</value>
</data>
<data name="&gt;&gt;cancelButton.Type" xml:space="preserve">
<value>System.Windows.Forms.Button, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
<value>System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;cancelButton.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;cancelButton.ZOrder" xml:space="preserve">
<value>3</value>
</data>
<data name="okButton.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
<value>Bottom, Right</value>
<value>2</value>
</data>
<data name="okButton.Location" type="System.Drawing.Point, System.Drawing">
<value>647, 682</value>
<value>647, 681</value>
</data>
<data name="&gt;&gt;okButton.Name" xml:space="preserve">
<value>okButton</value>
</data>
<data name="&gt;&gt;okButton.Type" xml:space="preserve">
<value>System.Windows.Forms.Button, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
<value>System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;okButton.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;okButton.ZOrder" xml:space="preserve">
<value>2</value>
</data>
<data name="splitContainer.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
<value>Top, Left</value>
</data>
<data name="splitContainer.Dock" type="System.Windows.Forms.DockStyle, System.Windows.Forms">
<value>Top</value>
</data>
<data name="splitContainer.Location" type="System.Drawing.Point, System.Drawing">
<value>0, 43</value>
<value>1</value>
</data>
<data name="splitContainer.Margin" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>10, 3, 10, 3</value>
</data>
<data name="splitContainer.Panel1.Padding" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>20, 0, 0, 0</value>
</data>
<data name="&gt;&gt;splitContainer.Panel1.Name" xml:space="preserve">
<value>splitContainer.Panel1</value>
</data>
<data name="&gt;&gt;splitContainer.Panel1.Type" xml:space="preserve">
<value>System.Windows.Forms.SplitterPanel, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
<value>System.Windows.Forms.SplitterPanel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;splitContainer.Panel1.Parent" xml:space="preserve">
<value>splitContainer</value>
@ -393,14 +369,11 @@
<data name="&gt;&gt;splitContainer.Panel1.ZOrder" xml:space="preserve">
<value>0</value>
</data>
<data name="splitContainer.Panel2.Padding" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>0, 0, 20, 0</value>
</data>
<data name="&gt;&gt;splitContainer.Panel2.Name" xml:space="preserve">
<value>splitContainer.Panel2</value>
</data>
<data name="&gt;&gt;splitContainer.Panel2.Type" xml:space="preserve">
<value>System.Windows.Forms.SplitterPanel, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
<value>System.Windows.Forms.SplitterPanel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;splitContainer.Panel2.Parent" xml:space="preserve">
<value>splitContainer</value>
@ -412,16 +385,16 @@
<value>400</value>
</data>
<data name="splitContainer.Size" type="System.Drawing.Size, System.Drawing">
<value>834, 674</value>
<value>811, 660</value>
</data>
<data name="splitContainer.SplitterDistance" type="System.Int32, mscorlib">
<value>236</value>
<value>229</value>
</data>
<data name="&gt;&gt;splitContainer.Name" xml:space="preserve">
<value>splitContainer</value>
</data>
<data name="&gt;&gt;splitContainer.Type" xml:space="preserve">
<value>System.Windows.Forms.SplitContainer, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
<value>System.Windows.Forms.SplitContainer, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;splitContainer.Parent" xml:space="preserve">
<value>$this</value>
@ -430,7 +403,7 @@
<value>0</value>
</data>
<data name="blueBorder.Size" type="System.Drawing.Size, System.Drawing">
<value>574, 674</value>
<value>578, 660</value>
</data>
<data name="&gt;&gt;blueBorder.Name" xml:space="preserve">
<value>blueBorder</value>
@ -444,98 +417,14 @@
<data name="&gt;&gt;blueBorder.ZOrder" xml:space="preserve">
<value>0</value>
</data>
<data name="tableLayoutPanel1.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="tableLayoutPanel1.AutoSizeMode" type="System.Windows.Forms.AutoSizeMode, System.Windows.Forms">
<value>GrowAndShrink</value>
</data>
<data name="tableLayoutPanel1.ColumnCount" type="System.Int32, mscorlib">
<value>3</value>
</data>
<data name="deprecationBanner.AutoScroll" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="deprecationBanner.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="deprecationBanner.AutoSizeMode" type="System.Windows.Forms.AutoSizeMode, System.Windows.Forms">
<value>GrowAndShrink</value>
</data>
<data name="deprecationBanner.Dock" type="System.Windows.Forms.DockStyle, System.Windows.Forms">
<value>Fill</value>
</data>
<data name="deprecationBanner.Font" type="System.Drawing.Font, System.Drawing">
<value>Segoe UI, 9pt</value>
</data>
<data name="deprecationBanner.Location" type="System.Drawing.Point, System.Drawing">
<value>131, 8</value>
</data>
<data name="deprecationBanner.Size" type="System.Drawing.Size, System.Drawing">
<value>570, 27</value>
</data>
<data name="deprecationBanner.TabIndex" type="System.Int32, mscorlib">
<value>0</value>
</data>
<data name="deprecationBanner.Visible" type="System.Boolean, mscorlib">
<value>False</value>
</data>
<data name="&gt;&gt;deprecationBanner.Name" xml:space="preserve">
<value>deprecationBanner</value>
</data>
<data name="&gt;&gt;deprecationBanner.Type" xml:space="preserve">
<value>XenAdmin.Controls.DeprecationBanner, XenCenterMain, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null</value>
</data>
<data name="&gt;&gt;deprecationBanner.Parent" xml:space="preserve">
<value>tableLayoutPanel1</value>
</data>
<data name="&gt;&gt;deprecationBanner.ZOrder" xml:space="preserve">
<value>0</value>
</data>
<data name="tableLayoutPanel1.Dock" type="System.Windows.Forms.DockStyle, System.Windows.Forms">
<value>Top</value>
</data>
<data name="tableLayoutPanel1.Font" type="System.Drawing.Font, System.Drawing">
<value>Segoe UI, 9pt</value>
</data>
<data name="tableLayoutPanel1.Location" type="System.Drawing.Point, System.Drawing">
<value>0, 0</value>
</data>
<data name="tableLayoutPanel1.Padding" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>5, 5, 5, 5</value>
</data>
<data name="tableLayoutPanel1.RowCount" type="System.Int32, mscorlib">
<value>1</value>
</data>
<data name="tableLayoutPanel1.Size" type="System.Drawing.Size, System.Drawing">
<value>834, 43</value>
</data>
<data name="tableLayoutPanel1.TabIndex" type="System.Int32, mscorlib">
<value>7</value>
</data>
<data name="&gt;&gt;tableLayoutPanel1.Name" xml:space="preserve">
<value>tableLayoutPanel1</value>
</data>
<data name="&gt;&gt;tableLayoutPanel1.Type" xml:space="preserve">
<value>System.Windows.Forms.TableLayoutPanel, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;tableLayoutPanel1.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;tableLayoutPanel1.ZOrder" xml:space="preserve">
<value>1</value>
</data>
<data name="tableLayoutPanel1.LayoutSettings" type="System.Windows.Forms.TableLayoutSettings, System.Windows.Forms">
<value>&lt;?xml version="1.0" encoding="utf-16"?&gt;&lt;TableLayoutSettings&gt;&lt;Controls&gt;&lt;Control Name="deprecationBanner" Row="0" RowSpan="1" Column="1" ColumnSpan="1" /&gt;&lt;/Controls&gt;&lt;Columns Styles="Percent,15,Percent,70,Percent,15" /&gt;&lt;Rows Styles="Percent,100" /&gt;&lt;/TableLayoutSettings&gt;</value>
</data>
<metadata name="$this.Localizable" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<metadata name="$this.Localizable" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<data name="$this.AutoScaleDimensions" type="System.Drawing.SizeF, System.Drawing">
<value>96, 96</value>
</data>
<data name="$this.ClientSize" type="System.Drawing.Size, System.Drawing">
<value>834, 712</value>
<value>834, 711</value>
</data>
<data name="$this.Font" type="System.Drawing.Font, System.Drawing">
<value>Tahoma, 8pt</value>

View File

@ -460,7 +460,6 @@ namespace XenAdmin.SettingsPanels
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
this.BackColor = System.Drawing.SystemColors.Window;
this.Controls.Add(this.tableLayoutPanel1);
this.MinimumSize = new System.Drawing.Size(560, 560);
this.Name = "WlbAdvancedSettingsPage";
this.tableLayoutPanel1.ResumeLayout(false);
this.tableLayoutPanel1.PerformLayout();