28 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)
8 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)
16 public partial class Button : View, IFontElement, ITextElement, IBorderElement, IButtonController, IElementConfiguration<Button>, IPaddingElement, IImageController, IViewController, IButtonElement, ICommandElement, IImageElement, IButton, ITextButton, IImageButton
CheckBox\CheckBox.cs (1)
8 public partial class CheckBox : View, IElementConfiguration<CheckBox>, IBorderElement, IColorElement, ICheckBox
DatePicker\DatePicker.cs (1)
9 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)
8 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)
9 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)
15 public partial class Label : View, IFontElement, ITextElement, ITextAlignmentElement, ILineHeightElement, IElementConfiguration<Label>, IDecorableTextElement, IPaddingElement, ILabel
Layout\Layout.cs (1)
17 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)
16 public partial class Picker : View, IFontElement, ITextElement, ITextAlignmentElement, IElementConfiguration<Picker>, IPicker
ProgressBar\ProgressBar.cs (1)
11 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)
9 public partial class Slider : View, ISliderController, IElementConfiguration<Slider>, ISlider
Stepper\Stepper.cs (1)
9 public partial class Stepper : View, IElementConfiguration<Stepper>, IStepper
Switch\Switch.cs (1)
9 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)
9 public partial class TimePicker : View, IFontElement, ITextElement, IElementConfiguration<TimePicker>, ITimePicker
WebView\WebView.cs (1)
14 public partial class WebView : View, IWebViewController, IElementConfiguration<WebView>, IWebView
Microsoft.Maui.Controls.Compatibility (1)
Tizen\NativeViewWrapper.cs (1)
9 public class NativeViewWrapper : View
Microsoft.Maui.Controls.Maps (1)
Map.cs (1)
16 public partial class Map : View
501 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 (481)
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)
Compatibility\Handlers\iOS\FrameRenderer.cs (1)
79 var content = Element?.Content;
Compatibility\Handlers\iOS\ViewRenderer.cs (2)
7 public abstract partial class ViewRenderer : ViewRenderer<View, PlatformView> 15 where TElement : View, IView
Compatibility\Handlers\ListView\iOS\ListViewRenderer.cs (5)
461 var footerView = (View)footer; 500 var headerView = (View)header; 927 var target = viewCell.View;
Compatibility\Handlers\NavigationPage\iOS\NavigationRenderer.cs (4)
1510 View titleView = NavigationPage.GetTitleView(page); 1871 View _view; 1877 public Container(View view, UINavigationBar bar) : base(bar.Bounds) 1909 if (sender is View view)
Compatibility\Handlers\Shell\iOS\ShellFlyoutContentRenderer.cs (4)
19 View _footer; 86 var header = ((IShellController)_shellContext.Shell).FlyoutHeader; 114 void UpdateFlyoutFooter(View view) 346 var view = (_shellContext.Shell as IShellController).FlyoutContent;
Compatibility\Handlers\Shell\iOS\ShellFlyoutHeaderContainer.cs (2)
10 public ShellFlyoutHeaderContainer(View view) : base(view) 19 if (View.IsSet(View.MarginProperty))
Compatibility\Handlers\Shell\iOS\ShellFlyoutLayoutManager.cs (6)
38 public void SetCustomContent(View content) 50 var oldContent = Content; 111 public View Content 346 bool ShouldHonorSafeArea(View view) 349 && !view.IsSet(View.MarginProperty) 435 if (!double.IsNaN(MeasuredHeaderViewHeightWithMargin) && HeaderView?.View.IsSet(View.MarginProperty) == true)
Compatibility\Handlers\Shell\iOS\ShellPageRendererTracker.cs (3)
237 var titleView = _context.Shell.Toolbar.TitleView as View; 520 public TitleViewContainer(View view) : base(view)
Compatibility\Handlers\Shell\iOS\ShellSearchResultsRenderer.cs (2)
127 var view = (View)template.CreateContent(context, _context.Shell);
Compatibility\Handlers\Shell\iOS\ShellTableViewSource.cs (3)
166 var view = (View)template.CreateContent(context, _context.Shell); 171 var view = _cells[context].View;
Compatibility\Handlers\Shell\iOS\UIContainerCell.cs (3)
18 internal UIContainerCell(string cellId, View view, Shell shell, object context) : base(UITableViewCellStyle.Default, cellId) 46 public UIContainerCell(string cellId, View view) : this(cellId, view, null, null) 85 public View View { get; private set; }
Compatibility\Handlers\Shell\iOS\UIContainerView.cs (3)
12 readonly View _view; 20 public UIContainerView(View view) 47 internal View View => _view;
Compatibility\iOS\Extensions\UIViewExtensions.cs (1)
110 internal static void TransferbindablePropertiesToWrapper(this UIView target, View wrapper)
ContentConverter.cs (3)
14 if (value is View view) 32 static View ConfigureView(View view, ContentPresenter presenter)
ContentPage\ContentPage.cs (6)
15 public static readonly BindableProperty ContentProperty = BindableProperty.Create(nameof(Content), typeof(View), typeof(ContentPage), null, propertyChanged: TemplateUtilities.OnContentChanged); 18 public View Content 20 get { return (View)GetValue(ContentProperty); } 46 View content = Content; 60 View content = Content; 124 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)
12 public static readonly BindableProperty ContentProperty = BindableProperty.Create(nameof(Content), typeof(View), typeof(ContentView), null, propertyChanged: TemplateUtilities.OnContentChanged); 15 public View Content 17 get { return (View)GetValue(ContentProperty); } 25 if (Content is View content) 35 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>
Handlers\Items\iOS\CarouselViewController.cs (5)
27 List<View> _oldViews; 240 _oldViews = new List<View>(); 604 var newViews = new List<View>(); 612 if (!((cell as CarouselTemplatedCell)?.PlatformHandler?.VirtualView is View itemView)) 645 foreach (var itemView in _oldViews)
Handlers\Items\iOS\ItemsViewController.cs (1)
829 (templatedCell.PlatformHandler?.VirtualView as View)?.BindingContext is object bindingContext)
Handlers\Items\iOS\TemplatedCell.cs (8)
80 if (PlatformHandler?.VirtualView is View view) 153 var oldElement = PlatformHandler?.VirtualView as View; 173 if (content is not View view) 220 (renderer.VirtualView as View).MeasureInvalidated += MeasureInvalidated; 241 bool IsUsingVSMForSelectionColor(View view) 328 if (PlatformHandler?.VirtualView is not View view) 336 void UpdateSelectionColor(View view)
Handlers\Items\iOS\TemplateHelpers.cs (4)
12 public static IPlatformViewHandler GetHandler(View view, IMauiContext context) 36 var templateElement = viewTemplate.CreateContent() as View; 51 if (view is View mauiView)
Handlers\Items2\CollectionViewHandler2.iOS.cs (2)
144 if (structuredItemsView.Header is View headerView) 148 if (structuredItemsView.Footer is View footerView)
Handlers\Items2\iOS\CarouselViewController2.cs (5)
22 List<View> _oldViews; 160 _oldViews = new List<View>(); 556 var newViews = new List<View>(); 564 if (!((cell as TemplatedCell2)?.PlatformHandler?.VirtualView is View itemView)) 597 foreach (var itemView in _oldViews)
Handlers\Items2\iOS\ItemsViewController2.cs (1)
511 (TemplatedCell2.PlatformHandler?.VirtualView as View)?.BindingContext is object bindingContext)
Handlers\Items2\iOS\StructuredItemsViewController2.cs (3)
118 if (ItemsView.Header is View headerView) 130 if (ItemsView.Footer is View footerView) 146 if (item is View)
Handlers\Items2\iOS\TemplatedCell2.cs (9)
64 if (PlatformHandler?.VirtualView is View view) 112 var virtualView = template.CreateContent(bindingContext, itemsView) as View; 116 public void Bind(View virtualView, ItemsView itemsView) 121 void BindVirtualView(View virtualView, object bindingContext, ItemsView itemsView, bool needsContainer) 144 if (PlatformHandler?.VirtualView is View view) 150 bool IsUsingVSMForSelectionColor(View view) 237 if (PlatformHandler?.VirtualView is not View view) 245 void UpdateSelectionColor(View view)
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)
34 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)
76 internal View TitleView; 825 internal void SetTitleView(View oldTitleView, View newTitleView)
Platform\GestureManager\GesturePlatformManager.iOS.cs (15)
51 if (_handler.VirtualView is View view) 124 WeakReference weakEventTracker, WeakReference weakRecognizer, GesturePlatformManager? eventTracker, View? view) 145 var view = eventTracker?._handler?.VirtualView as View; 181 var virtualView = eventTracker?._handler?.VirtualView as View; 260 var view = eventTracker?._handler.VirtualView as View; 277 eventTracker._handler?.VirtualView is View view && 335 var view = eventTracker?._handler?.VirtualView as View; 415 eventTracker._handler?.VirtualView is View view) 588 _handler.VirtualView is View v && 806 var oldView = e.OldElement as View;
Platform\iOS\DragAndDropDelegate.cs (14)
64 return HandleDragStarting((View)_viewHandler.VirtualView, _viewHandler, session, new PlatformDragStartingEventArgs(_viewHandler.PlatformView, interaction, session)); 84 HandleDragLeave((View)_viewHandler.VirtualView, package, session.LocalDragSession, new PlatformDragEventArgs(_viewHandler.PlatformView, interaction, session)); 105 if (HandleDragOver((View)_viewHandler.VirtualView, package, session.LocalDragSession, platformArgs)) 122 _viewHandler.VirtualView is View view) 127 else if (_viewHandler.VirtualView is View v) 135 void SendEventArgs<TRecognizer>(Action<TRecognizer> func, View view) 152 public UIDragItem[] HandleDragStarting(View element, IPlatformViewHandler handler, IUIDragSession session, PlatformDragStartingEventArgs platformArgs) 241 View = handler.VirtualView as View, 246 void HandleDropCompleted(View element, PlatformDropCompletedEventArgs platformArgs) 252 bool HandleDragLeave(View element, DataPackage dataPackage, IUIDragSession session, PlatformDragEventArgs platformArgs) 272 bool HandleDragOver(View element, DataPackage dataPackage, IUIDragSession session, PlatformDragEventArgs platformArgs) 292 void HandleDrop(View element, DataPackage datapackage, IUIDropSession session, PlatformDropEventArgs platformArgs) 311 }, (View)element); 363 public View View { get; set; }
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)
44 View _templateRoot; 307 _templateRoot = (this as IControlTemplated)?.TemplateRoot as View; 441 static View BuildDefaultTemplate() 636 if (content is View)
ScrollView\ScrollView.cs (3)
140 View _content; 145 public View Content 322 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. 166 /// Gets or sets a <see cref="View"/> control that represents the leading content.<br/><br/> 175 get { return (View?)GetValue(LeadingContentProperty); } 200 /// Gets or sets a <see cref="View"/> control that represents the content.<br/><br/> 208 get { return (View?)GetValue(TitleBar.ContentProperty); } 213 /// Gets or sets a <see cref="View"/> control that represents the trailing content.<br/><br/> 222 get { return (View?)GetValue(TrailingContentProperty); } 246 View? _templateRoot; 300 _templateRoot = controlTemplate?.TemplateRoot as View; 330 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)
1203 if (this is View view) 1275 if (child is View view) 1290 if (child is View view) 1345 if (LogicalChildrenInternal[i] is View child) 1350 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.Compatibility (10)
AppHostBuilderExtensions.cs (1)
89 handlers.TryAddCompatibilityRenderer(typeof(Microsoft.Maui.Controls.Compatibility.Layout<View>), typeof(DefaultRenderer));
Tizen\Extensions\LayoutExtensions.cs (2)
21 public static void Add(this IList<View> children, NView obj, MeasureDelegate measureDelegate = null) 32 public static View ToView(this NView obj, MeasureDelegate measureDelegate = null)
Tizen\Extensions\NativeBindingExtensions.cs (1)
32 internal static void TransferBindablePropertiesToWrapper(this NView target, View wrapper)
Tizen\Gesture\GestureHandler.cs (2)
15 protected View View => Renderer.Element as View;
Tizen\NativeValueConverterService.cs (1)
14 if ((value is NUI) && toType.IsAssignableFrom(typeof(View)))
Tizen\Renderers\NavigationPageRenderer.cs (2)
382 View titleView = NavigationPage.GetTitleView(page); 403 View titleView = NavigationPage.GetTitleView(page);
Tizen\Renderers\ViewRenderer.cs (1)
16 where TView : View
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); }