|
@@ -70,11 +70,10 @@
|
|
|
x:Name="currentStyle"
|
|
|
Tag="{Binding StockOfCurrentStyle}"
|
|
|
Click="Take_Click"
|
|
|
- MouseRightButtonUp="Take_RightClick"
|
|
|
Visibility="{Binding Visibility}">
|
|
|
<Button.Style>
|
|
|
<Style TargetType="Button">
|
|
|
- <Setter Property="Content" Value="{Binding UnitsOfCurrentStyle, StringFormat=N0}"/>
|
|
|
+ <Setter Property="Content" Value=""/>
|
|
|
<Setter Property="Template">
|
|
|
<Setter.Value>
|
|
|
<ControlTemplate TargetType="Button">
|
|
@@ -89,10 +88,8 @@
|
|
|
<Setter Property="Background" Value="Transparent"/>
|
|
|
<Setter Property="BorderBrush" Value="Transparent"/>
|
|
|
<Style.Triggers>
|
|
|
- <DataTrigger Binding="{Binding UnitsOfCurrentStyle}" Value="0">
|
|
|
- <Setter Property="Content" Value="-"/>
|
|
|
- </DataTrigger>
|
|
|
<DataTrigger Binding="{Binding CurrentStylePositive}" Value="True">
|
|
|
+ <Setter Property="Content" Value="{Binding UnitsOfCurrentStyle, StringFormat=N0}"/>
|
|
|
<Setter Property="Background" Value="WhiteSmoke"/>
|
|
|
<Setter Property="BorderBrush" Value="#707070"/>
|
|
|
</DataTrigger>
|
|
@@ -121,11 +118,10 @@
|
|
|
x:Name="noStyle"
|
|
|
Tag="{Binding StockOfNoStyle}"
|
|
|
Click="Take_Click"
|
|
|
- MouseRightButtonUp="Take_RightClick"
|
|
|
Visibility="{Binding Visibility}">
|
|
|
<Button.Style>
|
|
|
<Style TargetType="Button">
|
|
|
- <Setter Property="Content" Value="{Binding UnitsOfNoStyle, StringFormat=N0}"/>
|
|
|
+ <Setter Property="Content" Value=""/>
|
|
|
<Setter Property="Template">
|
|
|
<Setter.Value>
|
|
|
<ControlTemplate TargetType="Button">
|
|
@@ -141,12 +137,10 @@
|
|
|
<Setter Property="Background" Value="Transparent"/>
|
|
|
<Setter Property="BorderBrush" Value="Transparent"/>
|
|
|
<Style.Triggers>
|
|
|
- <DataTrigger Binding="{Binding UnitsOfNoStyle}" Value="0">
|
|
|
- <Setter Property="Content" Value="-"/>
|
|
|
- </DataTrigger>
|
|
|
<DataTrigger Binding="{Binding NoStylePositive}" Value="True">
|
|
|
<Setter Property="Background" Value="WhiteSmoke"/>
|
|
|
<Setter Property="BorderBrush" Value="#707070"/>
|
|
|
+ <Setter Property="Content" Value="{Binding UnitsOfNoStyle, StringFormat=N0}"/>
|
|
|
</DataTrigger>
|
|
|
<MultiDataTrigger>
|
|
|
<MultiDataTrigger.Conditions>
|
|
@@ -174,11 +168,10 @@
|
|
|
x:Name="otherStyle"
|
|
|
Tag="{Binding StockOfOtherStyles}"
|
|
|
Click="Take_Click"
|
|
|
- MouseRightButtonUp="Take_RightClick"
|
|
|
Visibility="{Binding Visibility}">
|
|
|
<Button.Style>
|
|
|
<Style TargetType="Button">
|
|
|
- <Setter Property="Content" Value="{Binding UnitsOfOtherStyles, StringFormat=N0}"/>
|
|
|
+ <Setter Property="Content" Value=""/>
|
|
|
<Setter Property="Template">
|
|
|
<Setter.Value>
|
|
|
<ControlTemplate TargetType="Button">
|
|
@@ -193,12 +186,10 @@
|
|
|
<Setter Property="Background" Value="Transparent"/>
|
|
|
<Setter Property="BorderBrush" Value="Transparent"/>
|
|
|
<Style.Triggers>
|
|
|
- <DataTrigger Binding="{Binding UnitsOfOtherStyles}" Value="0">
|
|
|
- <Setter Property="Content" Value="-"/>
|
|
|
- </DataTrigger>
|
|
|
<DataTrigger Binding="{Binding OtherStylesPositive}" Value="True">
|
|
|
<Setter Property="Background" Value="WhiteSmoke"/>
|
|
|
<Setter Property="BorderBrush" Value="#707070"/>
|
|
|
+ <Setter Property="Content" Value="{Binding UnitsOfOtherStyles, StringFormat=N0}"/>
|
|
|
</DataTrigger>
|
|
|
<MultiDataTrigger>
|
|
|
<MultiDataTrigger.Conditions>
|