Monday, May 30, 2011

CRM 4.0 Dependency Properties

Property name must be the same as the registered name plus “Property” ????

 

public static DependencyProperty smtpServerProperty = DependencyProperty.Register("smtpServer", typeof(System.String), typeof(SendQuoteToCustomer));

       [CrmInput("Smtp Server")]
       [CrmDefault("2010wss64nickg")]
       public string smtpServer
       {
           get
           {
               return (string)base.GetValue(smtpServerProperty);
           }
           set
           {
               base.SetValue(smtpServerProperty, value);
           }
       }

No comments: