Beispiel #1
0
        static public bool NotEmptyDataPicker(DatePicker dp)
        {
            bool check = true;

            if (dp.Text == "")
            {
                check         = false;
                dp.Background = Brushes.Red;
            }
            else
            {
                dp.Background = (SolidColorBrush)dp.FindResource("LightBrush");
            }

            return(check);
        }