public override View GetSampleContent(Android.Content.Context con) { if (IsTabletDevice(con)) { NumericTextBox_Tab tab = new NumericTextBox_Tab(); return(tab.GetSampleContent(con)); } else { mobile = new NumericTextBox_Mobile(); return(mobile.GetSampleContent(con)); } }
public NumericTextBox() { if ((UIDevice.CurrentDevice).UserInterfaceIdiom == UIUserInterfaceIdiom.Pad) { this.AddSubview(new NumericTextBox_Tablet()); } else { phoneView = new NumericTextBox_Mobile(); this.AddSubview(phoneView); this.OptionView = phoneView.option; } }