2 writes to StaticDisplayLevels
System.Web (2)
UI\WebControls\Menu.cs (2)
1864StaticDisplayLevels = 1; 1914StaticDisplayLevels = oldStaticDisplayLevels;
63 references to StaticDisplayLevels
System.Web (63)
UI\WebControls\Adapters\MenuAdapter.cs (12)
225if (owner.StaticDisplayLevels > 1 && child.ChildItems.Count > 0) { 226RenderContentsRecursive(writer, child, 1, owner.StaticDisplayLevels); 258if (item.Depth < owner.StaticDisplayLevels) { 279if (item.Depth < owner.StaticDisplayLevels && 287else if (item.Depth >= owner.StaticDisplayLevels && 317if (depth < owner.StaticDisplayLevels && owner.StaticTopSeparatorImageUrl.Length != 0) { 320else if (depth >= owner.StaticDisplayLevels && owner.DynamicTopSeparatorImageUrl.Length != 0) { 368(depthPlusOne < owner.StaticDisplayLevels) || 375depth < owner.StaticDisplayLevels) { 532else if ((depth < owner.StaticDisplayLevels) && (owner.StaticBottomSeparatorImageUrl.Length != 0)) { 535else if ((depth >= owner.StaticDisplayLevels) && (owner.DynamicBottomSeparatorImageUrl.Length != 0)) { 628if (parentItem != null && item.Depth + 1 > Control.StaticDisplayLevels) {
UI\WebControls\Menu.cs (15)
620_maximumDepth = MaximumDynamicDisplayLevels + StaticDisplayLevels; 621if (_maximumDepth < MaximumDynamicDisplayLevels || _maximumDepth < StaticDisplayLevels) { 1366if (nextDepth < StaticDisplayLevels) { 1778if (depth < StaticDisplayLevels) { 1800if (depth < StaticDisplayLevels) { 1817if (item.Depth >= StaticDisplayLevels) { 1856int oldStaticDisplayLevels = StaticDisplayLevels; 1913if (StaticDisplayLevels != oldStaticDisplayLevels) { 1972if (depth < StaticDisplayLevels) { 1977else if (depth >= StaticDisplayLevels && _dynamicItemStyle != null) { 1989if (depth < StaticDisplayLevels) { 1994else if (depth >= StaticDisplayLevels && _dynamicSelectedStyle != null) { 2015if (nextDepth < StaticDisplayLevels) { 2045int staticDisplayLevels = StaticDisplayLevels; 2180mi.Depth + 1 >= StaticDisplayLevels) {
UI\WebControls\MenuItem.cs (22)
238if (_owner.StaticItemFormatString.Length > 0 && Depth < _owner.StaticDisplayLevels) { 241else if (_owner.DynamicItemFormatString.Length > 0 && Depth >= _owner.StaticDisplayLevels) { 602if (Depth < _owner.StaticDisplayLevels) { 624return ((_owner.StaticItemTemplate == null || Depth >= _owner.StaticDisplayLevels) && 625(_owner.DynamicItemTemplate == null || Depth < _owner.StaticDisplayLevels)); 671if (nextDepth >= _owner.StaticDisplayLevels) { 735bool isNextStatic = (nextDepth + 1 < _owner.StaticDisplayLevels); 805bool staticTopSeparator = (depth < _owner.StaticDisplayLevels) && (_owner.StaticTopSeparatorImageUrl.Length != 0); 806bool dynamicTopSeparator = (depth >= _owner.StaticDisplayLevels) && (_owner.DynamicTopSeparatorImageUrl.Length != 0); 834if (depthPlusOne > _owner.StaticDisplayLevels) { 847else if (depthPlusOne == _owner.StaticDisplayLevels) { 951else if ((ChildItems.Count != 0) && (depthPlusOne >= _owner.StaticDisplayLevels)) { 963if (depth != 0 && depth < _owner.StaticDisplayLevels) { 1006bool shouldRenderExpandImage = ((depthPlusOne >= _owner.StaticDisplayLevels) && 1013(depth < _owner.StaticDisplayLevels) && 1018if (((Depth + 1) < _owner.StaticDisplayLevels) && (ChildItems.Count != 0)) { 1056if (depth < _owner.StaticDisplayLevels) { 1061else if (depth >= _owner.StaticDisplayLevels) { 1090bool staticBottomSeparator = (depth < _owner.StaticDisplayLevels) && (_owner.StaticBottomSeparatorImageUrl.Length != 0); 1091bool dynamicBottomSeparator = (depth >= _owner.StaticDisplayLevels) && (_owner.DynamicBottomSeparatorImageUrl.Length != 0); 1145((_owner.StaticItemTemplate != null && Depth < _owner.StaticDisplayLevels) || 1146(_owner.DynamicItemTemplate != null && Depth >= _owner.StaticDisplayLevels))) {
UI\WebControls\MenuRendererClassic.cs (2)
261if (Menu.StaticDisplayLevels > 1) { 311if (Menu.StaticDisplayLevels <= 1 && !staticOnly) {
UI\WebControls\MenuRendererStandards.cs (12)
190if (Menu._levelMenuItemStyles != null || Menu.StaticDisplayLevels > 1) { 191int lastIndex = Menu.StaticDisplayLevels; 199if (index > 0 && index < Menu.StaticDisplayLevels) { 262if (level > Menu.StaticDisplayLevels) { 315if (level > Menu.StaticDisplayLevels) { 342return (item.Depth + 1 >= Menu.StaticDisplayLevels); 351return (item.Depth >= Menu.StaticDisplayLevels); 539if (level == 1 || level > Menu.StaticDisplayLevels) { // Render a <UL> to start, and for all dynamic descendents 556if (level < Menu.StaticDisplayLevels) { // Close off <LI> if we (and our direct descendents) are static 561if (level < Menu.StaticDisplayLevels || !staticOnly) { 566if (level >= Menu.StaticDisplayLevels) { // Close off <LI> if we (or our direct descendents) are dynamic 571if (level == 1 || level > Menu.StaticDisplayLevels) {