On 03.11.2011 16:13, Andreas Ploetzeneder wrote: > Hello, > I want to color the textcolor of the leftbarbutton, when going back.
You probably want to set the color of the BackBarButtonItem. A back bar button is that one with the left-pointing arrow. Robert > > i tried the following: > > var textAttr = new UITextAttributes(); > > textAttr.TextColor = UIColor.Red; > > this > .NavigationItem.LeftBarButtonItem.SetTitleTextAttributes(textAttr,UIControlState.Application); > > this > .NavigationItem.LeftBarButtonItem.SetTitleTextAttributes(textAttr,UIControlState.Disabled); > > this > .NavigationItem.LeftBarButtonItem.SetTitleTextAttributes(textAttr,UIControlState.Highlighted); > > this > .NavigationItem.LeftBarButtonItem.SetTitleTextAttributes(textAttr,UIControlState.Normal); > > this > .NavigationItem.LeftBarButtonItem.SetTitleTextAttributes(textAttr,UIControlState.Reserved); > > this > .NavigationItem.LeftBarButtonItem.SetTitleTextAttributes(textAttr,UIControlState.Selected); > > > Any ideas? > > > > 2011/10/23 Robert Jordan<[email protected]> > >> On 23.10.2011 13:41, Andreas Ploetzeneder wrote: >> >>> ok, great, maybe you can help me 3 more things :) >>> 1. how can i add password /username if the folder https protected with >>> password? >>> >> >> var srv = new SomeWebReference(); >> srv.Credentials = new NetworkCredential("name", "password"); >> .... >> >> >> 2. have you got a code for an uinavigationbar, to recolor it, that the >>> fonttext and buttontext is all dark instead of white.... >>> >> >> Wenn du das aus einem ViewController heraus machen willst, der auf >> einen NavigationController gepusht wird: >> >> public override void ViewDidLoad () >> { >> base.ViewDidLoad (); >> >> // Hintergrundfarbe: >> NavigationController.**NavigationBar.TintColor = UIColor.Red; >> >> // Texteigenschaften: >> var textAttr = new UITextAttributes(); >> textAttr.TextColor = UIColor.White; >> >> // Texteigenschaften des Titels setzen: >> NavigationController.**NavigationBar >> .SetTitleTextAttributes(**textAttr); >> >> } >> >> >> >> 3. do you know a monotouch lib for graphs? >>> >> >> Z.B. CorePlot: >> http://tirania.org/monomac/**archive/2011/Jan-01.html<http://tirania.org/monomac/archive/2011/Jan-01.html> >> >> >> 4. have you got a donate button somewhere...thx for your great help! >>> >> >> Ne, das mache ich nur zum Spaß :) >> >> Bitte beim nächsten mal an die Mailinglist schreiben, damit >> andere auch was davon haben. >> >> ciao >> Robert >> >> >> >> >>> >>> >>> 2011/10/23 Robert Jordan<[email protected]> >>> >>> On 23.10.2011 13:25, Andreas Ploetzeneder wrote: >>>> >>>>> hi, >>>>> how can i programatically change the url of a webreference during >>>>> runtime >>>>> >>>> >>>> var srv = new SomeWebReference(); >>>> srv.Url = "http://another.uri.comes.here**"; >>>> >>>> Robert >>>> >>>> ______________________________**_________________ >>>> MonoTouch mailing list >>>> [email protected] >>>> http://lists.ximian.com/**mailman/listinfo/monotouch<http://lists.ximian.com/mailman/listinfo/monotouch> >>>> >>>> >>> >>> >>> >> > > _______________________________________________ MonoTouch mailing list [email protected] http://lists.ximian.com/mailman/listinfo/monotouch
