wpf的资源(动态与静态资源的区别;使用字典资源)

2021-03-01 12:25

阅读:832


       ViewportUnits="Absolute" Viewport="0 0 32 32"
    ImageSource="happyface.jpg" Opacity="0.3">



  

  
  

private void cmdChange_Click(object sender, RoutedEventArgs e)
{
    this.Resources["TileBrush"] = new SolidColorBrush(Colors.LightBlue);
}


评论


亲,登录后才可以留言!