示例#1
0
 /// <summary>
 /// Copies the widget by first loading back state data and then resetting id.
 /// </summary>
 /// <param name="widget"></param>
 public static void CopyWidget(WidgetInstance widget)
 {
     // Reset the id so it's not marked as persistant and load back state.
     widget.LoadState();
     widget.ToNewCopy();
 }