public TaskItem() { InitializeComponent(); this.PreviewMouseLeftButtonDown += TaskItem_MouseDown; string taskTitle = "任务:" + RandomId.GetRandomId(); this.TitleExpander.Header = taskTitle; }