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

Popular posts from this blog

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -

mongodb - How to keep track of users making Stripe Payments -