PowerArgs.Cli.Button.Button C# (CSharp) Méthode

Button() public méthode

Creates a new button control
public Button ( ) : System
Résultat System
        public Button()
        {
            Height = 1;
            this.Foreground = Theme.DefaultTheme.ButtonColor;
            this.SynchronizeForLifetime(nameof(Text), UpdateWidth, this.LifetimeManager);
            this.SynchronizeForLifetime(nameof(Shortcut), UpdateWidth, this.LifetimeManager);
            this.AddedToVisualTree.SubscribeForLifetime(OnAddedToVisualTree, this.LifetimeManager);
            this.KeyInputReceived.SubscribeForLifetime(OnKeyInputReceived, this.LifetimeManager);
        }