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