DXperience 8.2.2 简繁体汉化,本地化,Skins

 
下载地址:
http://download.csdn.net/source/564144


有问题请跟帖
简体:
在项目中加入附件中的DevExpress.Localization.v8.2.dll引用
winform:
在MDI MainForm 的FormLoad事件中加入以下sources
webform:
Default.aspx的Page_Load事件中加入以下sources
DevExpress.Web.ASPxClasses.Localization.ASPxperienceLocalizer.Active = new DevExpress.LocalizationCHS.DevExpressWebASPxClassesLocalizationCHS();
DevExpress.Web.ASPxEditors.Localization.ASPxEditorsLocalizer.Active = new DevExpress.LocalizationCHS.DevExpressWebASPxEditorsLocalizationCHS();
DevExpress.Web.ASPxGridView.Localization.ASPxGridViewLocalizer.Active = new DevExpress.LocalizationCHS.DevExpressWebASPxGridViewLocalizationCHS();
DevExpress.Web.ASPxScheduler.Localization.ASPxSchedulerLocalizer.Active = new DevExpress.LocalizationCHS.DevExpressWebASPxSchedulerLocalizationCHS();
DevExpress.Web.ASPxSpellChecker.Localization.ASPxSpellCheckerLocalizer.Active = new DevExpress.LocalizationCHS.DevExpressWebASPxSpellCheckerLocalizationCHS();
DevExpress.Web.ASPxTreeList.Localization.ASPxTreeListLocalizer.Active = new DevExpress.LocalizationCHS.DevExpressWebASPxTreeListLocalizationCHS();

DevExpress.XtraBars.Localization.BarLocalizer.Active = new DevExpress.LocalizationCHS.DevExpressXtraBarsLocalizationCHS();
DevExpress.XtraCharts.Localization.ChartLocalizer.Active = new DevExpress.LocalizationCHS.DevExpressXtraChartsLocalizationCHS();
DevExpress.XtraEditors.Controls.Localizer.Active = new DevExpress.LocalizationCHS.DevExpressXtraEditorsLocalizationCHS();
DevExpress.XtraGrid.Localization.GridLocalizer.Active = new DevExpress.LocalizationCHS.DevExpressXtraGridLocalizationCHS();
DevExpress.XtraLayout.Localization.LayoutLocalizer.Active = new DevExpress.LocalizationCHS.DevExpressXtraLayoutLocalizationCHS();
DevExpress.XtraNavBar.NavBarLocalizer.Active = new DevExpress.LocalizationCHS.DevExpressXtraNavBarLocalizationCHS();
DevExpress.XtraPivotGrid.Localization.PivotGridLocalizer.Active = new DevExpress.LocalizationCHS.DevExpressXtraPivotGridLocalizationCHS();
DevExpress.XtraPrinting.Localization.PreviewLocalizer.Active = new DevExpress.LocalizationCHS.DevExpressXtraPrintingLocalizationCHS();
DevExpress.XtraReports.Localization.ReportLocalizer.Active = new DevExpress.LocalizationCHS.DevExpressXtraReportsLocalizationCHS();
DevExpress.XtraRichTextEdit.Localization.XtraRichTextEditLocalizer.Active = new DevExpress.LocalizationCHS.DevExpressXtraRichTextEditLocalizationCHS();
DevExpress.XtraScheduler.Localization.SchedulerLocalizer.Active = new DevExpress.LocalizationCHS.DevExpressXtraSchedulerLocalizationCHS();
DevExpress.XtraScheduler.Localization.SchedulerExtensionsLocalizer.Active = new DevExpress.LocalizationCHS.DevExpressXtraSchedulerExtensionsLocalizationCHS();
DevExpress.XtraSpellChecker.Localization.SpellCheckerLocalizer.Active = new DevExpress.LocalizationCHS.DevExpressXtraSpellCheckerLocalizationCHS();
DevExpress.XtraTreeList.Localization.TreeListLocalizer.Active = new DevExpress.LocalizationCHS.DevExpressXtraTreeListLocalizationCHS();
DevExpress.XtraVerticalGrid.Localization.VGridLocalizer.Active = new DevExpress.LocalizationCHS.DevExpressXtraVerticalGridLocalizationCHS();
DevExpress.XtraWizard.Localization.WizardLocalizer.Active = new DevExpress.LocalizationCHS.DevExpressXtraWizardLocalizationCHS();

