
In this example, the Expander is collapsed by default and displays a Label as its header.
#TINYURL EXPANDER HOW TO#
The following example shows how to instantiate an Expander in XAML: As part of that move, the ExpanderState enum has been renamed to ExpandState Create an Expander

The Expander has been part of Xamarin.Forms and has been moved to the Xamarin.CommunityToolkit. These properties are backed by BindableProperty objects, which means that they can be targets of data bindings, and styled. TouchCaptureView, of type View, which stores the view responsible for triggering the expansion/collapsing animation, by tap.This property uses the OneWayToSource binding mode. State, of type ExpandState, which represents the state of the Expander.This property uses the TwoWay binding mode, and has a default value of false. IsExpanded, of type bool, which determines if the Expander is expanded.Header, of type View, which defines the header content.ForceUpdateSizeCommand, of type ICommand, which defines the command that's executed when the size of the Expander is force updated.If this property is not set, then the AnimationLength value will be applied. ExpandAnimationLength, of type uint, which defines the duration of the animation when the Expander expands.ExpandAnimationEasing, of type Easing, which represents the easing function to be applied to the Expander content during expansion.ContentTemplate, of type DataTemplate, which is the template used to dynamically inflate the content of the Expander.Content, of type View, which defines the content to be displayed when the Expander expands.CommandParameter, of type object, which is the parameter that's passed to the Command.Command, of type ICommand, which is executed when the Expander header is tapped.

CollapseAnimationLength, of type uint, which defines the duration of the animation when the Expander is collapsing.CollapseAnimationEasing, of type Easing, which represents the easing function to be applied to the Expander content when it's collapsing.The default value of this property is 250ms. AnimationLength, of type uint, which defines the duration of the animation when the Expander is expanding/collapsing.AnimationEasing, of type Easing, which represents the easing function to be applied to the Expander content when it's expanding/collapsing if ExpandAnimationEasing/CollapseAnimationEasing is not set.The Expander control defines the following properties: Therefore, it's available on all platforms supported by Xamarin.Forms. ) without having to refresh the page.The Expander control is fully implemented in cross-platform code. Supports dynamically updated (AJAX) websites (eg.The title of the website is displayed as a tooltip when available. Scans web pages for short URLs and automatically updates the target URL.Supports login credentials (for services like bit.ly and Cligs).Shorten URLs with one-click operation (the shortened URL is automatically copied to clipboard).

The short URL is automatically copied to the clipboard to paste into other applications.ĬhromeMUSE also automatically expands short URLs on any page, replacing the target URL with the original URL and displays the page title as a tooltip. The URL expansion is provided by, which handles links from more than 200 services. A short URL can be generated for any web page, using the user's preferred shortening service. ChromeMUSE is an extension to facilitate the use of URL shortening services.
