7 instantiations of MenuItem
System.Web (7)
UI\WebControls\Menu.cs (5)
775
_rootItem = new
MenuItem
(this, true);
1685
newItem = new
MenuItem
(text, value, imageUrl, navigateUrl, target);
1865
dynamicSubMenu = new
MenuItem
();
1871
MenuItem newItem = new
MenuItem
(dummyText);
1881
dynamicSubMenu.ChildItems[1].ChildItems.Add(new
MenuItem
());
UI\WebControls\MenuItem.cs (1)
1311
MenuItem newItem = new
MenuItem
();
UI\WebControls\MenuItemCollection.cs (1)
239
AddAt(index, new
MenuItem
());
89 references to MenuItem
System.Web (89)
UI\WebControls\Adapters\MenuAdapter.cs (11)
23
private
MenuItem
_titleItem;
163
MenuItem
titleItem;
200
foreach (
MenuItem
child in _titleItem.ChildItems) {
223
foreach(
MenuItem
child in owner.Items) {
231
private void RenderContentsRecursive(HtmlTextWriter writer,
MenuItem
parentItem, int depth, int maxDepth) {
233
foreach(
MenuItem
child in parentItem.ChildItems) {
252
private void RenderExpand(HtmlTextWriter writer,
MenuItem
item, Menu owner) {
301
protected virtual internal void RenderItem(HtmlTextWriter writer,
MenuItem
item, int position) {
610
MenuItem
item = Control.Items.FindItem(newPath.Split(TreeView.InternalPathSeparator), 0);
625
MenuItem
item = Control.Items.FindItem(_path.Split(TreeView.InternalPathSeparator), 0);
627
MenuItem
parentItem = item.Parent;
UI\WebControls\Menu.cs (28)
77
private
MenuItem
_rootItem;
78
private
MenuItem
_selectedItem;
705
foreach (
MenuItem
item in Items) {
772
internal
MenuItem
RootItem {
890
public
MenuItem
SelectedItem {
1335
foreach (
MenuItem
child in Items) {
1348
private void CreateTemplatedControls(ITemplate template,
MenuItem
item, int position, int depth, bool dataBinding) {
1360
foreach (
MenuItem
child in item.ChildItems) {
1388
private void DataBindItem(
MenuItem
item) {
1425
private void DataBindRecursive(
MenuItem
node, IHierarchicalEnumerable enumerable) {
1682
MenuItem
newItem = null;
1735
public
MenuItem
FindItem(string valuePath) {
1742
internal string GetCssClassName(
MenuItem
item, bool hyperLink) {
1747
internal string GetCssClassName(
MenuItem
item, bool hyperlink, out bool containsClassName) {
1816
private
MenuItem
GetOneDynamicItem(
MenuItem
item) {
1821
MenuItem
result = GetOneDynamicItem(item.ChildItems[i]);
1859
MenuItem
dynamicSubMenu = GetOneDynamicItem(RootItem);
1871
MenuItem
newItem = new MenuItem(dummyText);
1959
internal MenuItemStyle GetMenuItemStyle(
MenuItem
item) {
2005
internal string GetSubMenuCssClassName(
MenuItem
item) {
2035
internal SubMenuStyle GetSubMenuStyle(
MenuItem
item) {
2175
MenuItem
mi = me.Item;
2454
protected void SetItemDataBound(
MenuItem
node, bool dataBound) {
2462
protected void SetItemDataItem(
MenuItem
node, object dataItem) {
2470
protected void SetItemDataPath(
MenuItem
node, string dataPath) {
2474
internal void SetSelectedItem(
MenuItem
node) {
2596
MenuItem
node = Items.FindItem(nodePath.Split(TreeView.InternalPathSeparator), 0);
UI\WebControls\MenuEventArgs.cs (4)
11
private
MenuItem
_item;
14
public MenuEventArgs(
MenuItem
item, object commandSource, CommandEventArgs originalArgs) : base(originalArgs) {
19
public MenuEventArgs(
MenuItem
item) : this(item, null, new CommandEventArgs(String.Empty, null)) {
28
public
MenuItem
Item {
UI\WebControls\MenuItem.cs (11)
34
private
MenuItem
_parent;
304
MenuItem
parent = _parent;
333
MenuItem
current = this;
383
public
MenuItem
Parent {
1028
MenuItem
parent = this;
1158
foreach (
MenuItem
child in ChildItems) {
1215
foreach (
MenuItem
item in ChildItems) {
1224
internal void SetParent(
MenuItem
parent) {
1311
MenuItem
newItem = new MenuItem();
1334
public MenuItemTemplateContainer(int itemIndex,
MenuItem
dataItem) {
1361
MenuEventArgs args = new MenuEventArgs((
MenuItem
)_dataItem, source, ce);
UI\WebControls\MenuItemCollection.cs (21)
11
private List<
MenuItem
> _list;
12
private
MenuItem
_owner;
24
public MenuItemCollection(
MenuItem
owner) {
26
_list = new List<
MenuItem
>();
60
public
MenuItem
this[int index] {
67
public void Add(
MenuItem
child) {
72
public void AddAt(int index,
MenuItem
child) {
105
MenuItem
current = owner.SelectedItem;
116
foreach (
MenuItem
item in _list) {
130
if (!(array is
MenuItem
[])) {
133
_list.CopyTo((
MenuItem
[])array, index);
137
public void CopyTo(
MenuItem
[] array, int index) {
142
public bool Contains(
MenuItem
c) {
146
internal
MenuItem
FindItem(string[] path, int pos) {
153
MenuItem
node = _list[i];
168
public int IndexOf(
MenuItem
value) {
173
public void Remove(
MenuItem
value) {
186
MenuItem
item = _list[index];
189
MenuItem
current = owner.SelectedItem;
361
private
MenuItem
currentElement;
389
public
MenuItem
Current {
UI\WebControls\MenuRendererStandards.cs (14)
311
private string GetMenuItemCssClass(
MenuItem
item, int level) {
333
protected virtual string GetPostBackEventReference(
MenuItem
item) {
337
private bool IsChildPastMaximumDepth(
MenuItem
item) {
341
private bool IsChildDepthDynamic(
MenuItem
item) {
345
private bool IsDepthDynamic(
MenuItem
item) {
354
private bool IsDepthStatic(
MenuItem
item) {
421
private bool RenderItem(HtmlTextWriter writer,
MenuItem
item, int level, string cssClass, bool needsAccessKey) {
439
private void RenderItemIcon(HtmlTextWriter writer,
MenuItem
item) {
452
private bool RenderItemLinkAttributes(HtmlTextWriter writer,
MenuItem
item, int level, string cssClass, bool needsAccessKey) {
499
private void RenderItemPostSeparator(HtmlTextWriter writer,
MenuItem
item) {
512
private void RenderItemPreSeparator(HtmlTextWriter writer,
MenuItem
item) {
522
private void RenderItemSeparatorImage(HtmlTextWriter writer,
MenuItem
item, string separatorImageUrl) {
547
foreach (
MenuItem
item in items) {
576
private bool ShouldHavePopOutImage(
MenuItem
item) {