private void prepareViews() { if (TraitCollection.HorizontalSizeClass == UIUserInterfaceSizeClass.Regular) { PreferredContentSize = new CGSize(0, desiredIpadHeight); } //This is needed for the ImageView.TintColor bindings to work foreach (var button in getButtons()) { button.SetImage( button.ImageForState(UIControlState.Normal) .ImageWithRenderingMode(UIImageRenderingMode.AlwaysTemplate), UIControlState.Normal ); button.TintColor = Colors.StartTimeEntry.InactiveButton.ToNativeColor(); } TimeInput.TintColor = Colors.StartTimeEntry.Cursor.ToNativeColor(); DescriptionTextView.TintColor = Colors.StartTimeEntry.Cursor.ToNativeColor(); DescriptionTextView.BecomeFirstResponder(); Placeholder.ConfigureWith(DescriptionTextView); Placeholder.Text = Resources.StartTimeEntryPlaceholder; prepareTimeViews(); }
private void prepareViews() { //This is needed for the ImageView.TintColor bindings to work foreach (var button in getButtons()) { button.SetImage( button.ImageForState(UIControlState.Normal) .ImageWithRenderingMode(UIImageRenderingMode.AlwaysTemplate), UIControlState.Normal ); button.TintColor = Color.StartTimeEntry.InactiveButton.ToNativeColor(); } TimeInput.TintColor = Color.StartTimeEntry.Cursor.ToNativeColor(); DescriptionTextView.TintColor = Color.StartTimeEntry.Cursor.ToNativeColor(); DescriptionTextView.BecomeFirstResponder(); Placeholder.ConfigureWith(DescriptionTextView); Placeholder.Text = Resources.StartTimeEntryPlaceholder; prepareTimeViews(); }