Grid Background Image using ImageBrush

后端 未结 3 500
心在旅途
心在旅途 2021-01-12 16:12

I wish to use an ImageBrush in XAML to apply a background to a Grid.

I\'ve given the brush a x:Key and want to refer to it in

3条回答
  •  星月不相逢
    2021-01-12 16:51

    I use this commonly. If the images are added to the project as a Resource, reference them relatively like this.

    
    

    And then reference the image brush:

    
    

提交回复
热议问题