我有簡單的應用程序的Windows 8.1(C#)。它有一個頁面,我想以編程方式添加標準圖像按鈕「設置」。 是否可以爲按鈕使用標準靜態圖像資源?Windows 8.1應用程序。圖像按鈕「設置」
Button btnSettings = new Button();
btnSettings.Height = 50; // will be as image size
btnSettings.Width = 50;
//btnSettings.Content = "TEST";
Canvas.Children.Add(btnSettings); // I have big Canvas object
btnSettings.UpdateLayout();
Canvas.SetTop(btnSettings, 0);
Canvas.SetLeft(btnSettings, dx - btnSettings.ActualWidth); // dx - canvas width
//btnSettings.Style = ???
謝謝。