User Tools

Site Tools


notes:uwp:buttons

This is an old revision of the document!


Buttons in XAML

The base class for all button controls is ButtonBase.

Object
 └─DependencyObject
   └─UIElement 
     └─FrameworkElement 
       └─Control
         └─ContentControl
           └─ButtonBase
             ├─Button
             ├─HyperlinkButton
             ├─RepeatButton
             └─ToggleButton
               ├─CheckBox
               └─RadioButton

HyperlinkButton

Example: A HyperlinkButton with a Click event handler:

<HyperlinkButton Click="Button_Click">
    <TextBlock Text="Show more..." />
</HyperlinkButton>

Example: A HyperlinkButton for navigation to a web page:

<HyperlinkButton Content="Go to Wiki" NavigateUri="http://www.wbswiki.com" />
notes/uwp/buttons.1483650909.txt.gz · Last modified: 2020/08/26 (external edit)