I found the solution :

UIImage background = UIImage.FromFile(@"Images/texture.png");
UIColor myBgColor = UIColor.FromPatternImage (background);

                        
                        // create a view        with the bgcolor        
                        UIView view = new UIView();
                        view.Frame = this.View.Frame;
                        view.BackgroundColor = myBgColor;
                        //assign the view to the backgroundview
                        this.TableView.BackgroundView = view;

Thanks



--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/Monotouch-6-Basic-code-crashed-tp4657121p4657126.html
Sent from the MonoTouch mailing list archive at Nabble.com.
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to