xamarin - GTK# - toolbar buttons with custom images -
when create toolbar buttons in gtk# in xamarin studio seems can assign images stockid (stock.new, stock.open etc). there way assign custom images toolbar buttons?
you can pass widget parameter in toolbutton constructor:
var tbar = new toolbar(); var icon = new image("icon.png"); var button = new toolbutton(icon, "so"); tbar.add(button); in case, icon.png no path assigned it, should exist in application directory, set "copy output directory".
you can create image passing gdk image , mask, story...
Comments
Post a Comment