Button, Hyperlinkbutton, RepeatButton
Introduced
Re-imagine the Windows 8 Store Apps Button control
button-Buttons Control
Hyperlinkbutton-Super Chain button
RepeatButton-Press the button to repeat the click action
ToggleButton-Toggle State button
RadioButton-Radio Box control
CheckBox-check box control
Toggleswitch-State Toggle Control
Example
1, Button's Demo
ButtonDemo.xaml.cs
/* button-pushbutton control * * using System;
Using Windows.UI.Popups;
Using Windows.UI.Xaml;
Using Windows.UI.Xaml.Controls;
Using Windows.UI.Xaml.Navigation; Namespace Xamldemo.controls {public sealed partial class Buttondemo:page {public Buttondem O () {this.
InitializeComponent (); } protected override void Onnavigatedto (NavigationEventArgs e) {/ * button-buttons control, all of which function is provided through its base class ButtonBase * Clickmode-the mode that raises the Click event: Clickmode.relea SE (default), Clickmode.press, Clickmode.hover * ispointerover-device pointer (mouse or finger) on the button *
IsPressed-whether the current button is in the pressed state * Command and CommandParameter etc when writing to MVVM and then write in detail * *
Button btn = New button (); Btn.
Content = "I am a button"; Btn.
Clickmode = Clickmode.hover; Btn.
Click + + Btn_click; Root.
Children.add (BTN); } async void Btn_click (object sender, RoutedEventArgs e) {await New Messagedialog ("The Click event that triggered the button").
Showasync (); }
}
}