Telerik Forums
UI for WPF Forum
1 answer
60 views

Hi,

I'm working with the Telerik RadPasswordBox and I'm currently using the Windows 11 theme along with the NoXAML DLL in a WPF project. However, I am unable to apply a dark background color to the RadPasswordBox when it's hovered over or clicked.

Here’s what I’m trying to achieve:

  • Hover Effect: When the user hovers over the RadPasswordBox, I want the background to change to a dark color.
  • Click Effect: Similarly, when the RadPasswordBox is clicked, the background should remain dark until the focus is lost.

I have tried setting the Background property in the relevant triggers, but it does not seem to work as expected. Could anyone provide guidance or a solution on how to implement this with the Windows 11 theme and NoXAML DLL?

Thank you for your help!
below is my code

 <telerik:RadPasswordBox
     x:Name="ClientIdTextBox"
     Grid.Column="1"
     Width="600"
     BorderThickness="0"
     FontSize="20"
     Foreground="#A7A3DC"
     Style="{StaticResource CustomPasswordBoxStyle}"
     WatermarkContent="ClientID">
     <telerik:RadPasswordBox.WatermarkTemplate>
         <DataTemplate>
             <TextBlock
                 Foreground="#A7A3DC"
                 Opacity="0.7"
                 Text="{Binding}" />
         </DataTemplate>
     </telerik:RadPasswordBox.WatermarkTemplate>
 </telerik:RadPasswordBox>
  <Style x:Key="CustomPasswordBoxStyle" TargetType="telerik:RadPasswordBox">
      <Setter Property="Background" Value="Transparent" />
      <Setter Property="BorderThickness" Value="0" />
      <Setter Property="Foreground" Value="#A7A3DC" />
      <Setter Property="FontSize" Value="20" />
      <Style.Triggers>
          <Trigger Property="IsMouseOver" Value="True">
              <Setter Property="Background" Value="#080812" />
          </Trigger>
          <Trigger Property="IsFocused" Value="True">
              <Setter Property="Background" Value="#080812" />
          </Trigger>
      </Style.Triggers>
  </Style>

 

Stenly
Telerik team
 answered on 21 Feb 2025
1 answer
118 views

Steps to reproduce:

I have built a wpf application with 2 telerik controls: a WatermarkTextBox and a PasswordBox.

1. In a Windows session, I launch my wpf application 

2. Enter text in both controls

3. Leave the application up and running and disconnect from the Windows session

4. I reconnect to (log back in) the Windows session, the PasswordBox field gets cleared.

[In a different scenario, when having multiple WatermarkTextBox, some of the WatermarkTextBox get cleared when reconnecting to the session]

 

Any idea what is going? I did some research and could not find anything helpful. Thanks.

Dinko | Tech Support Engineer
Telerik team
 answered on 23 May 2019
1 answer
153 views
Good day.

Does RadPasswordBox support Chinese characters?
We have problems with entering Chinese characters in RadPasswordBox.
1. The entered data is not hidden.
2. The show button will disappear.
3. Password values are not assigned.
4. The entered data cannot be deleted.

Below is a link to the project and files.
https://drive.google.com/file/d/1_YFr-3lfg8ZjR_UdlMlkTKuH43JHWXc_/view?usp=sharing

Regards,
Denis
Kalin
Telerik team
 answered on 12 Mar 2019
2 answers
162 views

Good day.

National characters in RadPasswordBox are displayed as a 
question mark, if the password is inserted through the clipboard.

This behavior is not observed in either RadWatermarkTextBox or PasswordBox.

Please tell me how to solve this problem.

Below is a link to the project and files.
https://drive.google.com/open?id=1fnNaE2Gs0SLVfnf2jvBHpyL4pJLhlF9i

Regards,
Denis

Kalin
Telerik team
 answered on 04 Mar 2019
4 answers
243 views

I already set PasswordBox properties:

<telerik:RadPasswordBox Password="111111" WatermarkContent="password"
   ShowPasswordButtonVisibility="Auto"
   WatermarkBehavior="HideOnTextEntered"
   HorizontalAlignment="Center"  Background="Transparent"  Height="30" Width="280" Grid.Column="1" Grid.Row="4" Name="txtPassword" >
    <telerik:RadPasswordBox.Effect>
         <DropShadowEffect Color="Gray"  Opacity=".50"  ShadowDepth="4" />
     </telerik:RadPasswordBox.Effect>
</telerik:RadPasswordBox>
when it runs,first I delete the password, it shows WatermarkContent, but then ,I input the password,it shows as plaintext ,not security, and overlap with the WatermarkContent,see the file "input show.png",  get txtPassword value(use "txtPassword.Password") is "",   how can I solve this?
Dinko | Tech Support Engineer
Telerik team
 answered on 27 Feb 2019
2 answers
150 views

I'm using UI for WPF 2018.3.1016.

In the Crystal theme, the RadPasswordBox.IsTabStop property defaults to False.  This is different than in the other themes I've tried (Material, Expression_Dark), where it defaults to True.

In the Material theme, the RadPasswordBox's watermark foreground is different than the color of the RadWatermarkTextBox's.  It's obvious when you have both controls visible in the same UI, such as in a login form.

Thx,
Pat

 

Patrick
Top achievements
Rank 1
 answered on 05 Jan 2019
1 answer
974 views

Hi Telerik,

I know binding the password should not be done due to the password being in the RAM is bad practice.

Now everything I want is to let the database tell me if there even is a password (I'm NOT loading the password/password hash) so I can set the Variable I was planning on binding to some garbage text (eg. ********) so the user is visually informed there has been a password set before.

What is a way I can archive this?

BTW: What is best practice to use/get the actual password the user entered to store it? Your examples and documentation on this topic are - as often - paper thin.

Thanks a lot

Kalin
Telerik team
 answered on 29 Mar 2017
3 answers
163 views

I have two buttons in my login dialog.

<telerik:RadButton x:Name="btnCancel" Grid.Row="3" Grid.Column="0" Grid.ColumnSpan="2" Width="100" Height="30" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="10,5,0,0" IsCancel="True" Click="btnCancel_Click">Abbrechen</telerik:RadButton>
<telerik:RadButton x:Name="btnOK" Grid.Column="1" Grid.Row="3" Width="100" Height="30" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,5,10,0" IsDefault="True" Click="btnOK_Click">OK</telerik:RadButton>

After I changed the default PasswordBox to the new RadPasswordbox, the user can no longer use the Enter-Key to finish the Login. How can I restore this function?

Kalin
Telerik team
 answered on 31 Oct 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?