本文整理汇总了C#中UI.DefineStyle方法的典型用法代码示例。如果您正苦于以下问题:C# UI.DefineStyle方法的具体用法?C# UI.DefineStyle怎么用?C# UI.DefineStyle使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类UI
的用法示例。
在下文中一共展示了UI.DefineStyle方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: addVersion
private void addVersion(string version, UI.Resources.ResourceManifest manifest)
{
var baseDir = string.Format("angular-{0}/", version);
manifest.DefineScript("AngularJs")
.SetUrl(baseDir + "angular.min.js", baseDir + "angular.js")
.SetVersion(version)
.SetCdn(string.Format("//ajax.googleapis.com/ajax/libs/angularjs/{0}/angular.min.js", version),
string.Format("//ajax.googleapis.com/ajax/libs/angularjs/{0}/angular.js", version),
true);
manifest.DefineStyle("Angular.Csp")
.SetUrl(baseDir + "angular.csp.css")
.SetVersion(version);
manifest.DefineScript("AngularJs.Aria")
.SetUrl(baseDir + "angular-aria.min.js", baseDir + "angular-aria.js")
.SetDependencies("AngularJs")
.SetVersion(version);
manifest.DefineScript("AngularJs.Animate")
.SetUrl(baseDir + "angular-animate.min.js", baseDir + "angular-animate.js")
.SetDependencies("AngularJs")
.SetVersion(version);
manifest.DefineScript("AngularJs.Cookies")
.SetUrl(baseDir + "angular-cookies.min.js", baseDir + "angular-cookies.js")
.SetDependencies("AngularJs")
.SetVersion(version);
manifest.DefineScript("AngularJs.Loader")
.SetUrl(baseDir + "angular-loader.min.js", baseDir + "angular-loader.js")
.SetDependencies("AngularJs")
.SetVersion(version);
manifest.DefineScript("AngularJs.Message.Format")
.SetUrl(baseDir + "angular-message-format.min.js", baseDir + "angular-message-format.js")
.SetDependencies("AngularJs")
.SetVersion(version);
manifest.DefineScript("AngularJs.Messages")
.SetUrl(baseDir + "angular-messages.min.js", baseDir + "angular-messages.js")
.SetDependencies("AngularJs")
.SetVersion(version);
manifest.DefineScript("AngularJs.Mocks")
.SetUrl(baseDir + "angular-mocks.min.js", baseDir + "angular-mocks.js")
.SetDependencies("AngularJs")
.SetVersion(version);
manifest.DefineScript("AngularJs.Resource")
.SetUrl(baseDir + "angular-resource.min.js", baseDir + "angular-resource.js")
.SetDependencies("AngularJs")
.SetVersion(version);
manifest.DefineScript("AngularJs.Route")
.SetUrl(baseDir + "angular-route.min.js", baseDir + "angular-route.js")
.SetDependencies("AngularJs")
.SetVersion(version);
manifest.DefineScript("AngularJs.Sanitize")
.SetUrl(baseDir + "angular-sanitize.min.js", baseDir + "angular-sanitize.js")
.SetDependencies("AngularJs")
.SetVersion(version);
manifest.DefineScript("AngularJs.Scenario")
.SetUrl(baseDir + "angular-scenario.min.js", baseDir + "angular-scenario.js")
.SetDependencies("AngularJs")
.SetVersion(version);
manifest.DefineScript("AngularJs.Touch")
.SetUrl(baseDir + "angular-touch.min.js", baseDir + "angular-touch.js")
.SetDependencies("AngularJs")
.SetVersion(version);
// manifest.DefineScript("AngularJs.holder")
// .SetUrl(baseDir + "angular-holder.min.js", baseDir + "angular-holder.js")
// .SetDependencies("AngularJs")
// .SetVersion(version);
}