注:若在项目中没有用到相关 控件,则不需要创建类的实例。例如:沒有使用到XtraScheduler控件就不需要
DevExpress.XtraScheduler.Localization.SchedulerLocalizer.Active = new DevExpress.LocalizationCHS.DevExpressXtraSchedulerLocalizationCHS();

以下sources为建立界面风格菜单,打开用户设置的界面风格,语言
DevExpress.FOSOYO.LookAndFeelSettings.Load("FOSOYO.ini");
DevExpress.FOSOYO.LanguageSettings.Load("FOSOYO.ini");
//DevMenu
new DevExpress.FOSOYO.DevExpressLookAndFeelMenu(barManager1, barSubItem1, defaultLookAndFeel1);
//DevRibbonMenu
new DevExpress.FOSOYO.DevExpressRibbonMenu(ribbon, ribbonPageGroup1, defaultLookAndFeel1, true);
//VS2002 2003Menu
new DevExpress.FOSOYO.VS2003LookAndFeelMenu(this, defaultLookAndFeel1, "FOSOYO");
//VS2005 2008Menu
new DevExpress.FOSOYO.VS20052008LookAndFeelMenu(this, PaintStyle);           
                        
在FormClosing事件中加入以下Source,保存用户设置的界面风格,语言
DevExpress.FOSOYO.LookAndFeelSettings.Save("FOSOYO.ini");
DevExpress.FOSOYO.LanguageSettings.Save("FOSOYO.ini");
 
 
 
 
 
 
 
 
 
 繁体:
