stackPanel.Background = (Brush)Resources["PhoneAccentBrush"]; 转载于:https://www.cnblogs.com/Hack-ok/archive/2012/12/24/2830828.html