/// <summary>
        /// CanExecuteClearCommand handler.
        /// </summary>
        /// <param name="sender">SearchTextBox</param>
        /// <param name="e">CanExecuteRoutedEventArgs</param>
        private static void CanExecuteClearCommand(object sender, CanExecuteRoutedEventArgs e)
        {
            SearchTextBox self = sender as SearchTextBox;

            e.CanExecute = self.CanClearText();
        }
        /// <summary>
        /// OnClearTextCommand handler.
        /// </summary>
        /// <param name="sender">SearchTextBox</param>
        /// <param name="e">ExecutedRoutedEventArgs</param>
        private static void ExecuteClearTextCommand(object sender, ExecutedRoutedEventArgs e)
        {
            SearchTextBox self = sender as SearchTextBox;

            self.Clear();
        }