We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allows transitions between VisualElement
interface IViewSwitcher { uint TransitionDuration { get; set; } TransitionType TransitionType { get; set; } }
class ImageSwitcher : Image, IViewSwitcher { public static readonly BindableProperty TransitionDurationProperty; public static readonly BindableProperty TransitionTypeProperty; public uint TransitionDuration { get; set; } public TransitionType TransitionType { get; set; } }
public class TextSwitcher : Label, IViewSwitcher { public static readonly BindableProperty TransitionDurationProperty; public static readonly BindableProperty TransitionTypeProperty; public uint TransitionDuration { get; set; } public TransitionType TransitionType { get; set; } }
public enum TransitionType { Fade, MoveInFromLeft }
<StackLayout HorizontalOptions="CenterAndExpand"> <xct:TextSwitcher x:Name="switcher" TextColor="Black" FontSize="30" Text="Random Text" /> <Button Text="Update Text" CommandParameter="{x:Reference switcher}" Command="{Binding UpdateTextCommand, Source={x:Reference page}}" /> </StackLayout>
Content = new StackLayout { new TextSwitcher { Text = "Random Text", FontSize = 30, TextColor = Colors.Black, }.Assign(out var switcher), new Button { CommandParameter = switcher, Command = new Command<TextSwitcher>(textSwitcher => textSwitcher.Text = Path.GetRandomFileName()) } };
The text was updated successfully, but these errors were encountered:
No branches or pull requests
ViewSwitcher
Summary
Allows transitions between VisualElement
Detailed Design
IViewSwitcher.shared.cs
ImageSwitcher.shared.cs
TextSwitcher.shared.cs
TransitionType.shared.cs
Usage Syntax
XAML Usage
C# Usage
The text was updated successfully, but these errors were encountered: