WPF Usercontrol property inaccessible

I have created a simple UC control, which combines two TextBlock and one Textbox.
But when I use this UC,it compains of"not recognized or is not accessible.

Error:
The member "Title" is not recognized or is not accessible.

I use .NET 4.5, VS2012.

Anyone can help? THANKS a LOT!

    public partial class UCComboTextbox : UserControl
    {
        public static DependencyProperty ISDescriptionEnabledProperty = DependencyProperty.Register("ISDescriptionEnabled", typeof(bool), typeof(UCComboTextbox), new PropertyMetadata(false));
        public static readonly DependencyProperty DescriptionVisibilityProperty = DependencyProperty.Register("DescriptionVisibility", typeof(Visibility), typeof(UCComboTextbox), new PropertyMetadata(false));
        public static DependencyProperty TitleProperty = DependencyProperty.Register("Title", typeof(string), typeof(UCComboTextbox), new PropertyMetadata(false));
        public static DependencyProperty DescProperty = DependencyProperty.Register("Desc", typeof(string), typeof(UCComboTextbox), new PropertyMetadata(false));

        public bool ISDescriptionEnabled {get;set;}
        public Visibility DescriptionVisibility
        {
            get
            {
                if (ISDescriptionEnabled)
                    return System.Windows.Visibility.Visible;
                else
                    return System.Windows.Visibility.Collapsed;
            }
        }

        public string Title { get; set; }
        public string Desc { get; set; }

        public UCComboTextbox()
        {
            InitializeComponent();
            DataContext = this;            
        }
    }
}


The xaml that uses this UC:

        <local:UCComboTextbox x:Uid="ServerName" x:Name="ServerName" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="0,30,0,0"
                              Title="{x:Static resx.AddUpdateServerView.ServerNickName}"
                              Desc="{x:Static resx:AddUpdateServerView.ServerNickNameDesc}" />
LVL 1
chuang4630Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Ess KayEntrapenuerCommented:
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Ess KayEntrapenuerCommented:
looks like you didnt refference the dll :/
0
chuang4630Author Commented:
The bug is in the DepedencyProperty.

(1) It needs both get and set
(2) It needs Default value set.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.