2 writes to _owner
System.Web (2)
UI\WebControls\MenuItem.cs (2)
64
_owner
= owner;
1204
_owner
= owner;
113 references to _owner
System.Web (113)
UI\WebControls\MenuItem.cs (113)
238
if (
_owner
.StaticItemFormatString.Length > 0 && Depth <
_owner
.StaticDisplayLevels) {
239
return String.Format(CultureInfo.CurrentCulture,
_owner
.StaticItemFormatString, Text);
241
else if (
_owner
.DynamicItemFormatString.Length > 0 && Depth >=
_owner
.StaticDisplayLevels) {
242
return String.Format(CultureInfo.CurrentCulture,
_owner
.DynamicItemFormatString, Text);
253
Index =
_owner
.CreateItemIndex();
254
_id =
_owner
.ClientID + 'n' + Index;
373
return
_owner
;
571
Value : parentPath +
_owner
.PathSeparator + Value;
599
return
_owner
.ResolveClientUrl(PopOutImageUrl);
602
if (Depth <
_owner
.StaticDisplayLevels) {
603
if (
_owner
.StaticPopOutImageUrl.Length != 0) {
604
return
_owner
.ResolveClientUrl(
_owner
.StaticPopOutImageUrl);
606
else if (
_owner
.StaticEnableDefaultPopOutImage) {
607
return
_owner
.GetImageUrl(Menu.PopOutImageIndex);
611
if (
_owner
.DynamicPopOutImageUrl.Length != 0) {
612
return
_owner
.ResolveClientUrl(
_owner
.DynamicPopOutImageUrl);
614
else if (
_owner
.DynamicEnableDefaultPopOutImage) {
615
return
_owner
.GetImageUrl(Menu.PopOutImageIndex);
624
return ((
_owner
.StaticItemTemplate == null || Depth >=
_owner
.StaticDisplayLevels) &&
625
(
_owner
.DynamicItemTemplate == null || Depth <
_owner
.StaticDisplayLevels));
633
if (
_owner
== null) {
639
_owner
.SetSelectedItem(this);
641
else if (this ==
_owner
.SelectedItem) {
642
_owner
.SetSelectedItem(null);
662
if (ChildItems.Count > 0 && nextDepth <
_owner
.MaximumDepth) {
665
SubMenuStyle subMenuStyle =
_owner
.GetSubMenuStyle(this);
667
if (
_owner
.Page != null &&
_owner
.Page.SupportsStyleSheets) {
668
styleClass =
_owner
.GetSubMenuCssClassName(this);
671
if (nextDepth >=
_owner
.StaticDisplayLevels) {
673
if (!staticOnly && enabled && !(
_owner
.DesignMode && recursive)) {
675
PopOutPanel panel =
_owner
.Panel;
676
if (
_owner
.Page != null &&
_owner
.Page.SupportsStyleSheets) {
677
panel.ScrollerClass =
_owner
.GetCssClassName(ChildItems[0], false);
682
panel.ScrollerStyle =
_owner
.GetMenuItemStyle(ChildItems[0]);
684
if (
_owner
.Page != null &&
_owner
.Page.SupportsStyleSheets) {
722
if (
_owner
.Page != null &&
_owner
.Page.SupportsStyleSheets) {
731
if (
_owner
.Orientation == Orientation.Horizontal) {
735
bool isNextStatic = (nextDepth + 1 <
_owner
.StaticDisplayLevels);
736
bool isNextInRange = (nextDepth + 1 <
_owner
.MaximumDepth);
747
ChildItems[i].RenderItem(writer, i, enabled,
_owner
.Orientation);
748
if (
_owner
.Orientation == Orientation.Vertical) {
762
ChildItems[i].RenderItem(writer, i, enabled,
_owner
.Orientation, staticOnly);
766
ChildItems[i].RenderItem(writer, i, enabled,
_owner
.Orientation);
769
if (
_owner
.Orientation == Orientation.Horizontal) {
801
MenuItemStyle mergedStyle =
_owner
.GetMenuItemStyle(this);
805
bool staticTopSeparator = (depth <
_owner
.StaticDisplayLevels) && (
_owner
.StaticTopSeparatorImageUrl.Length != 0);
806
bool dynamicTopSeparator = (depth >=
_owner
.StaticDisplayLevels) && (
_owner
.DynamicTopSeparatorImageUrl.Length != 0);
814
writer.AddAttribute(HtmlTextWriterAttribute.Src,
_owner
.ResolveClientUrl(
_owner
.StaticTopSeparatorImageUrl));
817
writer.AddAttribute(HtmlTextWriterAttribute.Src,
_owner
.ResolveClientUrl(
_owner
.DynamicTopSeparatorImageUrl));
833
if (!staticOnly &&
_owner
.Enabled) {
834
if (depthPlusOne >
_owner
.StaticDisplayLevels) {
847
else if (depthPlusOne ==
_owner
.StaticDisplayLevels) {
874
if (
_owner
.Page != null &&
_owner
.Page.SupportsStyleSheets) {
875
string styleClass =
_owner
.GetCssClassName(this, false);
890
if (!
_owner
.ItemWrap) {
899
if (
_owner
.Page != null &&
_owner
.Page.SupportsStyleSheets) {
901
string styleClass =
_owner
.GetCssClassName(this, true, out applyInlineBorder);
918
string accessKey =
_owner
.AccessKey;
922
writer.AddAttribute(HtmlTextWriterAttribute.Href,
_owner
.ResolveClientUrl(NavigateUrl));
927
target =
_owner
.Target;
937
_owner
.Page.ClientScript.GetPostBackClientHyperlink(
_owner
, InternalValuePath, true, true));
940
if (!
_owner
.AccessKeyRendered && (accessKey.Length != 0)) {
942
_owner
.AccessKeyRendered = true;
951
else if ((ChildItems.Count != 0) && (depthPlusOne >=
_owner
.StaticDisplayLevels)) {
957
if (!
_owner
.AccessKeyRendered && (accessKey.Length != 0)) {
959
_owner
.AccessKeyRendered = true;
963
if (depth != 0 && depth <
_owner
.StaticDisplayLevels) {
964
Unit indent =
_owner
.StaticSubMenuIndent;
992
writer.AddAttribute(HtmlTextWriterAttribute.Src,
_owner
.ResolveClientUrl(ImageUrl));
1006
bool shouldRenderExpandImage = ((depthPlusOne >=
_owner
.StaticDisplayLevels) &&
1007
(depthPlusOne <
_owner
.MaximumDepth));
1013
(depth <
_owner
.StaticDisplayLevels) &&
1018
if (((Depth + 1) <
_owner
.StaticDisplayLevels) && (ChildItems.Count != 0)) {
1031
(
_owner
.Items.Count != 0) &&
1032
(parent !=
_owner
.Items[
_owner
.Items.Count - 1])) ||
1056
if (depth <
_owner
.StaticDisplayLevels) {
1059
String.Format(CultureInfo.CurrentCulture,
_owner
.StaticPopOutImageTextFormatString, Text));
1061
else if (depth >=
_owner
.StaticDisplayLevels) {
1064
String.Format(CultureInfo.CurrentCulture,
_owner
.DynamicPopOutImageTextFormatString, Text));
1090
bool staticBottomSeparator = (depth <
_owner
.StaticDisplayLevels) && (
_owner
.StaticBottomSeparatorImageUrl.Length != 0);
1091
bool dynamicBottomSeparator = (depth >=
_owner
.StaticDisplayLevels) && (
_owner
.DynamicBottomSeparatorImageUrl.Length != 0);
1098
writer.AddAttribute(HtmlTextWriterAttribute.Src,
_owner
.ResolveClientUrl(SeparatorImageUrl));
1101
writer.AddAttribute(HtmlTextWriterAttribute.Src,
_owner
.ResolveClientUrl(
_owner
.StaticBottomSeparatorImageUrl));
1104
writer.AddAttribute(HtmlTextWriterAttribute.Src,
_owner
.ResolveClientUrl(
_owner
.DynamicBottomSeparatorImageUrl));
1118
if (
_owner
.IsNotIE) {
1145
((
_owner
.StaticItemTemplate != null && Depth <
_owner
.StaticDisplayLevels) ||
1146
(
_owner
.DynamicItemTemplate != null && Depth >=
_owner
.StaticDisplayLevels))) {
1216
item.SetOwner(
_owner
);
1239
if (
_owner
== null) {