#眉標=Silverlight 3.0、Behavior、Action #副標=Silverlight 3.0技術應用(6) #大標=改變開發方式的Behavior技術 #作者=文/圖 董大偉 ===<反灰>============= this.Storyboard1.begin(); ================ ===<反灰>============= public class TextBoxAutoSelectAction : TargetedTriggerAction { …略… } ================ ============= 程式1 public class TextBoxAutoSelectAction : TriggerAction { public TextBoxAutoSelectAction() { //Insert code required on object creation below this point. } protected override void Invoke(object o) { //Insert code that defines what the Action will do when triggered/invoked. } } ================ ============= 程式2 protected override void Invoke(object o) { TextBox TargetObject=Target; TargetObject.SelectAll(); } ================