.net - How do I implement a custom Brush in WPF? -
Where can I get enough information about how brushes can be applied to my system. Windows.Media.Brush? I can handle all the free stuff, but it is not really clear that I need to override it to work.
Yes, so I did not mean that I want to use a predefined brush. I want to expand the system. Windows Media. Brush, which is an intangible class. It is entirely for my own inspiration. I am not even sure what type of brush I can make. I was just trying to learn how the brush works. As:
Public AwesomeBrush: Brush {Safe Override FreezeBibleInstanceCore () {New AwesomeBrush ()); } ... // concrete brush accessories}
You can not create custom WPF brushes Inheriting the class from System.Windows.Media.Brush , because there is an underlying member in that class.
If you use the reflector to see the It should be overridden, but can not be because they are internal. Note: My answer was edited because source code, System.Windows.Media.Brush class, you will see the following internal abstract methods:
Internal Abstract DUCE.ResourceHandle AddRefOnChannelCore (DUCE.Channel Channel); Internal Summary DUCE.Channel GetChannelCore (Int Index); Internal Summary Intactal Countcore (); Internal Abstract DUCE.ResourceHandle GetHandleCore (DUCE.Channel Channel); Internal abstract zero releaseschannelcore (DUCE channel channel); System.Drawing.Brush about the previous answer and Miko for your comments irrelevant to this question Special thanks to Rantonen.
Comments
Post a Comment