<UserControl x:Class="MathToolBarDemo.MathToolBar"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    HorizontalAlignment="Stretch" Height="48">
	<Grid x:Name="LayoutRoot" Background="Transparent" HorizontalAlignment="Stretch">
		<Grid.RowDefinitions>
			<RowDefinition/>
			<RowDefinition Height="Auto"/>
		</Grid.RowDefinitions>
		<TextBlock x:Name="caption" HorizontalAlignment="Right"/>
		<Grid Grid.Row="1">
			<Grid.ColumnDefinitions>
				<ColumnDefinition Width="Auto" />
				<ColumnDefinition Width="Auto"/>
				<ColumnDefinition Width="Auto"/>
				<ColumnDefinition Width="Auto"/>
				<ColumnDefinition/>
			</Grid.ColumnDefinitions>
			<Button Margin="1" x:Name="sumButton" Click="sumButton_Click" Width="22" Content="Ʃ" Height="22" ToolTipService.ToolTip="Sum" />
			<Button Margin="1" x:Name="avgButton" Click="avgButton_Click" Grid.Column="1" Width="22" Content="Ø" ToolTipService.ToolTip="Average"  Height="22"   />
			<Button Margin="1" x:Name="stddevButton" Click="stddevButton_Click" Grid.Column="2" Width="22" Content="Ơ" ToolTipService.ToolTip="Standard deviation" Height="22" />
			<Button Margin="1" x:Name="countButton" Click="countButton_Click" Grid.Column="3" Width="22" Content="n" ToolTipService.ToolTip="Count" Height="22"  />
			<TextBox Margin="4" MinWidth="100" Grid.Column="4" Height="22" Width="Auto" x:Name="textboxResult"  HorizontalAlignment="Right"   />
		</Grid>
	</Grid>
</UserControl>
