Share xaml resource among multiple buttons in c# -


I am developing a photo editing application to the surface of the window SDK are many resources I have in my xaml Meri Sis file In, I want to create resources similar to many buttons content. But only one button can use resources at the same time.

Processing:

  & gt; Grid x: Key = "EraseButtonImage" background = "transparent" Vrtiklelinement = "center" height = "38" width = "38" & gt; & Lt; Grid.RowDefinitions & gt; & Lt; RowDefinition height = "0.25 *" / & gt; & Lt; RowDefinition / & gt; & Lt; RowDefinition height = "0.25 *" / & gt; & Lt; /Grid.RowDefinitions> & Lt; Grid.ColumnDefinitions & gt; & Lt; Column width = "0.25 *" /> & Lt; ColumnDefinition / & gt; & Lt; Column width = "0.25 *" /> & Lt; /Grid.ColumnDefinitions> & Lt; Path x: Name = "Path" Stretch = "fill" = "{dynamic resource {X: Static S: Surface Colors} ButtonFrowbaby}}" Data = "F1 M 0.500891,21.1431 L 1.87231,18.6184 L 10.1914,25.9037 C 10.8 9 05, 26.5158 11.9534,26.4453 12.5656,25.7463 L 28.8125,12.4007 L12.9586,31.4896 C. 11.7713,32.9192 9.64985,33.1157 8.22021,31.9283 L 0.946734,25.2718 C-0.482872,24.0844 0.000349879,22.4327 0.500891,21.1431 JM 19.1382,1.0865 C20.3256 , -0.343134 21.389, -0.311098 22k8l86,0k876265 L 28.204,5.33469 L 12.4081,23.3724 C 11.7 9 9 24.0714 10.732 9 24.1419 10.033 9 23.5297 L 2.86836,17.2547 L 19.1382,1.0865 Z "margin =" 0 "grid. Raw = "1" grid. Column = "1" /> & Lt; / Grid & gt;  

I have set the contents of this type of surface button:

  SurfaceButton Button = (SurfaceButton) Sender; // Set the button to switch in between and to draw / edit the image button. Content = searchresource ("erbutbutnom");  


Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -