public override void ViewDidLoad() { base.ViewDidLoad(); NavigationItem.SetRightBarButtonItem(new UIBarButtonItem("Tweet", UIBarButtonItemStyle.Bordered, (sender, e) => ViewModel.DoShareGeneral()), false); // Perform any additional setup after loading the view, typically from a nib. Button1.SetImage(UIImage.FromFile("ConfResources/Images/appbar.calendar.png"), UIControlState.Normal); Button2.SetImage(UIImage.FromFile("ConfResources/Images/appbar.calendar.png"), UIControlState.Normal); Button3.SetImage(UIImage.FromFile("ConfResources/Images/appbar.calendar.png"), UIControlState.Normal); Button4.SetImage(UIImage.FromFile("ConfResources/Images/appbar.people.png"), UIControlState.Normal); Button5.SetImage(UIImage.FromFile("ConfResources/Images/appbar.database.png"), UIControlState.Normal); this.AddBindings(new Dictionary <object, string>() { { Label1, "Text TextSource,Converter=Language, ConverterParameter='ByDay'" }, { Label2, "Text TextSource,Converter=Language, ConverterParameter='BySpeaker'" }, { Label3, "Text TextSource,Converter=Language, ConverterParameter='ByTopic'" }, { Button1, "Title TextSource,Converter=Language, ConverterParameter='Thursday'" }, { Button2, "Title TextSource,Converter=Language, ConverterParameter='Friday'" }, { Button3, "Title TextSource,Converter=Language, ConverterParameter='Saturday'" }, { Button4, "Title TextSource,Converter=Language, ConverterParameter='Speakers'" }, { Button5, "Title TextSource,Converter=Language, ConverterParameter='Topics'" }, }); this.AddBindings(new Dictionary <object, string>() { { Button1, "TouchUpInside ShowThursdayCommand" }, { Button2, "TouchUpInside ShowFridayCommand" }, { Button3, "TouchUpInside ShowSaturdayCommand" }, { Button4, "TouchUpInside ShowSpeakersCommand" }, { Button5, "TouchUpInside ShowTopicsCommand" }, }); }
public override void ViewDidLoad() { base.ViewDidLoad(); NavigationItem.SetRightBarButtonItem(new UIBarButtonItem("Tweet", UIBarButtonItemStyle.Bordered, (sender, e) => ViewModel.ShareGeneralCommand.Execute()), false); #warning Button1 and Button2 need removing from the NIB! Button3.SetImage(UIImage.FromFile("ConfResources/Images/appbar.calendar.png"), UIControlState.Normal); Button4.SetImage(UIImage.FromFile("ConfResources/Images/appbar.people.png"), UIControlState.Normal); Button5.SetImage(UIImage.FromFile("ConfResources/Images/appbar.cow.png"), UIControlState.Normal); this.AddBindings(new Dictionary <object, string>() { { Label1, "{'Text':{'Path':'TextSource','Converter':'Language','ConverterParameter':'ByTime'}}" }, { Label2, "{'Text':{'Path':'TextSource','Converter':'Language','ConverterParameter':'BySpeaker'}}" }, { Label3, "{'Text':{'Path':'TextSource','Converter':'Language','ConverterParameter':'ByTopic'}}" }, { Button3, "{'Title':{'Path':'TextSource','Converter':'Language','ConverterParameter':'Saturday'}}" }, { Button4, "{'Title':{'Path':'TextSource','Converter':'Language','ConverterParameter':'Speakers'}}" }, { Button5, "{'Title':{'Path':'TextSource','Converter':'Language','ConverterParameter':'Topics'}}" }, }); this.AddBindings(new Dictionary <object, string>() { { Button3, "{'TouchDown':{'Path':'ShowSessionsCommand'}}" }, { Button4, "{'TouchDown':{'Path':'ShowSpeakersCommand'}}" }, { Button5, "{'TouchDown':{'Path':'ShowTopicsCommand'}}" }, }); }