2 writes to _element
Microsoft.Maui.Controls.Compatibility (2)
Android\ButtonLayoutManager.cs (2)
210 _element = null; 215 _element = button;
27 references to _element
Microsoft.Maui.Controls.Compatibility (27)
Android\ButtonLayoutManager.cs (27)
78 if (_element != null) 80 _element.PropertyChanged -= OnElementPropertyChanged; 110 if (_disposed || _renderer == null || _element == null) 138 if (string.IsNullOrEmpty(_element.Text)) 147 if (_alignIconWithText && _element.ContentLayout.IsHorizontal()) 162 if (_element.ContentLayout.Position == Button.ButtonContentLayout.ImagePosition.Right) 207 if (_element != null) 209 _element.PropertyChanged -= OnElementPropertyChanged; 216 _element.PropertyChanged += OnElementPropertyChanged; 224 if (_disposed || _renderer == null || _element == null) 234 _element.InvalidateMeasureNonVirtual(InvalidationTrigger.MeasureChanged); 246 if (_disposed || _renderer == null || _element == null) 256 if (!_element.IsSet(Button.PaddingProperty)) 259 var padding = _element.Padding; 261 if (_borderAdjustsPadding && _element is IBorderElement borderElement && borderElement.IsBorderWidthSet() && borderElement.BorderWidth != borderElement.BorderWidthDefaultValue) 278 if (_disposed || _renderer?.View == null || _element == null) 291 view.Text = _element.UpdateFormsText(_element.Text, _element.TextTransform); 306 if (_element.TextTransform == TextTransform.Default) 314 if (_disposed || _renderer == null || _element == null) 321 ImageSource elementImage = _element.ImageSource; 333 var layout = string.IsNullOrEmpty(_element.Text) ? _imageOnlyLayout : _element.ContentLayout; 374 _element?.InvalidateMeasureNonVirtual(InvalidationTrigger.MeasureChanged); 384 if (view == null || _element == null || _renderer?.View == null) 387 view.SetLineBreakMode(_element);