1
A
回答
8
使用的圖像刷了Window.Background屬性:
<Window>
<Window.Background>
<ImageBrush ImageSource="..." />
</Window.Background>
</Window>
一般來說,想着「我怎麼填一個元素的元素或部分」時(無論是窗口背景,文字塊前景或其他)答案將是一個畫筆,WPF允許你交替使用一個純色畫筆,漸變畫筆,圖像畫筆,視頻畫筆等等。所以你會尋找統一的背景和前景屬性,而不是像在WinForms中那樣分離BackgroundColor,BackgroundGradient,BackgroundImage,BackgroundVideo等屬性。
相關問題
- 1. 如何設置圖像按鈕backgroundimage爲不同的狀態?
- 2. 如何將.PNG圖像設置爲我的WPF窗體的TILED背景圖像?
- 3. 爲什麼在我的表單上設置BackgroundImage會增加加載時間?
- 4. 我如何更改設置器中的WPF按鈕圖像
- 5. 如何在WindowsFormsHost中設置Button的BackgroundImage?
- 6. 如何將圖像設置爲WPF中的圖像控件?
- 7. 如何將圖像設置爲WPF中的圖像控件?
- 8. 如何在WPF的圖像控件中設置圖像?
- 9. 我們可以在UITableview中爲Section設置backgroundImage嗎?
- 10. 在WPF中設置我的圖像背景
- 11. 爲什麼在我的表單的OnLoad中,當我設置背景圖像時,表單會閃爍?
- 12. 如何設置我的佈局圖像?
- 13. 如何將我下載的圖像設置爲我的列表框UI對象?
- 14. 如何在c#中設置按鈕backgroundimage?
- 15. 如何將BackGroundImage設置爲Crystal Reports?
- 16. Android:我如何爲gridview中的圖像設置標籤?
- 17. Android:我如何在Gridview中爲圖像設置標籤?
- 18. 如何設置我的數據在我的表單中的位置? HTML
- 19. 如何設置的圖像時,我們選擇子菜單
- 20. 我如何在WPF中設計這樣的區域設置
- 21. 如何在django表單中設置圖像的樣式?
- 22. 如何在Java中由我設置的圖像上添加Jcombobox?
- 23. 如何爲我自己的類型設置我自己的表單表示
- 24. 爲什麼我不能將圖像設置爲我的UITableViewCell?
- 25. 我將如何設置動態圖像
- 26. 設置我的圖表min yaxis爲0
- 27. 如何將表單的背景圖像設置爲用戶選擇的圖像?
- 28. 如何將圖像設置爲Google圖表中的圖例
- 29. 我如何設置圖像on_hold行爲的時間?
- 30. 我如何FULLHD圖像設置爲ImageView的