Silverlightコントロール全般?
この方法で設定したボタンの写真背景がはっきり見えません。
MemoryStream ms =new MemoryStream (SilverlightBusinessApplication1.Assets.Resources.Images.); BitmapImage bi = new BitmapImage(); bi.SetSource(ms); Button brt = new Button(); brt.Width = 43; brt.Height= 43; brt.Background = new ImageBrush() { ImageSource = bi };
MemoryStream ms =new MemoryStream (SilverlightBusinessApplication1.Assets.Resources.Images.); BitmapImage bi = new BitmapImage(); bi.SetSource(ms); Image image = new Image(); image.Source = bi; Button brt = new Button(); brt.Width = 43; brt.Height= 43; brt.Content = image;
コメント:
0
e[NȂECir Yahoo yV LINEf[^[Ōz500~`I
z[y[W ̃NWbgJ[h COiq@COsیI COze