2 writes to Element
Microsoft.Maui.Controls.Compatibility (2)
Android\AppCompat\ImageButtonRenderer.cs (2)
119
Element
= null;
166
Element
= image;
26 references to Element
Microsoft.Maui.Controls.Compatibility (26)
Android\AppCompat\ImageButtonRenderer.cs (26)
46
VisualElement IVisualElementRenderer.Element =>
Element
;
95
if (
Element
!= null)
97
Element
.PropertyChanged -= OnElementPropertyChanged;
112
if (
Element
!= null)
114
if (Platform.GetRenderer(
Element
) == this)
116
Element
.ClearValue(Platform.RendererProperty);
165
ImageButton oldElement =
Element
;
195
OnElementChanged(new ElementChangedEventArgs<ImageButton>(oldElement,
Element
));
196
Element
?.SendViewInitialized(Control);
206
if (
Element
== null)
209
canvas.ClipShape(Context,
Element
);
224
if (
Element
.Aspect == Aspect.AspectFill && OnThisPlatform().GetIsShadowEnabled())
227
switch (
Element
.Aspect)
276
(int)(Context.ToPixels(
Element
.Padding.Left)),
277
(int)(Context.ToPixels(
Element
.Padding.Top)),
278
(int)(Context.ToPixels(
Element
.Padding.Right)),
279
(int)(Context.ToPixels(
Element
.Padding.Bottom))
285
if (
Element
== null || _disposed)
290
_inputTransparent =
Element
.InputTransparent;
312
((IElementController)
Element
).SetValueFromRenderer(VisualElement.IsFocusedPropertyKey, hasFocus);
319
ButtonElementManager.OnClick(
Element
,
Element
, v);
322
ButtonElementManager.OnTouch(
Element
,
Element
, v, e);
332
VisualElement IBorderVisualElementRenderer.Element =>
Element
;
340
_platformElementConfiguration =
Element
.OnThisPlatform();