C#
- 5 ответов
- 0 вопросов
4
Вклад в тег
// Fix2
var count = 5;
var counter = 0;
var min = 1;
var max = 6;
do
{
var str = "";
for (int i = min; i < max + 1; ++i)
str += $"name{i} ";
Console.Write(str + '\n');
++counter;
} while (counter < count);
<Style TargetType="{x:Type Button}">
<Setter Property="Background" Value="#3D5754"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Button}">
<Border Background="{TemplateBinding Background}">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Background" Value="Red"/>
</Trigger>
</Style.Triggers>
</Style>