PasswordBox in MetroTheme

2 posts, 0 answers
  1. Wenrong
    Wenrong avatar
    36 posts
    Member since:
    May 2012

    Posted 20 Aug 2012 Link to this post

    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>
  2. Yoan
    Admin
    Yoan avatar
    1068 posts

    Posted 21 Aug 2012 Link to this post

    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.

  3. UI for WPF is Visual Studio 2017 Ready
Back to Top