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

[DateTimePicker] - Focus and BorderBrush #3374

Closed
marcosgerene opened this issue Nov 21, 2018 · 4 comments
Closed

[DateTimePicker] - Focus and BorderBrush #3374

marcosgerene opened this issue Nov 21, 2018 · 4 comments
Labels
Milestone

Comments

@marcosgerene
Copy link

marcosgerene commented Nov 21, 2018

Hello my friends,

  1. How do I do to set focus to a DateTimePicker control (into textbox)?
    I tried myControl.Focus(), Keyboard Focus... but its not work!

  2. How do I do to change borderbrush to another color?

My code:

image

image

image

image

image

@punker76
Copy link
Member

@marcosgerene I'll look to it.

@marcosgerene
Copy link
Author

@punker76 thanks

@punker76
Copy link
Member

punker76 commented Dec 4, 2018

@marcosgerene

  1. I tried it at the main demo like the following code and it just works as expected
        public DateExamples()
        {
            InitializeComponent();

            this.Loaded += DateExamples_Loaded;
        }

        private void DateExamples_Loaded(object sender, System.Windows.RoutedEventArgs e)
        {
            TestDateTimePicker.Focus();
        }
  1. This was a bug and is now fixed in current source (v2.0 alpha)

Note: I tested this all with the latest source

@punker76 punker76 closed this as completed Dec 4, 2018
@marcosgerene
Copy link
Author

@punker76 great!! I'll update my references. =)

Thank you

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

No branches or pull requests

2 participants