本文整理汇总了C#中IUrlGenerator类的典型用法代码示例。如果您正苦于以下问题:C# IUrlGenerator类的具体用法?C# IUrlGenerator怎么用?C# IUrlGenerator使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IUrlGenerator类属于命名空间,在下文中一共展示了IUrlGenerator类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: MenuItemJsonConverter
public MenuItemJsonConverter(ControllerContext controllerContext, IUrlGenerator urlGenerator)
: base(controllerContext)
{
Guard.IsNotNull(urlGenerator, "urlGenerator");
UrlGenerator = urlGenerator;
}
示例2: RadialGauge
/// <summary>
/// Initializes a new instance of the <see cref="LinearGauge" /> class.
/// </summary>
/// <param name="viewContext">The view context.</param>
/// <param name="initializer">The javascript initializer.</param>
/// <param name="urlGenerator">The URL Generator.</param>
public RadialGauge(ViewContext viewContext, IJavaScriptInitializer initializer, IUrlGenerator urlGenerator)
: base(viewContext, initializer, urlGenerator)
{
Scale = new GaugeRadialScale(this);
Pointer = new GaugeRadialPointer();
Pointers = new List<GaugeRadialPointer>();
}
示例3: Editor
public Editor(ViewContext viewContext, IJavaScriptInitializer initializer, IUrlGenerator urlGenerator)
: base(viewContext, initializer)
{
UrlGenerator = urlGenerator;
DefaultToolGroup = new EditorToolGroup(this);
Template = new HtmlTemplate();
Messages = new EditorMessages();
StyleSheets = new List<string>();
Pdf = new PDFSettings();
new EditorToolFactory(DefaultToolGroup)
.Formatting()
.Bold().Italic().Underline()
.JustifyLeft().JustifyCenter().JustifyRight()
.InsertUnorderedList().InsertOrderedList()
.Outdent().Indent()
.CreateLink().Unlink()
.InsertImage()
.TableEditing();
TagName = "textarea";
ImageBrowserSettings = new EditorImageBrowserSettings(Messages.ImageBrowserMessages);
FileBrowserSettings = new EditorFileBrowserSettings(Messages.FileBrowserMessages);
//>> Initialization
Resizable = new EditorResizableSettings();
Serialization = new EditorSerializationSettings();
//<< Initialization
}
示例4: DiagnosticRequestHandler
public DiagnosticRequestHandler(BundleCollection bundles, CassetteSettings settings, IUrlGenerator urlGenerator, IBundleCacheRebuilder bundleCacheRebuilder)
{
this.bundles = bundles;
this.settings = settings;
this.urlGenerator = urlGenerator;
this.bundleCacheRebuilder = bundleCacheRebuilder;
}
示例5: ComboBox
public ComboBox(ViewContext viewContext, IClientSideObjectWriterFactory clientSideObjectWriterFactory, IUrlGenerator urlGenerator)
: base(viewContext, clientSideObjectWriterFactory)
{
ScriptFileNames.AddRange(new[] { "telerik.common.js", "telerik.list.js", "telerik.combobox.js" });
UrlGenerator = urlGenerator;
ClientEvents = new DropDownClientEvents();
DataBinding = new AutoCompleteDataBindingConfiguration();
DropDownHtmlAttributes = new RouteValueDictionary();
HiddenInputHtmlAttributes = new RouteValueDictionary();
InputHtmlAttributes = new RouteValueDictionary();
Effects = new Effects();
defaultEffects.Each(el => Effects.Container.Add(el));
Filtering = new ComboBoxFilterSettings();
Items = new List<DropDownItem>();
SelectedIndex = -1;
Enabled = true;
Encoded = true;
OpenOnFocus = false;
IgnoreCase = true;
}
示例6: ViewComponentFactory
public ViewComponentFactory(HtmlHelper htmlHelper, IUrlGenerator urlGenerator)
: base(htmlHelper.ViewContext)
{
Guard.IsNotNull(urlGenerator, "urlGenerator");
this.urlGenerator = urlGenerator;
}
示例7: Editor
public Editor(ViewContext viewContext, IJavaScriptInitializer initializer, IUrlGenerator urlGenerator)
: base(viewContext, initializer)
{
UrlGenerator = urlGenerator;
DefaultToolGroup = new EditorToolGroup(this);
Template = new HtmlTemplate();
Messages = new EditorMessages();
StyleSheets = new List<string>();
new EditorToolFactory(DefaultToolGroup)
.Bold().Italic().Underline().Strikethrough()
.FontName()
.FontSize()
.FontColor().BackColor()
.JustifyLeft().JustifyCenter().JustifyRight().JustifyFull()
.InsertUnorderedList().InsertOrderedList()
.Outdent().Indent()
.FormatBlock()
.CreateLink().Unlink()
.InsertImage();
ImageBrowserSettings = new EditorImageBrowserSettings(Messages.ImageBrowserMessages);
}
示例8: Gauge
/// <summary>
/// Initializes a new instance of the <see cref="Gauge" /> class.
/// </summary>
/// <param name="viewContext">The view context.</param>
/// <param name="initializer">The javascript initializer.</param>
/// <param name="urlGenerator">The URL Generator.</param>
public Gauge(ViewContext viewContext, IJavaScriptInitializer initializer, IUrlGenerator urlGenerator)
: base(viewContext, initializer)
{
UrlGenerator = urlGenerator;
GaugeArea = new GaugeArea();
Transitions = true;
}
示例9: Menu
public Menu(ViewContext viewContext, IClientSideObjectWriterFactory clientSideObjectWriterFactory, IUrlGenerator urlGenerator)
: base(viewContext, clientSideObjectWriterFactory)
{
Guard.IsNotNull(urlGenerator, "urlGenerator");
UrlGenerator = urlGenerator;
Items = new LinkedObjectCollection<MenuItem>(null);
}
示例10: MobileSwitch
public MobileSwitch(ViewContext viewContext, IJavaScriptInitializer initializer, IUrlGenerator urlGenerator)
: base(viewContext, initializer)
{
this.urlGenerator = urlGenerator;
//>> Initialization
//<< Initialization
}
示例11: DropDownListBase
public DropDownListBase(ViewContext viewContext, IJavaScriptInitializer initializer, ViewDataDictionary viewData, IUrlGenerator urlGenerator)
: base(viewContext, initializer, viewData)
{
Animation = new PopupAnimation();
DataSource = new DataSource();
UrlGenerator = urlGenerator;
}
示例12: ReadOnlyDataSourceBuilder
public ReadOnlyDataSourceBuilder(DataSource dataSource, ViewContext viewContext, IUrlGenerator urlGenerator)
{
this.viewContext = viewContext;
this.urlGenerator = urlGenerator;
this.dataSource = dataSource;
dataSource.Schema.Data = "";
dataSource.Schema.Total = "";
}
示例13: Calendar
public Calendar(ViewContext viewContext, IJavaScriptInitializer initializer, IUrlGenerator urlGenerator)
: base(viewContext, initializer)
{
this.urlGenerator = urlGenerator;
MonthTemplate = new MonthTemplate();
SelectionSettings = new CalendarSelectionSettings();
}
示例14: Spreadsheet
public Spreadsheet(ViewContext viewContext, IJavaScriptInitializer initializer, IUrlGenerator urlGenerator)
: base(viewContext, initializer)
{
this.urlGenerator = urlGenerator;
//>> Initialization
Sheets = new List<SpreadsheetSheet>();
//<< Initialization
}
示例15: MobileSplitView
public MobileSplitView(ViewContext viewContext, IJavaScriptInitializer initializer, IUrlGenerator urlGenerator)
: base(viewContext, initializer)
{
this.urlGenerator = urlGenerator;
//>> Initialization
Panes = new List<MobileSplitViewPane>();
//<< Initialization
}