public void OnFileLocationChanged()
        {
            FileValidation = FileValidation.None;

            if (!String.IsNullOrWhiteSpace(FileLocationText))
            {
                if (!FileCommands.IsValidPath(FileLocationText))
                {
                    FileValidation = FileValidation.Error;
                }
                else
                {
                    if (BrowseType == FileBrowseType.Directory)
                    {
                        if (!FileCommands.DirectoryExists(FileLocationText))
                        {
                            FileValidation = FileValidation.Warning;
                        }
                    }
                    else if (BrowseType == FileBrowseType.File)
                    {
                        if (!FileCommands.FileExists(FileLocationText))
                        {
                            FileValidation = FileValidation.Warning;
                        }
                    }
                }
            }

            if (FileValidation == FileValidation.None)
            {
                if (ToolTip != null)
                {
                    ClearValue(FileBrowseControl.ToolTipProperty);
                }
            }
            else if (FileValidation == FileValidation.Warning)
            {
                if (BrowseType == FileBrowseType.Directory)
                {
                    ToolTip = "Folder not found.";
                }
                else if (BrowseType == FileBrowseType.File)
                {
                    ToolTip = "File not found.";
                }
            }
            else if (FileValidation == FileValidation.Error)
            {
                ToolTip = "Error: Path is not valid.";
            }
        }