#region Button multiple click event
/// Button multiple click event // private void BtnMulti_Click(object sender, Windows.UI.Xaml.Input.PointerRoutedEventArgs e)
{
TapeChar.Add('*'); Compute(); TextBoxValeur.Text = ResultCalculate.ToString();
}
#endregion
This is a sample source code in XAML for create a sample calculator with IoT
for Raspberry PI 3 or Qualcomm DragonBoard 410C :
<
UserControl
x:Class
=
"GenuisCalculate.GenCalculate"
xmlns
"http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x
"http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local
"using:GenuisDeskIoT"
xmlns:d
"http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc
"http://schemas.openxmlformats.org/markup-compatibility/2006"
Height
"500"
Width
AllowDrop
"True"
>
UserControl.Resources
Button
x:Key
"bChrome"
Foreground
"White"
FontWeight
"Bold"
Button.Background
LinearGradientBrush
GradientStop
Color
"Wheat"
Offset
"0"
></
"DarkSlateGray"
"0.3"
"0.6"
"0.7"
"0.8"
</
ControlTemplate
TargetType
"Button"
Grid
x:Name
"grid"
Border
"border"
CornerRadius
"4"
BorderBrush
"Silver"
BorderThickness
Border.Background
LinearGradientBrush.RelativeTransform
TransformGroup
ScaleTransform
CenterX
"0.5"
CenterY
ScaleX
"1.5"
ScaleY
/>
TranslateTransform
X
"0.02"
Y
ContentPresenter
HorizontalAlignment
"Center"
VerticalAlignment
UserControl.Background
ImageBrush
Stretch
"UniformToFill"
ImageSource
"Assets/013-WallPaper.jpg"
Grid.Background
Grid.ColumnDefinitions
ColumnDefinition
"25"
"280"
"20"
Grid.RowDefinitions
RowDefinition
"50"
"300"
"MetataDataClose"
ClickMode
"Press"
PointerPressed
"MetataDataClose_Click"
"Left"
Grid.Column
"2"
Background
"Transparent"
"30"
Button.Content
"40"
"10"
TextBlock
Text
"X"
"ExtraBold"
FontSize
"14"
FontFamily
"Comic Sans MS"
"Right"
"35"
TextBlock.Foreground
"WhiteSmoke"
"0.2"
"0.4"
"TxtRegister"
"1"
"Black"
TextBox
"TextBoxValeur"
TextAlignment
"Arial Unicode MS"
Grid.Row
"250"
IsReadOnly
StackPanel
"CalculatePanel"
Grid.ColumnSpan
"3"
Grid.RowSpan
"8"
Margin
"15"
Content
"Back"
"BtnBack"
"5"
Button.Template
"DarkGray"
"BtnDelAll"
"CE"
...