{"id":100270,"date":"2017-04-22T21:53:44","date_gmt":"2017-04-22T13:53:44","guid":{"rendered":"http:\/\/www.ilzhi.cn\/?p=100270"},"modified":"2017-04-22T22:47:56","modified_gmt":"2017-04-22T14:47:56","slug":"%e5%a6%82%e4%bd%95%e7%bb%99%e7%a8%8b%e5%ba%8f%e6%b7%bb%e5%8a%a0%e8%87%aa%e5%ae%9a%e4%b9%89%e7%9a%ae%e8%82%a4","status":"publish","type":"post","link":"http:\/\/www.ilezhi.cn\/?p=100270","title":{"rendered":"\u5982\u4f55\u7ed9\u7a0b\u5e8f\u6dfb\u52a0\u81ea\u5b9a\u4e49\u76ae\u80a4"},"content":{"rendered":"<p>\u6765\u6e90\uff1a<a href=\"https:\/\/documentation.devexpress.com\/#SkinEditor\/CustomDocument2546\">https:\/\/documentation.devexpress.com\/#SkinEditor\/CustomDocument2546<\/a><br \/>\n1\u3001\u5728VS\u91cc\uff0c\u901a\u8fc7Devexpress&gt;Winform Controls v\u2026&gt;Run Skin Editor\u542f\u52a8\u76ae\u80a4\u7f16\u8f91\u5668<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.ilezhi.cn\/blog\/wp-content\/uploads\/2017\/04\/042217_1353_1.png\" alt=\"\" \/><\/p>\n<p>2\u3001\u65b0\u5efa\u76ae\u80a4\u9879\u76ee<br \/>\n<img decoding=\"async\" src=\"http:\/\/www.ilezhi.cn\/blog\/wp-content\/uploads\/2017\/04\/042217_1353_2.png\" alt=\"\" \/><\/p>\n<p>3\u3001\u9009\u62e9\u57fa\u7840\u76ae\u80a4\uff0c\u8bb0\u4f4f\u65b0\u76ae\u80a4\u540d\u79f0\uff08skin name\uff09<br \/>\n<img decoding=\"async\" src=\"http:\/\/www.ilezhi.cn\/blog\/wp-content\/uploads\/2017\/04\/042217_1353_3.png\" alt=\"\" \/><\/p>\n<p>4\u3001\u9009\u62e9\u8981\u4fee\u6539\u7684\u63a7\u4ef6\uff0c\u53cc\u51fb\u9ec4\u6846\u90e8\u5206\u8fdb\u884c\u56fe\u50cf\u7f16\u8f91\u3002<br \/>\n\u6ce8\uff1a\u8bf7\u5728Tools&gt;Options\u2026\u83dc\u5355\u4e0b\uff0c\u6307\u5b9a\u56fe\u50cf\u7f16\u8f91\u5668\u7a0b\u5e8f<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.ilezhi.cn\/blog\/wp-content\/uploads\/2017\/04\/042217_1353_4.png\" alt=\"\" \/><\/p>\n<p>5\u3001\u56fe\u50cf\u7f16\u8f91\u5b8c\u6210\u540e\uff0c\u5355\u51fb\u3010Load Image\u3011\u7b49\u8fdb\u884c\u56fe\u50cf\u66ff\u6362<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.ilezhi.cn\/blog\/wp-content\/uploads\/2017\/04\/042217_1353_5.png\" alt=\"\" \/><\/p>\n<p>6\u3001\u4fdd\u5b58\u5de5\u7a0b\u540e\uff0c\u901a\u8fc7\u83dc\u5355File&gt;Create Assembly\u751f\u6210dll\u3002\u9ed8\u8ba4\u5728\u6587\u6863\\My DXSkins\u6587\u4ef6\u5939\u4e0b<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.ilezhi.cn\/blog\/wp-content\/uploads\/2017\/04\/042217_1353_6.png\" alt=\"\" \/><\/p>\n<p>7\u3001\u968f\u540e\u5f39\u51fa\u5982\u4e0b\u7a97\u53e3\u3002\u5c06\u8fd9\u4e9b\u5185\u5bb9\u5bf9\u5e94\u5730\u590d\u5236\u5230\u89e3\u51b3\u65b9\u6848\u7684 Program.cs\/Program.vb \u6587\u4ef6\u7684\u65b9\u6cd5\u91cc\u3002<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.ilezhi.cn\/blog\/wp-content\/uploads\/2017\/04\/042217_1353_7.png\" alt=\"\" \/><\/p>\n<p>8\u3001\u6253\u5f00\u3010\u89e3\u51b3\u65b9\u6848\u8d44\u6e90\u7ba1\u7406\u5668\u3011\uff0c\u6dfb\u52a0\u5f15\u7528<br \/>\n\u6ce8\uff1a\u6dfb\u52a0\u5b8c\u6210\u540e\uff0c\u9700\u8981\u4fdd\u5b58\u89e3\u51b3\u65b9\u6848\uff0c\u91cd\u542fVS\u3002<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.ilezhi.cn\/blog\/wp-content\/uploads\/2017\/04\/042217_1353_8.png\" alt=\"\" \/><\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.ilezhi.cn\/blog\/wp-content\/uploads\/2017\/04\/042217_1353_9.png\" alt=\"\" \/><\/p>\n<p>9\u3001\u6253\u5f00\u3010Program.vb\u3011\u6587\u4ef6\uff0c\u6dfb\u52a0\u5982\u4e0b\u5185\u5bb9\u3002<\/p>\n<p><span style=\"color: red;\"><strong>\u6ce8\uff1a\u53c2\u8003\u6b65\u9aa47\u5185\u5bb9<br \/>\n<\/strong><\/span><\/p>\n<pre class=\"lang:vbnet mark:20-24,54-56,65-73 decode:true \" title=\"Program.vb \u6587\u4ef6\u5168\u90e8\u5185\u5bb9\">Imports System\r\nImports System.Configuration\r\nImports System.Windows.Forms\r\nImports DevExpress.Persistent.Base\r\nImports DevExpress.ExpressApp\r\nImports DevExpress.ExpressApp.Security\r\nImports DevExpress.ExpressApp.Win\r\nImports DevExpress.Persistent.BaseImpl\r\nImports \u4e50\u667aERP.Win\r\nImports DevExpress.Skins\r\nImports System.ComponentModel\r\nImports DevExpress.LookAndFeel\r\n\r\nPublic Class Program\r\n\r\n    &lt;STAThread()&gt;\r\n    Public Shared Sub Main(ByVal arguments() As String)\r\n\r\n\r\n        '\u5f00\u59cb\r\n        Dim asm As System.Reflection.Assembly = GetType(DevExpress.UserSkins.ilezhiskin).Assembly\r\n        DevExpress.Skins.SkinManager.Default.RegisterAssembly(asm)\r\n        SkinManager.EnableFormSkins()\r\n        '\u7ed3\u675f\r\n\r\n\r\n#If EASYTEST Then\r\n              DevExpress.ExpressApp.Win.EasyTest.EasyTestRemotingRegistration.Register()\r\n#End If\r\n\r\n        Application.EnableVisualStyles()\r\n        Application.SetCompatibleTextRenderingDefault(False)\r\n        EditModelPermission.AlwaysGranted = System.Diagnostics.Debugger.IsAttached\r\n        If Tracing.GetFileLocationFromSettings() = DevExpress.Persistent.Base.FileLocation.CurrentUserApplicationDataFolder Then\r\n            Tracing.LocalUserAppDataPath = Application.LocalUserAppDataPath\r\n        End If\r\n        Tracing.Initialize()\r\n        Dim _application As \u4e50\u667aERPWindowsFormsApplication = New \u4e50\u667aERPWindowsFormsApplication()\r\n        ' Refer to the https:\/\/documentation.devexpress.com\/eXpressAppFramework\/CustomDocument112680.aspx help article for more details on how to provide a custom splash form.\r\n        '_application.SplashScreen = New DevExpress.ExpressApp.Win.Utils.DXSplashScreen(\"YourSplashImage.png\")\r\n        SecurityAdapterHelper.Enable()\r\n        If (Not ConfigurationManager.ConnectionStrings.Item(\"ConnectionString\") Is Nothing) Then\r\n            _application.ConnectionString = ConfigurationManager.ConnectionStrings.Item(\"ConnectionString\").ConnectionString\r\n        End If\r\n#If EASYTEST Then\r\n        If (Not ConfigurationManager.ConnectionStrings.Item(\"EasyTestConnectionString\") Is Nothing) Then\r\n            _application.ConnectionString = ConfigurationManager.ConnectionStrings.Item(\"EasyTestConnectionString\").ConnectionString\r\n        End If\r\n#End If\r\n        If System.Diagnostics.Debugger.IsAttached Then\r\n            _application.DatabaseUpdateMode = DatabaseUpdateMode.UpdateDatabaseAlways\r\n        End If\r\n        Try\r\n            '\u5f00\u59cb\r\n            UserLookAndFeel.Default.SkinName = \"ilezhi\"\r\n            \u2018\u7ed3\u675f\r\n            _application.Setup()\r\n            _application.Start()\r\n        Catch e As Exception\r\n            _application.HandleException(e)\r\n        End Try\r\n    End Sub\r\nEnd Class\r\n\r\n\u2019\u5f00\u59cb\r\nPublic Class SkinRegistration\r\n    Inherits Component\r\n\r\n    Public Sub New()\r\n        DevExpress.Skins.SkinManager.Default.RegisterAssembly(GetType(DevExpress.UserSkins.ilezhiskin).Assembly)\r\n    End Sub\r\nEnd Class\r\n\u2018\u7ed3\u675f<\/pre>\n<p>&nbsp;<\/p>\n<p>=======================\u00a0\u6709\u7528\u7684\u76ae\u80a4\u6570\u636e=======================<\/p>\n<p>Common &gt; TextBorder\uff0c\u6587\u672c\u8fb9\u6846<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6765\u6e90\uff1ahttps:\/\/documentation.devexpress.com\/#SkinEditor\/Cus &hellip; <a href=\"http:\/\/www.ilezhi.cn\/?p=100270\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">\u5982\u4f55\u7ed9\u7a0b\u5e8f\u6dfb\u52a0\u81ea\u5b9a\u4e49\u76ae\u80a4<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,3],"tags":[111],"class_list":["post-100270","post","type-post","status-publish","format-standard","hentry","category-share","category-program","tag-devexpress"],"_links":{"self":[{"href":"http:\/\/www.ilezhi.cn\/index.php?rest_route=\/wp\/v2\/posts\/100270","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.ilezhi.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.ilezhi.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.ilezhi.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.ilezhi.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=100270"}],"version-history":[{"count":0,"href":"http:\/\/www.ilezhi.cn\/index.php?rest_route=\/wp\/v2\/posts\/100270\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.ilezhi.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=100270"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.ilezhi.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=100270"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.ilezhi.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=100270"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}