I am learning WPF at the moment.
I have vector graphics that I would like to use as a background for a button, but I cannot find a way to do this in the documentation. I thought it would be obvious what to do.
Regards, Mark
You can use VisualBrush:
<Button Content="Hello"> <Button.Background> <VisualBrush> <VisualBrush.Visual> <!-- Your vector graphics here --> </VisualBrush.Visual> </VisualBrush> </Button.Background> </Button>
Apologies
I think I found a solution. DrawingBrush .
Thanks Mark
Source: https://habr.com/ru/post/1754791/More articles:Каковы основные принципы проектирования по шаблону Injection Dependency - c#Session access in MasterPage download event after UrlRewrite - asp.netcombo box and general list - c #https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1754789/in-a-wpf-user-control-how-do-i-specify-coordinates-relative-to-the-controls-total-size-so-that-the-control-will-scale-correctly&usg=ALkJrhi_mdH85VByZnWAtSBfEInBOCMlxwAccording to the event of program loading ..? - flex$ .getJSON for the progress bar does NOT work in Safari and Chrome (but OK in IE6 + and FF) - jquery.NET SharePoint, what do I need? - .netWhat is the most efficient way to read a large text file backwards? - optimizationDeploy the ASP.NET application on the same website as Sharepoint - asp.netHow to create a custom component using JSF 1.2? - jsfAll Articles