* UITitlePage:增加ShowTitle可控制是否显示标题
This commit is contained in:
parent
aeb553275a
commit
d05ac8852c
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -120,9 +120,6 @@
|
||||
<metadata name="uiToolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
<metadata name="uiToolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>52</value>
|
||||
</metadata>
|
||||
|
13
SunnyUI/Pages/UITitlePage.Designer.cs
generated
13
SunnyUI/Pages/UITitlePage.Designer.cs
generated
@ -35,13 +35,14 @@
|
||||
// PageTitle
|
||||
//
|
||||
this.PageTitle.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.PageTitle.Font = new System.Drawing.Font("微软雅黑", 12F);
|
||||
this.PageTitle.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
|
||||
this.PageTitle.Location = new System.Drawing.Point(0, 0);
|
||||
this.PageTitle.MinimumSize = new System.Drawing.Size(1, 1);
|
||||
this.PageTitle.Name = "PageTitle";
|
||||
this.PageTitle.Padding = new System.Windows.Forms.Padding(6, 0, 0, 0);
|
||||
this.PageTitle.RadiusSides = Sunny.UI.UICornerRadiusSides.None;
|
||||
this.PageTitle.RectSides = System.Windows.Forms.ToolStripStatusLabelBorderSides.None;
|
||||
this.PageTitle.Size = new System.Drawing.Size(800, 35);
|
||||
this.PageTitle.Size = new System.Drawing.Size(993, 35);
|
||||
this.PageTitle.Symbol = 0;
|
||||
this.PageTitle.SymbolSize = 24;
|
||||
this.PageTitle.TabIndex = 0;
|
||||
@ -51,24 +52,26 @@
|
||||
// PagePanel
|
||||
//
|
||||
this.PagePanel.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.PagePanel.Font = new System.Drawing.Font("微软雅黑", 12F);
|
||||
this.PagePanel.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
|
||||
this.PagePanel.Location = new System.Drawing.Point(0, 35);
|
||||
this.PagePanel.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
||||
this.PagePanel.MinimumSize = new System.Drawing.Size(1, 1);
|
||||
this.PagePanel.Name = "PagePanel";
|
||||
this.PagePanel.RadiusSides = Sunny.UI.UICornerRadiusSides.None;
|
||||
this.PagePanel.RectSides = System.Windows.Forms.ToolStripStatusLabelBorderSides.None;
|
||||
this.PagePanel.Size = new System.Drawing.Size(800, 415);
|
||||
this.PagePanel.Size = new System.Drawing.Size(993, 239);
|
||||
this.PagePanel.TabIndex = 1;
|
||||
this.PagePanel.Text = null;
|
||||
//
|
||||
// UITitlePage
|
||||
//
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
||||
this.ClientSize = new System.Drawing.Size(800, 450);
|
||||
this.ClientSize = new System.Drawing.Size(993, 274);
|
||||
this.Controls.Add(this.PagePanel);
|
||||
this.Controls.Add(this.PageTitle);
|
||||
this.Name = "UITitlePage";
|
||||
this.Text = "UITitlePage";
|
||||
this.Shown += new System.EventHandler(this.UITitlePage_Shown);
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
@ -48,6 +48,16 @@ namespace Sunny.UI
|
||||
}
|
||||
}
|
||||
|
||||
private bool showTitle = true;
|
||||
|
||||
[Description("显示标题"), Category("SunnyUI")]
|
||||
[DefaultValue(true)]
|
||||
public bool ShowTitle
|
||||
{
|
||||
get => showTitle;
|
||||
set => showTitle = value;
|
||||
}
|
||||
|
||||
protected override void SymbolChange()
|
||||
{
|
||||
base.SymbolChange();
|
||||
@ -159,5 +169,13 @@ namespace Sunny.UI
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void UITitlePage_Shown(object sender, System.EventArgs e)
|
||||
{
|
||||
if (!IsDesignMode)
|
||||
{
|
||||
PageTitle.Visible = showTitle;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -1,64 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<root>
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
|
Loading…
x
Reference in New Issue
Block a user