此範例使用WPF建立


//括弧內第一個參數為專案名稱,分號後面為圖片路徑,這邊使用相對路徑。

Uri uriImage = new Uri("/TestGestureRecognition;component/Images/error.png", UriKind.Relative);
ImageSource imageSource = new BitmapImage(uriImage);

//resultsImage是要放置圖片的控制項,這邊使用Image
this.resultsImage.Source = imageSource;

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 東勢厝滴yang 的頭像
    東勢厝滴yang

    東勢厝yang 雜七雜八亂亂記

    東勢厝滴yang 發表在 痞客邦 留言(0) 人氣()