This project has moved and is read-only. For the latest updates, please go here.
1

Closed

خطا-عدم نمایش تاریخ

description

سلام
تو تکنولوژی wpf
کنترل تقویم داخل یه پنجره که دیالوگ میکنیم اجازه انتخاب تاریخ رو نمیده. تو ویندوز 8.1 این مشکل وجود داره

file attachments

Closed Aug 29, 2014 at 9:57 AM by VahidN

comments

fakharim wrote Aug 19, 2014 at 7:20 AM

بله
این مشکلیه که من هم به آن برخورد کردم ولی هنوز راه حلی برای اون پیدا نکردم

fakharim wrote Aug 19, 2014 at 7:22 AM

و اگه راه حل رو پیدا کردین ممنون میشیم اگه به ما هم بگین

VahidN wrote Aug 29, 2014 at 9:47 AM

To fix this issue, open PDatePicker.xaml.cs file and then
Apply these changes
private void dateTextBoxLostFocus(object sender, RoutedEventArgs e)
        {
            if (!persianCalnedarPopup.IsOpen)
                return; // Ignore

            if (Application.Current == null)
                return;

            var activeWindow = Application.Current.Windows.OfType<Window>().SingleOrDefault(x => x.IsActive);
            if (activeWindow == null)
                return;

            var focusElt = FocusManager.GetFocusedElement(activeWindow) as DependencyObject;
 

wrote Aug 29, 2014 at 9:57 AM