Share via


Xamarin.CommunityToolkit.UI.Views Namespace

Classes

AvatarView

The AvatarView control allows the user to display an avatar or the user's initials if no avatar is available. By binding the Source property the user can assign an image to the AvatarView. Simultaneously binding the Text property will allow the user to also set the initials to be shown if no valid image is provided.

BadgeAnimation

This is the default animation that is used when the IsAnimated is set to true.

BadgeView

The BadgeView allows the user to show a badge with a string value on top of any control. By wrapping a control in a BadgeView control, you can show a badge value on top of it. This is very much like the badges you see on the app icons on iOS and Android.

BaseLazyView

Abstract base class for LazyView<TView>

BasePopup

The popup control's base implementation.

CameraView
ColorTheme

The ColorTheme can be used to make the AvatarView have a consistent look. A theme consists of a set of colors that are used and applied to a variety of properties on the AvatarView. You can also implement your own theme by implementing the IColorTheme interface.

DockLayout

The DockLayout makes it easy to dock content in all four directions (top, bottom, left and right). This makes it a great choice in many situations, where you want to divide the screen into specific areas, especially because by default, the last element inside the DockLayout, unless this feature is specifically disabled, will automatically fill the rest of the space (center). Inspired by WPF DockPanel: https://docs.microsoft.com/dotnet/api/system.windows.controls.dockpanel?view=netframework-4.8

Expander
GravatarImageSource
LayoutExtensions
LazyView<TView>

This a basic implementation of the LazyView based on BaseLazyView use this an exemple to create yours

MediaCapturedEventArgs
MediaElement
Popup

Default popup implementation that uses a generic System.Object result.

Popup<T>

The popup control's base implementation.

PopupDismissedEventArgs

Popup dismissed event arguments used when a popup is dismissed.

PopupDismissedEventArgs<T>

Popup dismissed event arguments used when a popup is dismissed.

PopupOpenedEventArgs

Popup opened event arguments used when a popup is opened.

RangeSlider
Shield

The Shield is a type of badge that has two colored sections that contain text

SideMenuView
StateLayout
StateLayoutController
StateView
TabBadgeAnimation
TabBadgeTemplate
TabBadgeView
TabSelectionChangedEventArgs
TabTappedEventArgs
TabView
TabViewItem
UniformGrid

The UniformGrid is just like the Grid, with the possibility of multiple rows and columns, but with one important difference: All rows and columns will have the same size. Use this when you need the Grid behavior without the need to specify different sizes for the rows and columns.

UriTypeConverter

Interfaces

IBadgeAnimation

You can implement this interface to create your own animations to be used on the BadgeView. Create an implementation of IBadgeAnimation, assign the implemenatation to the BadgeAnimation and set IsAnimated to true.

IColorTheme

By implementing the IColorTheme you can compose your own theme that can be used with the AvatarView to create a consistent look. Assign the implementation of this interface to the ColorTheme property to use it.

IMediaElementController
ISideMenuList<T>
ITabBadgeAnimation
ITabViewItemAnimation

Enums

BadgePosition

Determines the position where the badge will be shown on top of Content.

CameraCaptureMode
CameraFlashMode
CameraOptions
DefaultGravatar
Dock

Possible values in what direction a child element will be docked in within the DockLayout,

ExpandDirection
ExpandState
LayoutState
MediaElementState
SideMenuPosition
SideMenuState
TabIndicatorPlacement
TabStripPlacement

Delegates

TabView.TabSelectionChangedEventHandler
TabView.TabViewScrolledEventHandler
TabViewItem.TabTappedEventHandler