27 types derived from View
Microsoft.AspNetCore.Components.WebView.Maui (1)
BlazorWebView.cs (1)
12
public partial class BlazorWebView :
View
, IBlazorWebView
Microsoft.Maui.Controls (25)
ActivityIndicator\ActivityIndicator.cs (1)
10
public partial class ActivityIndicator :
View
, IColorElement, IElementConfiguration<ActivityIndicator>, IActivityIndicator
Border\Border.cs (1)
13
public class Border :
View
, IContentView, IBorderView, IPaddingElement
BoxView\BoxView.cs (1)
10
public partial class BoxView :
View
, IColorElement, ICornerElement, IElementConfiguration<BoxView>, IShapeView, IShape
Button\Button.cs (1)
17
public partial class Button :
View
, IFontElement, ITextElement, IBorderElement, IButtonController, IElementConfiguration<Button>, IPaddingElement, IImageController, IViewController, IButtonElement, ICommandElement, IImageElement, IButton, ITextButton, IImageButton
CheckBox\CheckBox.cs (1)
10
public partial class CheckBox :
View
, IElementConfiguration<CheckBox>, IBorderElement, IColorElement, ICheckBox
DatePicker\DatePicker.cs (1)
11
public partial class DatePicker :
View
, IFontElement, ITextElement, IElementConfiguration<DatePicker>, IDatePicker
GraphicsView\GraphicsView.cs (1)
7
public class GraphicsView :
View
, IGraphicsView
HybridWebView\HybridWebView.cs (1)
13
public class HybridWebView :
View
, IHybridWebView
Image\Image.cs (1)
10
public partial class Image :
View
, IImageController, IElementConfiguration<Image>, IViewController, IImageElement, IImage
ImageButton\ImageButton.cs (1)
14
public partial class ImageButton :
View
, IImageController, IElementConfiguration<ImageButton>, IBorderElement, IButtonController, IViewController, IPaddingElement, IButtonElement, ICommandElement, IImageElement, IImageButton
InputView\InputView.cs (1)
11
public partial class InputView :
View
, IPlaceholderElement, ITextElement, ITextInput, IFontElement
Items\ItemsView.cs (1)
15
public abstract class ItemsView :
View
ItemsView.cs (1)
11
public abstract class ItemsView<[DynamicallyAccessedMembers(BindableProperty.DeclaringTypeMembers | BindableProperty.ReturnTypeMembers)] TVisual> :
View
, ITemplatedItemsView<TVisual> where TVisual : BindableObject
Label\Label.cs (1)
17
public partial class Label :
View
, IFontElement, ITextElement, ITextAlignmentElement, ILineHeightElement, IElementConfiguration<Label>, IDecorableTextElement, IPaddingElement, ILabel
Layout\Layout.cs (1)
19
public abstract partial class Layout :
View
, Maui.ILayout, IList<IView>, IBindableLayout, IPaddingElement, IVisualTreeElement, ISafeAreaView, IInputTransparentContainerElement
LegacyLayouts\Layout.cs (1)
93
public abstract class Layout :
View
, ILayout, ILayoutController, IPaddingElement, IView, IVisualTreeElement, IInputTransparentContainerElement
Picker\Picker.cs (1)
18
public partial class Picker :
View
, IFontElement, ITextElement, ITextAlignmentElement, IElementConfiguration<Picker>, IPicker
ProgressBar\ProgressBar.cs (1)
13
public partial class ProgressBar :
View
, IElementConfiguration<ProgressBar>, IProgress
Shapes\Shape.cs (1)
10
public abstract partial class Shape :
View
, IShapeView, IShape
Slider\Slider.cs (1)
11
public partial class Slider :
View
, ISliderController, IElementConfiguration<Slider>, ISlider
Stepper\Stepper.cs (1)
11
public partial class Stepper :
View
, IElementConfiguration<Stepper>, IStepper
Switch\Switch.cs (1)
11
public partial class Switch :
View
, IElementConfiguration<Switch>, ISwitch
TableView\TableView.cs (1)
16
public class TableView :
View
, ITableViewController, IElementConfiguration<TableView>, IVisualTreeElement
TimePicker\TimePicker.cs (1)
11
public partial class TimePicker :
View
, IFontElement, ITextElement, IElementConfiguration<TimePicker>, ITimePicker
WebView\WebView.cs (1)
16
public partial class WebView :
View
, IWebViewController, IElementConfiguration<WebView>, IWebView
Microsoft.Maui.Controls.Maps (1)
Map.cs (1)
16
public partial class Map :
View
385 references to View
Microsoft.AspNetCore.Components.WebView.Maui (1)
BlazorWebView.cs (1)
10
/// A <see cref="
View
"/> that can render Blazor content.
Microsoft.Maui.Controls (375)
BindableLayout\BindableLayout.cs (14)
248
View
_currentEmptyView;
416
var
maybeEmptyView = (
View
)layoutChildren[0]!;
458
var
child = (
View
)layout.Children[index]!;
471
View
CreateEmptyView(object emptyView, DataTemplate dataTemplate)
480
var
view = (
View
)dataTemplate.CreateContent();
484
if (emptyView is
View
emptyLayout)
524
var
child = (
View
)layout.Children[index]!;
558
static
View
CreateItemView(object item, DataTemplate dataTemplate)
560
var
view = (
View
)dataTemplate.CreateContent();
Border\Border.cs (3)
29
public static readonly BindableProperty ContentProperty = BindableProperty.Create(nameof(Content), typeof(
View
),
35
public
View
? Content
37
get { return (
View
?)GetValue(ContentProperty); }
BoundsConstraint.cs (4)
20
internal IEnumerable<
View
> RelativeTo { get; set; }
23
public static BoundsConstraint FromExpression(Expression<Func<Rect>> expression, IEnumerable<
View
> parents = null)
28
internal static BoundsConstraint FromExpression(Expression<Func<Rect>> expression, bool fromExpression, IEnumerable<
View
> parents = null)
34
RelativeTo = parents ?? ExpressionSearch.Default.FindObjects<
View
>(expression).ToArray(), // make sure we have our own copy
Button\Button.cs (1)
14
/// A button <see cref="
View
" /> that reacts to touch events.
Cells\ViewCell.cs (2)
11
View
_view;
14
public
View
View
ClickGestureRecognizer.cs (1)
61
public void SendClicked(
View
sender, ButtonsMask buttons)
ContentConverter.cs (3)
14
if (value is
View
view)
32
static
View
ConfigureView(
View
view, ContentPresenter presenter)
ContentPage\ContentPage.cs (6)
17
public static readonly BindableProperty ContentProperty = BindableProperty.Create(nameof(Content), typeof(
View
), typeof(ContentPage), null, propertyChanged: TemplateUtilities.OnContentChanged);
20
public
View
Content
22
get { return (
View
)GetValue(ContentProperty); }
48
View
content = Content;
62
View
content = Content;
126
if (newView is
View
v)
ContentPresenter.cs (10)
16
public static BindableProperty ContentProperty = BindableProperty.Create(nameof(Content), typeof(
View
),
31
public
View
Content
33
get { return (
View
)GetValue(ContentProperty); }
46
var
child = element as
View
;
74
internal override void ComputeConstraintForView(
View
view)
96
var
oldView = (
View
)oldValue;
97
var
newView = (
View
)newValue;
ContentView\ContentView.cs (5)
14
public static readonly BindableProperty ContentProperty = BindableProperty.Create(nameof(Content), typeof(
View
), typeof(ContentView), null, propertyChanged: TemplateUtilities.OnContentChanged);
17
public
View
Content
19
get { return (
View
)GetValue(ContentProperty); }
27
if (Content is
View
content)
37
if (Content is
View
content)
DragAndDrop\DragGestureRecognizer.cs (1)
111
internal DragStartingEventArgs SendDragStarting(
View
element, Func<IElement?, Point?>? getPosition = null, PlatformDragStartingEventArgs? platformArgs = null)
Element\Element.cs (2)
41
/// <description><see cref= "Layout"/> have a single child of type <see cref="
View
" />, while subclasses of <see cref = "Layout"/> have a collection of multiple children views, including other layouts.</description>
44
/// <term> Controls and specialized <see cref="
View
" /></term>
HybridWebView\HybridWebView.cs (1)
10
/// A <see cref="
View
"/> that presents local HTML content in a web view and allows JavaScript and C# code to
IItemViewController.cs (2)
6
void BindView(
View
view, object item);
7
View
CreateView(object itemType);
IndicatorView\IndicatorStackLayout.cs (1)
21
if (child is
View
view)
ISwipeGestureController.cs (1)
7
bool DetectSwipe(
View
sender, SwipeDirection direction);
Items\CarouselView.cs (4)
46
static readonly BindablePropertyKey VisibleViewsPropertyKey = BindableProperty.CreateReadOnly(nameof(VisibleViews), typeof(ObservableCollection<
View
>), typeof(CarouselView), null, defaultValueCreator: (b) => new ObservableCollection<
View
>());
52
public ObservableCollection<
View
> VisibleViews => (ObservableCollection<
View
>)GetValue(VisibleViewsProperty);
Layout\AbsoluteLayout.cs (1)
47
if (bindable is
View
view && view.Parent is Maui.ILayout layout)
Layout\AndExpandLayoutManager.cs (2)
70
if (child is
View
view && view.VerticalOptions.Expands)
107
if (child is
View
view && view.HorizontalOptions.Expands)
Layout\StackLayoutManager.cs (1)
51
if (stackLayout[n] is
View
view)
LegacyLayouts\AbsoluteLayout.cs (14)
15
public class AbsoluteLayout : Layout<
View
>, IElementConfiguration<AbsoluteLayout>
42
public new IAbsoluteList<
View
> Children
72
foreach (
View
child in LogicalChildrenInternal)
99
foreach (
View
child in LogicalChildrenInternal)
112
internal override void ComputeConstraintForView(
View
view)
161
static SizeRequest ComputeBoundingRegionDesiredSize(
View
view)
230
static Rect ComputeLayoutForRegion(
View
view, Size region)
304
public interface IAbsoluteList<T> : IList<T> where T :
View
306
void Add(
View
view, Rect bounds, AbsoluteLayoutFlags flags = AbsoluteLayoutFlags.None);
308
void Add(
View
view, Point position);
311
class AbsoluteElementCollection : ElementCollection<
View
>, IAbsoluteList<
View
>
320
public void Add(
View
view, Rect bounds, AbsoluteLayoutFlags flags = AbsoluteLayoutFlags.None)
327
public void Add(
View
view, Point position)
LegacyLayouts\Constraint.cs (4)
19
internal IEnumerable<
View
> RelativeTo { get; set; }
34
RelativeTo = ExpressionSearch.Default.FindObjects<
View
>(expression).ToArray() // make sure we have our own copy
47
public static Constraint RelativeToView(
View
view, Func<RelativeLayout,
View
, double> measure)
LegacyLayouts\ConstraintExpression.cs (6)
43
minfo = typeof(
View
).GetProperties().First(pi => pi.Name == Property && pi.CanRead && pi.GetMethod.IsPublic).GetMethod;
52
minfo = typeof(
View
).GetProperties().First(pi => pi.Name == Property && pi.CanRead && pi.GetMethod.IsPublic).GetMethod;
55
View
view;
57
view = (
View
)referenceProvider.FindByName(ElementName);
63
view = ((INameScope)valueProvider.TargetObject).FindByName<
View
>(ElementName);
65
return Constraint.RelativeToView(view, delegate (RelativeLayout p,
View
v)
LegacyLayouts\FlexLayout.cs (18)
14
public class FlexLayout : Layout<
View
>
267
foreach (
var
child in Children)
282
foreach (
var
child in Children)
287
protected override void OnAdded(
View
view)
294
protected override void OnRemoved(
View
view)
301
void AddChild(
View
view)
324
void InitItemProperties(
View
view, Flex.Item item)
351
void RemoveChild(
View
view)
368
item.Width = ((
View
)sender).WidthRequest < 0 ? float.NaN : (float)((
View
)sender).WidthRequest;
369
item.Height = ((
View
)sender).HeightRequest < 0 ? float.NaN : (float)((
View
)sender).HeightRequest;
379
var margin = (Thickness)((
View
)sender).GetValue(MarginProperty);
393
var padding = (Thickness)((
View
)sender).GetValue(PaddingProperty);
407
item.IsVisible = (bool)((
View
)sender).GetValue(IsVisibleProperty);
421
foreach (
var
child in Children)
449
foreach (
var
child in Children)
474
foreach (
var
child in Children)
LegacyLayouts\Grid.cs (24)
14
public partial class Grid : Layout<
View
>, IGridController, IElementConfiguration<Grid>, IGridLayout
85
public new IGridList<
View
> Children
156
protected override void OnAdded(
View
view)
168
protected override void OnRemoved(
View
view)
174
internal override void ComputeConstraintForView(
View
view)
259
var
child = sender as
View
;
293
public interface IGridList<T> : IList<T> where T :
View
295
void Add(
View
view, int left, int top);
296
void Add(
View
view, int left, int right, int top, int bottom);
297
void AddHorizontal(IEnumerable<
View
> views);
298
void AddHorizontal(
View
view);
299
void AddVertical(IEnumerable<
View
> views);
300
void AddVertical(
View
view);
303
class GridElementCollection : ElementCollection<
View
>, IGridList<
View
>
312
public void Add(
View
view, int left, int top)
321
public void Add(
View
view, int left, int right, int top, int bottom)
342
public void AddHorizontal(IEnumerable<
View
> views)
350
public void AddHorizontal(
View
view)
365
public void AddVertical(IEnumerable<
View
> views)
373
public void AddVertical(
View
view)
389
this.Max<
View
, int?>(w => GetRow(w) + GetRowSpan(w)) ?? 0,
394
this.Max<
View
, int?>(w => GetColumn(w) + GetColumnSpan(w)) ?? 0,
LegacyLayouts\GridCalc.cs (14)
25
var
child = (
View
)InternalChildren[index];
192
var
child = (
View
)(grid.InternalChildren[index]);
225
var
child = (
View
)(grid.InternalChildren)[index];
534
var
child = (
View
)element;
559
var
child = (
View
)element;
666
var
child = (
View
)(grid.InternalChildren)[index];
727
var
child = (
View
)(grid.InternalChildren)[index];
LegacyLayouts\Layout.cs (17)
18
/// <typeparam name="T">The type of <see cref="
View
"/> that can be added to the layout.</typeparam>
21
public abstract partial class Layout<T> : Layout, Microsoft.Maui.ILayout, ILayoutManager, IBindableLayout, IViewContainer<T> where T :
View
212
/// Positions a child element into a bounding region while respecting the child elements <see cref="
View
.HorizontalOptions" /> and <see cref="
View
.VerticalOptions" />.
237
if (!(child is
View
view))
287
public void LowerChild(
View
view)
305
public void RaiseChild(
View
view)
411
protected virtual bool ShouldInvalidateOnChildAdded(
View
child) => true;
420
protected virtual bool ShouldInvalidateOnChildRemoved(
View
child) => true;
487
internal static void LayoutChildIntoBoundingRegion(
View
child, Rect region, SizeRequest childSizeRequest)
557
if (child is
View
view)
629
var
v = item as
View
;
644
var
v = item as
View
;
660
void OnInternalAdded(
View
view)
672
void OnInternalRemoved(
View
view, int oldIndex)
LegacyLayouts\RelativeLayout.cs (38)
15
public class RelativeLayout : Layout<
View
>, IElementConfiguration<RelativeLayout>
35
IEnumerable<
View
> _childrenInSolveOrder;
57
public new IRelativeList<
View
> Children
62
IEnumerable<
View
> ChildrenInSolveOrder
69
var result = new List<
View
>();
70
var solveTable = new Dictionary<
View
, bool>();
71
foreach (
View
child in Children.Cast<
View
>())
76
List<
View
> unsolvedChildren = Children.Cast<
View
>().ToList();
79
List<
View
> copy = unsolvedChildren.ToList();
81
foreach (
View
child in copy)
102
View
view = bindable as
View
;
107
void UpdateBoundsConstraint(
View
view)
174
foreach (
View
child in ChildrenInSolveOrder)
183
protected override void OnAdded(
View
view)
196
protected override void OnRemoved(
View
view)
214
foreach (
View
child in ChildrenInSolveOrder)
232
foreach (
View
child in ChildrenInSolveOrder)
242
bool CanSolveView(
View
view, Dictionary<
View
, bool> solveTable)
245
var parents = new List<
View
>();
260
View
p = parents[i];
275
void CreateBoundsFromConstraints(
View
view, Constraint xConstraint, Constraint yConstraint, Constraint widthConstraint, Constraint heightConstraint)
277
var parents = new List<
View
>();
327
static Rect SolveView(
View
view)
341
public interface IRelativeList<T> : IList<T> where T :
View
350
class RelativeElementCollection : ElementCollection<
View
>, IRelativeList<
View
>
359
public void Add(
View
view, Expression<Func<Rect>> bounds)
368
public void Add(
View
view, Expression<Func<double>> x = null, Expression<Func<double>> y = null, Expression<Func<double>> width = null, Expression<Func<double>> height = null)
377
var parents = new List<
View
>();
378
parents.AddRange(ExpressionSearch.Default.FindObjects<
View
>(x));
379
parents.AddRange(ExpressionSearch.Default.FindObjects<
View
>(y));
380
parents.AddRange(ExpressionSearch.Default.FindObjects<
View
>(width));
381
parents.AddRange(ExpressionSearch.Default.FindObjects<
View
>(height));
390
public void Add(
View
view, Constraint xConstraint = null, Constraint yConstraint = null, Constraint widthConstraint = null, Constraint heightConstraint = null)
LegacyLayouts\StackLayout.cs (20)
11
public class StackLayout : Layout<
View
>, IElementConfiguration<StackLayout>, IView
72
var
child = (
View
)LogicalChildrenInternal[i];
95
internal override void ComputeConstraintForView(
View
view)
110
if (!((
View
)LogicalChildrenInternal[i]).IsVisible)
156
View
expander = null;
159
var
child = (
View
)LogicalChildrenInternal[i];
192
View
expander = null;
195
var
child = (
View
)LogicalChildrenInternal[i];
246
var
child = (
View
)LogicalChildrenInternal[i];
318
var
child = (
View
)LogicalChildrenInternal[i];
359
void ComputeConstraintForView(
View
view, bool isOnlyExpander)
426
var
child = (
View
)LogicalChildrenInternal[i];
454
var
child = (
View
)LogicalChildrenInternal[i];
ListView\ListView.cs (1)
747
return template.CreateContent() is
View
;
MergedStyle.cs (1)
15
static readonly IList<Type> s_stopAtTypes = new List<Type> { typeof(
View
),
NavigableElement\NavigableElement.cs (1)
10
/// <remarks>Not meant to be used directly. Instead, opt to use derived types, such as <see cref="
View
"/>.</remarks>
NavigationPage\NavigationPage.cs (6)
43
public static readonly BindableProperty TitleViewProperty = BindableProperty.CreateAttached("TitleView", typeof(
View
), typeof(NavigationPage), null,
160
page.SetTitleView((
View
)oldValue, (
View
)newValue);
191
public static
View
GetTitleView(BindableObject bindable)
193
return (
View
)bindable.GetValue(TitleViewProperty);
352
public static void SetTitleView(BindableObject bindable,
View
value)
Page\Page.cs (3)
78
internal
View
TitleView;
827
internal void SetTitleView(
View
oldTitleView,
View
newTitleView)
Platform\SemanticExtensions.cs (2)
5
internal static bool ControlsAccessibilityDelegateNeeded(this
View
virtualView)
8
internal static bool TapGestureRecognizerNeedsDelegate(this
View
virtualView)
PlatformBindingHelpers.cs (2)
147
where TPlatformWrapper :
View
200
public void TransferAttachedPropertiesTo(
View
wrapper)
PlatformConfiguration\TizenSpecific\Application.cs (7)
40
public static readonly BindableProperty OverlayContentProperty = BindableProperty.CreateAttached("OverlayContent", typeof(
View
), typeof(FormsElement), default(
View
));
43
public static
View
GetOverlayContent(BindableObject application)
45
return (
View
)application.GetValue(OverlayContentProperty);
49
public static void SetOverlayContent(BindableObject application,
View
value)
55
public static
View
GetOverlayContent(this IPlatformElementConfiguration<Tizen, FormsElement> config)
61
public static IPlatformElementConfiguration<Tizen, FormsElement> SetOverlayContent(this IPlatformElementConfiguration<Tizen, FormsElement> config,
View
value)
PlatformConfiguration\TizenSpecific\VisualElement.cs (42)
27
public static readonly BindableProperty NextFocusUpViewProperty = BindableProperty.Create("NextFocusUpView", typeof(
View
), typeof(VisualElement), default(
View
));
30
public static readonly BindableProperty NextFocusDownViewProperty = BindableProperty.Create("NextFocusDownView", typeof(
View
), typeof(VisualElement), default(
View
));
33
public static readonly BindableProperty NextFocusLeftViewProperty = BindableProperty.Create("NextFocusLeftView", typeof(
View
), typeof(VisualElement), default(
View
));
36
public static readonly BindableProperty NextFocusRightViewProperty = BindableProperty.Create("NextFocusRightView", typeof(
View
), typeof(VisualElement), default(
View
));
39
public static readonly BindableProperty NextFocusBackViewProperty = BindableProperty.Create("NextFocusBackView", typeof(
View
), typeof(VisualElement), default(
View
));
42
public static readonly BindableProperty NextFocusForwardViewProperty = BindableProperty.Create("NextFocusForwardView", typeof(
View
), typeof(VisualElement), default(
View
));
248
public static
View
GetNextFocusUpView(BindableObject element)
250
return (
View
)element.GetValue(NextFocusUpViewProperty);
258
public static void SetNextFocusUpView(BindableObject element,
View
value)
268
public static
View
GetNextFocusUpView(this IPlatformElementConfiguration<Tizen, FormsElement> config)
279
public static IPlatformElementConfiguration<Tizen, FormsElement> SetNextFocusUpView(this IPlatformElementConfiguration<Tizen, FormsElement> config,
View
value)
290
public static
View
GetNextFocusDownView(BindableObject element)
292
return (
View
)element.GetValue(NextFocusDownViewProperty);
300
public static void SetNextFocusDownView(BindableObject element,
View
value)
310
public static
View
GetNextFocusDownView(this IPlatformElementConfiguration<Tizen, FormsElement> config)
321
public static IPlatformElementConfiguration<Tizen, FormsElement> SetNextFocusDownView(this IPlatformElementConfiguration<Tizen, FormsElement> config,
View
value)
332
public static
View
GetNextFocusLeftView(BindableObject element)
334
return (
View
)element.GetValue(NextFocusLeftViewProperty);
342
public static void SetNextFocusLeftView(BindableObject element,
View
value)
352
public static
View
GetNextFocusLeftView(this IPlatformElementConfiguration<Tizen, FormsElement> config)
363
public static IPlatformElementConfiguration<Tizen, FormsElement> SetNextFocusLeftView(this IPlatformElementConfiguration<Tizen, FormsElement> config,
View
value)
374
public static
View
GetNextFocusRightView(BindableObject element)
376
return (
View
)element.GetValue(NextFocusRightViewProperty);
384
public static void SetNextFocusRightView(BindableObject element,
View
value)
394
public static
View
GetNextFocusRightView(this IPlatformElementConfiguration<Tizen, FormsElement> config)
405
public static IPlatformElementConfiguration<Tizen, FormsElement> SetNextFocusRightView(this IPlatformElementConfiguration<Tizen, FormsElement> config,
View
value)
416
public static
View
GetNextFocusBackView(BindableObject element)
418
return (
View
)element.GetValue(NextFocusBackViewProperty);
426
public static void SetNextFocusBackView(BindableObject element,
View
value)
436
public static
View
GetNextFocusBackView(this IPlatformElementConfiguration<Tizen, FormsElement> config)
447
public static IPlatformElementConfiguration<Tizen, FormsElement> SetNextFocusBackView(this IPlatformElementConfiguration<Tizen, FormsElement> config,
View
value)
458
public static
View
GetNextFocusForwardView(BindableObject element)
460
return (
View
)element.GetValue(NextFocusForwardViewProperty);
468
public static void SetNextFocusForwardView(BindableObject element,
View
value)
478
public static
View
GetNextFocusForwardView(this IPlatformElementConfiguration<Tizen, FormsElement> config)
489
public static IPlatformElementConfiguration<Tizen, FormsElement> SetNextFocusForwardView(this IPlatformElementConfiguration<Tizen, FormsElement> config,
View
value)
PointerGestureRecognizer.cs (5)
189
internal void SendPointerEntered(
View
sender, Func<IElement?, Point?>? getPosition, PlatformPointerEventArgs? platformArgs = null)
202
internal void SendPointerExited(
View
sender, Func<IElement?, Point?>? getPosition, PlatformPointerEventArgs? platformArgs = null)
215
internal void SendPointerMoved(
View
sender, Func<IElement?, Point?>? getPosition, PlatformPointerEventArgs? platformArgs = null)
228
internal void SendPointerPressed(
View
sender, Func<IElement?, Point?>? getPosition, PlatformPointerEventArgs? platformArgs = null)
241
internal void SendPointerReleased(
View
sender, Func<IElement?, Point?>? getPosition, PlatformPointerEventArgs? platformArgs = null)
Properties\AssemblyInfo.cs (10)
106
[assembly: StyleProperty("margin", typeof(
View
), nameof(
View
.MarginProperty))]
107
[assembly: StyleProperty("margin-left", typeof(
View
), nameof(
View
.MarginLeftProperty))]
108
[assembly: StyleProperty("margin-top", typeof(
View
), nameof(
View
.MarginTopProperty))]
109
[assembly: StyleProperty("margin-right", typeof(
View
), nameof(
View
.MarginRightProperty))]
110
[assembly: StyleProperty("margin-bottom", typeof(
View
), nameof(
View
.MarginBottomProperty))]
RadioButton\RadioButton.cs (4)
46
View
_templateRoot;
309
_templateRoot = (this as IControlTemplated)?.TemplateRoot as
View
;
443
static
View
BuildDefaultTemplate()
638
if (content is
View
)
ScrollView\ScrollView.cs (3)
142
View
_content;
147
public
View
Content
324
internal override void ComputeConstraintForView(
View
view)
Shell\IShellController.cs (3)
25
View
FlyoutHeader { get; }
27
View
FlyoutFooter { get; }
29
View
FlyoutContent { get; }
Shell\Shell.cs (16)
139
/// Enables any <see cref = "
View
" /> to be displayed in the navigation bar.
142
BindableProperty.CreateAttached("TitleView", typeof(
View
), typeof(Shell), null, propertyChanged: OnTitleViewChanged);
330
/// Gets any <see cref = "
View
" /> to be displayed in the navigation bar when the given <paramref name="obj"/> is active.
334
public static
View
GetTitleView(BindableObject obj) => (
View
)obj.GetValue(TitleViewProperty);
337
/// Sets any <see cref = "
View
" /> to be displayed in the navigation bar when the given <paramref name="obj"/> is active.
341
public static void SetTitleView(BindableObject obj,
View
value) => obj.SetValue(TitleViewProperty, value);
679
View
IShellController.FlyoutHeader => FlyoutHeaderView;
680
View
IShellController.FlyoutFooter => FlyoutFooterView;
681
View
IShellController.FlyoutContent => FlyoutContentView;
1149
View
_flyoutHeaderView;
1150
View
_flyoutFooterView;
1477
View
FlyoutHeaderView
1482
View
FlyoutFooterView
2023
View
_flyoutContentView;
2037
View
FlyoutContentView
Shell\ShellTemplatedViewManager.cs (8)
12
ref
View
localView,
13
View
newView,
30
ref
View
localViewRef,
38
newViewData as
View
,
46
ref
View
localViewRef,
52
View
newContentView = currentViewData as
View
;
55
newContentView = (
View
)newViewTemplate.CreateContent(newViewTemplate, shell);
SwipeGestureRecognizer.cs (2)
63
bool ISwipeGestureController.DetectSwipe(
View
sender, SwipeDirection direction)
115
public void SendSwiped(
View
sender, SwipeDirection direction)
SwipeView\SwipeView.cs (1)
232
View
? _scrollParent;
TapGestureRecognizer.cs (1)
56
internal void SendTapped(
View
sender, Func<IElement?, Point?>? getPosition = null)
TemplatedPage.cs (1)
26
internal override void ComputeConstraintForView(
View
view)
TemplatedView\TemplatedView.cs (4)
36
var
child = element as
View
;
53
if ((widthRequest == -1 || heightRequest == -1) && InternalChildren.Count > 0 && InternalChildren[0] is
View
view)
65
internal override void ComputeConstraintForView(
View
view)
TemplateUtilities.cs (2)
120
var
content = template.CreateContent() as
View
;
TitleBar\TitleBar.cs (10)
8
/// A <see cref="
View
"/> control that provides title bar functionality for a window.
169
/// Gets or sets a <see cref="
View
"/> control that represents the leading content.<br/><br/>
178
get { return (
View
?)GetValue(LeadingContentProperty); }
203
/// Gets or sets a <see cref="
View
"/> control that represents the content.<br/><br/>
211
get { return (
View
?)GetValue(TitleBar.ContentProperty); }
216
/// Gets or sets a <see cref="
View
"/> control that represents the trailing content.<br/><br/>
225
get { return (
View
?)GetValue(TrailingContentProperty); }
249
View
? _templateRoot;
303
_templateRoot = controlTemplate?.TemplateRoot as
View
;
333
static
View
BuildDefaultTemplate()
View\View.cs (15)
18
/// Because <see cref="
View
" /> ultimately inherits from <see cref="BindableObject" />, application developers can use the Model-View-ViewModel architecture, as well as XAML, to develop portable user interfaces.
26
BindableProperty.Create(nameof(VerticalOptions), typeof(LayoutOptions), typeof(
View
), LayoutOptions.Fill,
28
((
View
)bindable).InvalidateMeasureInternal(InvalidationTrigger.VerticalOptionsChanged));
32
BindableProperty.Create(nameof(HorizontalOptions), typeof(LayoutOptions), typeof(
View
), LayoutOptions.Fill,
34
((
View
)bindable).InvalidateMeasureInternal(InvalidationTrigger.HorizontalOptionsChanged));
38
BindableProperty.Create(nameof(Margin), typeof(Thickness), typeof(
View
), default(Thickness),
42
BindableProperty.Create("MarginLeft", typeof(double), typeof(
View
), default(double),
53
BindableProperty.Create("MarginTop", typeof(double), typeof(
View
), default(double),
64
BindableProperty.Create("MarginRight", typeof(double), typeof(
View
), default(double),
75
BindableProperty.Create("MarginBottom", typeof(double), typeof(
View
), default(double),
91
/// Initializes a new instance of the <see cref="
View
"/> class
93
/// <remarks>It is unlikely that an application developer would want to create an instance of <see cref="
View
"/> on their own.</remarks>
257
/// Invoked whenever the binding context of the <see cref="
View
" /> changes.
268
((
View
)bindable).InvalidateMeasureInternal(InvalidationTrigger.MarginChanged);
320
if (newView is
View
v)
VisualElement\VisualElement.cs (5)
1206
if (this is
View
view)
1278
if (child is
View
view)
1293
if (child is
View
view)
1348
if (LogicalChildrenInternal[i] is
View
child)
1353
internal virtual void ComputeConstraintForView(
View
view) => view.ComputedConstraint = LayoutConstraint.None;
Microsoft.Maui.Controls.Build.Tasks (1)
XmlTypeExtensions.cs (1)
40
typeof(
View
).Assembly,
Microsoft.Maui.Controls.Foldable (8)
TwoPaneView.cs (8)
60
= BindableProperty.Create("Pane1", typeof(
View
), typeof(TwoPaneView), propertyChanged: (b, o, n) => OnPanePropertyChanged(b, o, n, 0));
64
= BindableProperty.Create("Pane2", typeof(
View
), typeof(TwoPaneView), propertyChanged: (b, o, n) => OnPanePropertyChanged(b, o, n, 1));
124
var
newView = (
View
)newValue;
199
public
View
Pane1
201
get { return (
View
)GetValue(Pane1Property); }
208
public
View
Pane2
210
get { return (
View
)GetValue(Pane2Property); }