MonoMobile.Views.DialogViewController.ConfigureBackgroundImage C# (CSharp) Method

ConfigureBackgroundImage() private method

private ConfigureBackgroundImage ( ) : void
return void
		private void ConfigureBackgroundImage()
		{
			if (BackgroundColor == null)
			{
				if (BackgroundImage == null && Theme != null)
				{
					if (Theme.BackgroundUri != null)
					{
						var imageUri = Theme.BackgroundUri;
						BackgroundImage = ImageLoader.DefaultRequestImage(imageUri, null);
					}
					
					if (Theme.BackgroundColor != null)
					{
						BackgroundColor = Theme.BackgroundColor;
					}
	
					if (Theme.BackgroundImage != null)
					{
						BackgroundImage = Theme.BackgroundImage;
					}
				}
		
				if (BackgroundImage != null)
				{
					BackgroundColor = UIColor.FromPatternImage(BackgroundImage);
				}
			}
				
			if (BackgroundColor != null)
			{
				if (TableView != null)
				{
					if (TableView.RespondsToSelector(new Selector("backgroundView")))
					{
						//if (TableView.BackgroundView == null)
							TableView.BackgroundView = new UIView(); 
	
						TableView.BackgroundView.Opaque = false;
						TableView.BackgroundColor = UIColor.Clear;
					}

					if (ParentViewController != null && !IsModal)
					{
						TableView.BackgroundColor = UIColor.Clear;
						ParentViewController.View.BackgroundColor = BackgroundColor;
					} 
					else
					{
						TableView.BackgroundColor = BackgroundColor;
					}
				}
			}
		}