WPF controls are pink or transparent
Posted: 13 Jan 2025, 14:08
Hello
I dont know why, but some wpf controls are pink in my views. These controls dont have style. The are no necessary.
Why and how ca i solve that?
What is the difference between PasswordBox and Textbox?
PD.: The problem is in PasswordBox control.
My code:
I dont know why, but some wpf controls are pink in my views. These controls dont have style. The are no necessary.
Why and how ca i solve that?
What is the difference between PasswordBox and Textbox?
PD.: The problem is in PasswordBox control.
My code:
Code: Select all
<components:EmailTextBoxControl x:Name="UserNameTextBox"
InputScope="EmailSmtpAddress"
Height="112"
Width="651"
FontSize="32"
Margin="0 0 0 48"
properties:ErrorProperty.IsError="{Binding IsErrorLogin.Value}"
TextPlaceholder="{Binding LocalizationDictionary[$USER].Value}"
Text="{Binding Email.Value, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
IsValid="{Binding IsEmailValid.Value, Mode=OneWayToSource, UpdateSourceTrigger=PropertyChanged}">
<b:Interaction.Behaviors>
<behaviors:NavigationBehaviour />
</b:Interaction.Behaviors>
<b:Interaction.Triggers>
<b:EventTrigger EventName="LostFocus">
<b:InvokeCommandAction Command="{Binding LostFocusEmailCommand}"
CommandParameter="{Binding ElementName=UserNameTextBox, Path=Text}" />
</b:EventTrigger>
<b:EventTrigger EventName="TextChanged">
<b:InvokeCommandAction Command="{Binding EmailChangedCommand}"
CommandParameter="{Binding ElementName=UserNameTextBox, Path=Text}" />
</b:EventTrigger>
</b:Interaction.Triggers>
</components:EmailTextBoxControl>
<TextBox Text="asassasaasd" FontSize="32"/>
<PasswordBox x:Name="UserPasswordBox"
FontSize="32"
Height="112"
Margin="0 0 0 0"
Password="fbgnbftf" Foreground="White">
<b:Interaction.Behaviors>
<behaviors:PasswordBoxRevealBehavior />
<behaviors:NavigationBehaviour />
</b:Interaction.Behaviors>
<b:Interaction.Triggers>
<b:EventTrigger EventName="PasswordChanged">
<b:InvokeCommandAction Command="{Binding ResetIsErrorLoginCommand}"
CommandParameter="{Binding ElementName=UserPasswordBox}" />
</b:EventTrigger>
</b:Interaction.Triggers>
</PasswordBox>