This is a migrated thread and some comments may be shown as answers.

PasswordBox in MetroTheme

1 Answer 107 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Wenrong
Top achievements
Rank 1
Wenrong asked on 21 Aug 2012, 02:33 AM
I am trying to apply the telerik metro theme to the WPF controls. While most controls looks OK, the PasswordBox somehow received a strange double border (see attached image). This issue seem to only affect the Metro Theme, other themes such as the Windows7 Theme looks ok.

<Window x:Class="RadControlsWpfApp3.InputsWindow"
        Title="InputsWindow" Height="400" Width="300">
    <Window.Resources>
 
        <telerik:MetroTheme x:Key="Theme" />
 
        <Style TargetType="ScrollViewer">
            <Setter Property="telerik:StyleManager.Theme" Value="{StaticResource Theme}" />
        </Style>
        <Style TargetType="TextBox">
            <Setter Property="telerik:StyleManager.Theme" Value="{StaticResource Theme}" />
        </Style>
        <Style TargetType="Button">
            <Setter Property="telerik:StyleManager.Theme" Value="{StaticResource Theme}" />
        </Style>
        <Style TargetType="CheckBox">
            <Setter Property="telerik:StyleManager.Theme" Value="{StaticResource Theme}" />
        </Style>
        <Style TargetType="RadioButton">
            <Setter Property="telerik:StyleManager.Theme" Value="{StaticResource Theme}" />
        </Style>
        <Style TargetType="ListBox">
            <Setter Property="telerik:StyleManager.Theme" Value="{StaticResource Theme}" />
        </Style>
        <Style TargetType="PasswordBox">
            <Setter Property="telerik:StyleManager.Theme" Value="{StaticResource Theme}" />
        </Style>
    </Window.Resources>
    <Grid>
        <StackPanel Margin="5">
            <Label Content="Username" />
            <TextBox />
            <Label Content="Password" />
            <PasswordBox />
            <Label Content="Gender" />
            <StackPanel Orientation="Horizontal">
                <RadioButton Content="Male" />
                <RadioButton Content="Female" />
            </StackPanel>
            <Label Content="list" />
            <ListBox>
                <ListBoxItem>test1</ListBoxItem>
                <ListBoxItem>test2</ListBoxItem>
                <ListBoxItem>test3</ListBoxItem>
            </ListBox>
            <CheckBox Content="Agree" />
            <Button Content="Submit" />
        </StackPanel>
    </Grid>
</Window>

1 Answer, 1 is accepted

Sort by
0
Yoan
Telerik team
answered on 21 Aug 2012, 01:55 PM
Hi Wenrong,

 Unfortunately, it is true that this problem exists in our latest internal build (2012.2.820). We have already fixed it and changes will take effect in the next Monday's internal build. Please excuse us for the inconvenience. 

All the best,
Yoan
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
General Discussions
Asked by
Wenrong
Top achievements
Rank 1
Answers by
Yoan
Telerik team
Share this question
or