在專案中加入附件中DevExpress.Localization.v8.2.dll參考
winform:
在MDI MainForm 的FormLoad事件中加入以下sources
webform:
Default.aspx的Page_Load事件中加入以下sources
DevExpress.Web.ASPxClasses.Localization.ASPxperienceLocalizer.Active = new DevExpress.LocalizationCHT.DevExpressWebASPxClassesLocalizationCHT();
DevExpress.Web.ASPxEditors.Localization.ASPxEditorsLocalizer.Active = new DevExpress.LocalizationCHT.DevExpressWebASPxEditorsLocalizationCHT();
DevExpress.Web.ASPxGridView.Localization.ASPxGridViewLocalizer.Active = new DevExpress.LocalizationCHT.DevExpressWebASPxGridViewLocalizationCHT();
DevExpress.Web.ASPxScheduler.Localization.ASPxSchedulerLocalizer.Active = new DevExpress.LocalizationCHT.DevExpressWebASPxSchedulerLocalizationCHT();
DevExpress.Web.ASPxSpellChecker.Localization.ASPxSpellCheckerLocalizer.Active = new DevExpress.LocalizationCHT.DevExpressWebASPxSpellCheckerLocalizationCHT();
DevExpress.Web.ASPxTreeList.Localization.ASPxTreeListLocalizer.Active = new DevExpress.LocalizationCHT.DevExpressWebASPxTreeListLocalizationCHT();
           
           
DevExpress.XtraBars.Localization.BarLocalizer.Active = new DevExpress.LocalizationCHT.DevExpressXtraBarsLocalizationCHT();
DevExpress.XtraCharts.Localization.ChartLocalizer.Active = new DevExpress.LocalizationCHT.DevExpressXtraChartsLocalizationCHT();
DevExpress.XtraEditors.Controls.Localizer.Active = new DevExpress.LocalizationCHT.DevExpressXtraEditorsLocalizationCHT();
DevExpress.XtraGrid.Localization.GridLocalizer.Active = new DevExpress.LocalizationCHT.DevExpressXtraGridLocalizationCHT();
DevExpress.XtraLayout.Localization.LayoutLocalizer.Active = new DevExpress.LocalizationCHT.DevExpressXtraLayoutLocalizationCHT();
DevExpress.XtraNavBar.NavBarLocalizer.Active = new DevExpress.LocalizationCHT.DevExpressXtraNavBarLocalizationCHT();
DevExpress.XtraPivotGrid.Localization.PivotGridLocalizer.Active = new DevExpress.LocalizationCHT.DevExpressXtraPivotGridLocalizationCHT();
DevExpress.XtraPrinting.Localization.PreviewLocalizer.Active = new DevExpress.LocalizationCHT.DevExpressXtraPrintingLocalizationCHT();
DevExpress.XtraReports.Localization.ReportLocalizer.Active = new DevExpress.LocalizationCHT.DevExpressXtraReportsLocalizationCHT();
DevExpress.XtraRichTextEdit.Localization.XtraRichTextEditLocalizer.Active = new DevExpress.LocalizationCHT.DevExpressXtraRichTextEditLocalizationCHT();
DevExpress.XtraScheduler.Localization.SchedulerLocalizer.Active = new DevExpress.LocalizationCHT.DevExpressXtraSchedulerLocalizationCHT();
DevExpress.XtraScheduler.Localization.SchedulerExtensionsLocalizer.Active = new DevExpress.LocalizationCHT.DevExpressXtraSchedulerExtensionsLocalizationCHT();
DevExpress.XtraSpellChecker.Localization.SpellCheckerLocalizer.Active = new DevExpress.LocalizationCHT.DevExpressXtraSpellCheckerLocalizationCHT();
DevExpress.XtraTreeList.Localization.TreeListLocalizer.Active = new DevExpress.LocalizationCHT.DevExpressXtraTreeListLocalizationCHT();
DevExpress.XtraVerticalGrid.Localization.VGridLocalizer.Active = new DevExpress.LocalizationCHT.DevExpressXtraVerticalGridLocalizationCHT();
DevExpress.XtraWizard.Localization.WizardLocalizer.Active = new DevExpress.LocalizationCHT.DevExpressXtraWizardLocalizationCHT();
 
注:若在專案中沒有用到相關控件,則不需要創建類的實例。例如:沒有使用到XtraScheduler控件就不需要
DevExpress.XtraScheduler.Localization.SchedulerLocalizer.Active = new DevExpress.LocalizationCHT.DevExpressXtraSchedulerLocalizationCHT();

以下sources為建立界面風格菜單,打開用戶設置的介面風格,語言
DevExpress.FOSOYO.LookAndFeelSettings.Load("FOSOYO.ini");
DevExpress.FOSOYO.LanguageSettings.Load("FOSOYO.ini");
//DevMenu
new DevExpress.FOSOYO.DevExpressLookAndFeelMenu(barManager1, barSubItem1, defaultLookAndFeel1);
//DevRibbonMenu
new DevExpress.FOSOYO.DevExpressRibbonMenu(ribbon, ribbonPageGroup1, defaultLookAndFeel1, true);
//VS2002 2003Menu
new DevExpress.FOSOYO.VS2003LookAndFeelMenu(this, defaultLookAndFeel1, "FOSOYO");
//VS2005 2008Menu
new DevExpress.FOSOYO.VS20052008LookAndFeelMenu(this, PaintStyle);          
                       
在FormClosing事件中加入以下Source,保存用戶設置的介面風格,語言
DevExpress.FOSOYO.LookAndFeelSettings.Save("FOSOYO.ini");
DevExpress.FOSOYO.LanguageSettings.Save("FOSOYO.ini");
 

你可能感兴趣的:(.NET)