2012-10-08 51 views

回答

0

可元屬性,你的財產

[DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)] 

樣品

public static DependencyProperty TestProperty 
    = DependencyProperty.Register(
     "Test", typeof(string), typeof(YourActivity)); 


[DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)] 
[ValidationOption(ValidationOption.Optional)] 
[Browsable(true)] 
[Description("Enter ....")] 
public string Test 
{ 
    get { return ((string)(base.GetValue(YourActivity.TestProperty))); } 
    set { base.SetValue(YourActivity.TestProperty, value); } 
}