In my code I have this and it works:

this.NavigationItem.SetLeftBarButtonItem(new 
UIBarButtonItem(UIBarButtonSystemItem.Refresh, this.HandleRefreshClicked), 
false);

It's hand typed while looking at the code on my Mac, so excuse any typos.

Dino

From: [email protected] 
[mailto:[email protected]] On Behalf Of Andreas Ploetzeneder
Sent: Thursday, November 10, 2011 7:03 AM
To: Roland Mai
Cc: [email protected]
Subject: Re: [MonoTouch] LeftBarButton Color

this does not work
2011/11/10 Roland Mai <[email protected]<mailto:[email protected]>>
You should attach the clicked event to the UIBarButtonItem instance instead.
________________________________
From: "Andreas Ploetzeneder" 
<[email protected]<mailto:[email protected]>>
To: "René Ruppert" 
<[email protected]<mailto:[email protected]>>
Cc: [email protected]<mailto:[email protected]>
Sent: Thursday, November 10, 2011 5:39:17 AM

Subject: Re: [MonoTouch] LeftBarButton Color
If anybody is interested, i solved it this way:

this.NavigationItem.LeftBarButtonItem = new UIBarButtonItem(new 
UIImageView(tt));

this.NavigationItem.LeftBarButtonItem.Clicked+=delegate{

System.Diagnostics.Debug.WriteLine("back");

goback();

} ;



But the Clicked Event is not beeing called,...

_______________________________________________
MonoTouch mailing list
[email protected]<mailto:[email protected]>
http://lists.ximian.com/mailman/listinfo/monotouch


_______________________________________________
MonoTouch mailing list
[email protected]<mailto:[email protected]>
http://lists.ximian.com/mailman/listinfo/monotouch



--





Mit freundlichem Gruß,

Andreas Plötzeneder
CEO
ihr ploetzeneder it-solutions Team
Mobile 
Development<http://www.ploetzeneder-it.com/softwareentwicklung/mobile-development.html>
 - 
Desktopanwendungen<http://www.ploetzeneder-it.com/softwareentwicklung/desktop-anwendungen.html>
 - 
Webanwendungen<http://www.ploetzeneder-it.com/softwareentwicklung/web-anwendungen.html>
Tel:  +43 720 30 30 24 10
Fax: +43 720 30 30 24 20
Email: [email protected]<mailto:[email protected]>
web:   http://www.ploetzeneder-it.com<http://www.ploetzeneder-it.com/>

Der Inhalt dieser E-Mail samt aller Anhänge ist vertraulich und ausschließlich 
für den Adressaten bestimmt. Wenn Sie nicht der vorgesehene Adressat dieser 
E-Mail oder dessen Vertreter sind, so löschen sie diese bitte und informieren 
Sie den Absender. Jede Form der Verbreitung oder Veröffentlichung der E-Mail, 
sei es in ihrer Gesamtheit oder in Teilen, die nicht ihrem Zweck dient, ist 
unzulässig. Das Internet kann die Unversehrtheit dieser Mitteilung nicht 
garantieren. ploetzeneder it-solutions übernimmt daher keine Haftung, falls die 
E-Mail geändert wurde.



_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to