<UserControl x:Class="XFEToolBox.WpfCore.Controls.MiniToolButton"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:controls="clr-namespace:XFEToolBox.WpfCore.Controls"
mc:Ignorable="d"
d:DesignHeight="450" d:DesignWidth="800" Name="toolButton">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="50"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="25"/>
</Grid.RowDefinitions>
<Button Width="50" Height="50" MinWidth="50" Padding="4" controls:ButtonAssist.IsPrimary="True"
controls:ButtonAssist.CornerRadius="12"
Command="{Binding Command,ElementName=toolButton}" CommandParameter="{Binding CommandParameter,ElementName=toolButton}"
MouseEnter="Button_MouseEnter" MouseLeave="Button_MouseLeave">
<Image Source="{Binding IconSource,ElementName=toolButton,FallbackValue=/XFEToolBox.WpfCore;component/Resources/Image/wrench_tool.png}"
Stretch="UniformToFill"/>
</Button>
<controls:RoundedClipBorder Grid.Row="1" Width="40" Height="5" VerticalAlignment="Center" HorizontalAlignment="Center"
BorderThickness="1" BorderBrush="{Binding ProgressBorderBrush,ElementName=toolButton}"
Margin="0,2,0,2" CornerRadius="3" Visibility="{Binding ProgressVisibility,ElementName=toolButton}">
<ProgressBar Value="{Binding ProgressValue,ElementName=toolButton}" Foreground="{Binding ProgressForeground,ElementName=toolButton}"
Background="{Binding ProgressBackground,ElementName=toolButton}" BorderThickness="0"
LargeChange="{Binding ProgressLargeChange,ElementName=toolButton}" SmallChange="{Binding ProgressSmallChange,ElementName=toolButton}"/>
</controls:RoundedClipBorder>
<controls:ScrollTextBlock x:Name="scrollTextBlock" AutoRolling="False" Grid.Row="2" InnerText="{Binding ToolName,ElementName=toolButton}" InnerForeground="{Binding TextColor,ElementName=toolButton}" MaxWidth="50" RollingBack="True" RollingTimeMillisecond="3000"/>
</Grid>
</UserControl>
<UserControl x:Class="XFEToolBox.WpfCore.Controls.MiniToolButton"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:controls="clr-namespace:XFEToolBox.WpfCore.Controls"
mc:Ignorable="d"
d:DesignHeight="450" d:DesignWidth="800" Name="toolButton">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="50"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="25"/>
</Grid.RowDefinitions>
<Button Width="50" Height="50" MinWidth="50" Padding="4" controls:ButtonAssist.IsPrimary="True"
controls:ButtonAssist.CornerRadius="12"
Command="{Binding Command,ElementName=toolButton}" CommandParameter="{Binding CommandParameter,ElementName=toolButton}"
MouseEnter="Button_MouseEnter" MouseLeave="Button_MouseLeave">
<Image Source="{Binding IconSource,ElementName=toolButton,FallbackValue=/XFEToolBox.WpfCore;component/Resources/Image/wrench_tool.png}"
Stretch="UniformToFill"/>
</Button>
<controls:RoundedClipBorder Grid.Row="1" Width="40" Height="5" VerticalAlignment="Center" HorizontalAlignment="Center"
BorderThickness="1" BorderBrush="{Binding ProgressBorderBrush,ElementName=toolButton}"
Margin="0,2,0,2" CornerRadius="3" Visibility="{Binding ProgressVisibility,ElementName=toolButton}">
<ProgressBar Value="{Binding ProgressValue,ElementName=toolButton}" Foreground="{Binding ProgressForeground,ElementName=toolButton}"
Background="{Binding ProgressBackground,ElementName=toolButton}" BorderThickness="0"
LargeChange="{Binding ProgressLargeChange,ElementName=toolButton}" SmallChange="{Binding ProgressSmallChange,ElementName=toolButton}"/>
</controls:RoundedClipBorder>
<controls:ScrollTextBlock x:Name="scrollTextBlock" AutoRolling="False" Grid.Row="2" InnerText="{Binding ToolName,ElementName=toolButton}" InnerForeground="{Binding TextColor,ElementName=toolButton}" MaxWidth="50" RollingBack="True" RollingTimeMillisecond="3000"/>
</Grid>
</UserControl>