placeholder syntax c#
string name = "mustafa";
int age = 22;
Console.WriteLine("Hi {0} you are {1} years old.", name, age);
======================OUTPUT===================================
>> 'Hi mustafa you are 22 years old.'
placeholder syntax c#
string name = "mustafa";
int age = 22;
Console.WriteLine("Hi {0} you are {1} years old.", name, age);
======================OUTPUT===================================
>> 'Hi mustafa you are 22 years old.'
placeholder wpf
<TextBox
x:Name="tbxSeach"
Grid.Row="0"
Grid.Column="0"
Height="25"
Margin="10,0,10,0"
HorizontalAlignment="Stretch"
VerticalAlignment="Bottom"
VerticalContentAlignment="Center"
Text="{Binding SearchText, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}"
TextAlignment="Left">
<TextBox.Resources>
<VisualBrush
x:Key="hinttext"
AlignmentX="Left"
Stretch="None"
TileMode="None">
<VisualBrush.Visual>
<TextBlock
FontStyle="Italic"
Foreground="#959595"
Text="Search..." />
</VisualBrush.Visual>
</VisualBrush>
</TextBox.Resources>
<TextBox.Style>
<Style BasedOn="{StaticResource TextBoxBase}" TargetType="TextBox">
<Setter Property="VerticalAlignment" Value="Center" />
<Setter Property="FontSize" Value="12" />
<Setter Property="Background" Value="Transparent" />
<Style.Triggers>
<Trigger Property="Text" Value="">
<Setter Property="Background" Value="{StaticResource hinttext}" />
</Trigger>
<Trigger Property="Text" Value="{x:Null}">
<Setter Property="Background" Value="{StaticResource hinttext}" />
</Trigger>
</Style.Triggers>
</Style>
</TextBox.Style>
</TextBox>
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us