Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Textbox control have hidden focus #2296

Closed
elesh9 opened this issue Jan 6, 2016 · 2 comments · Fixed by #2304
Closed

Textbox control have hidden focus #2296

elesh9 opened this issue Jan 6, 2016 · 2 comments · Fixed by #2304
Assignees
Labels
Milestone

Comments

@elesh9
Copy link

elesh9 commented Jan 6, 2016

Test Project
Visual studio 2015
MahApps.Metro.1.2.0.0
.Net Framework - 4.6

MetroWindow.xaml

<controls:MetroWindow x:Class="WpfApplication.MainWindow"
                      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                      xmlns:controls="http://metro.mahapps.com/winfx/xaml/controls"
                      Title="MainWindow"
                      Height="600"
                      Width="800">
  <Grid>
     <Label x:Name="label" Content="Label" HorizontalAlignment="Left" Margin="81,42,0,0" VerticalAlignment="Top"/>
        <Label x:Name="label1" Content="Label" HorizontalAlignment="Left" Margin="81,73,0,0" VerticalAlignment="Top"/>
        <TextBox x:Name="textBox" HorizontalAlignment="Left" Height="23" Margin="140,42,0,0" TextWrapping="Wrap" Text="" VerticalAlignment="Top" Width="120"/>
        <TextBox x:Name="textBox1" HorizontalAlignment="Left" Height="23" Margin="140,73,0,0" TextWrapping="Wrap" Text="" VerticalAlignment="Top" Width="120"/>
        <Button x:Name="button1" Content="Close" HorizontalAlignment="Left" Margin="277,127,0,0" VerticalAlignment="Top" Width="75" Click="button1_Click"/>


  </Grid>
</controls:MetroWindow>
namespace WpfApplication
{
  public partial class MainWindow : MetroWindow
  {
    public MainWindow()
    {
      InitializeComponent();
    }
private void button1_Click(object sender, RoutedEventArgs e)
        {
            Application.Current.Shutdown(1);
        }
  }
}

when put cursor in first textbox and press TAB key now cursor not show and cursor not shown.

@punker76 punker76 added the Bug label Jan 6, 2016
@punker76 punker76 added this to the 1.2.1 milestone Jan 6, 2016
@punker76 punker76 self-assigned this Jan 6, 2016
@elesh9
Copy link
Author

elesh9 commented Jan 7, 2016

this bug occurred after MahApps.Metro-1.1.3-ALPHA252 version

@elesh9 elesh9 closed this as completed Jan 7, 2016
@elesh9 elesh9 reopened this Jan 7, 2016
punker76 added a commit that referenced this issue Jan 10, 2016
@elesh9
Copy link
Author

elesh9 commented Jan 11, 2016

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging a pull request may close this issue.

2 participants