public MDialog(EvasObject parent) : base(parent) { MaterialComponents.VerifyComponentEnabled(this); AlignmentX = 0.5; AlignmentY = 0.5; }
public MRadioButton(EvasObject parent) : base(parent) { MaterialComponents.VerifyComponentEnabled(this); Style = Styles.RadioButton.Style; MColors.AddColorSchemeComponent(this); }
public MSnackBars(EvasObject parent) : base(parent) { MaterialComponents.VerifyComponentEnabled(this); Style = Styles.Popup.SnackBars; Orientation = PopupOrientation.Bottom; MColors.AddColorSchemeComponent(this); }
public MMenus(EvasObject parent) : base(parent) { MaterialComponents.VerifyComponentEnabled(this); Style = Styles.Material; IsHorizontal = false; AutoHide = true; MColors.AddColorSchemeComponent(this); }
public MTabs(EvasObject parent) : base(parent) { MaterialComponents.VerifyComponentEnabled(this); Style = Styles.Material; _toolbar.SelectionMode = ToolbarSelectionMode.Always; MColors.AddColorSchemeComponent(this); }
public MNavigationDrawer(EvasObject parent) : base(parent) { MaterialComponents.VerifyComponentEnabled(this); Initialize(parent); SetLayoutCallback(() => { UpdateChildGeometry(); }); }
public MNavigationView(EvasObject parent) : base(parent) { MaterialComponents.VerifyComponentEnabled(this); Initialize(parent); _box.SetLayoutCallback(() => { UpdateChildGeometry(); }); MColors.AddColorSchemeComponent(this); }
public static bool IsUsingMTooltip(this EvasObject control) { MaterialComponents.VerifyServiceEnabled((TargetProfile.Mobile | TargetProfile.Wearable)); if (control == null) { throw new ArgumentNullException(nameof(control)); } return(control.TooltipStyle == Styles.Material && control.TooltipOrientation == TooltipOrientation.Bottom); }
public static void UseMTooltip(this EvasObject control) { MaterialComponents.VerifyServiceEnabled((TargetProfile.Mobile | TargetProfile.Wearable)); if (control == null) { throw new ArgumentNullException(nameof(control)); } control.TooltipStyle = Styles.Material; control.TooltipOrientation = TooltipOrientation.Bottom; }
public MFloatingActionButton(MConformant conformant) { MaterialComponents.VerifyComponentEnabled(this); _button = new Button(conformant.FloatingLayout) { Style = Styles.Button.FloatingButton, }; _button.Clicked += (s, e) => { Clicked?.Invoke(this, EventArgs.Empty); }; _box = conformant.FloatingLayout as Box; _box.PackEnd(_button); _box.RepeatEvents = true; _box.SetLayoutCallback(() => { }); MColors.AddColorSchemeComponent(this); }
public MBanner(EvasObject parent) : base(parent) { MaterialComponents.VerifyComponentEnabled(this); AlignmentX = -1; AlignmentY = 0; WeightX = 1; WeightY = 0; _actionButton = new MPopupButton(this); _actionButton.Clicked += (s, e) => { ActionClicked?.Invoke(this, EventArgs.Empty); }; SetStyle(Styles.Banner.SingleLine); SetPartContent(Parts.Popup.ActionButton, _actionButton); }
public MAppBar(EvasObject parent) : base(parent) { MaterialComponents.VerifyComponentEnabled(this); AlignmentX = -1; WeightX = 1; MinimumHeight = DefaultValues.AppBar.Height; _box = new Box(this) { AlignmentX = -1, AlignmentY = -1, WeightX = 1, WeightY = 1 }; SetContent(_box); _naviButton = new MButton(_box); _items.CollectionChanged += OnItemsCollectionChanged; _box.SetLayoutCallback(() => { UpdateChildrenGeometry(); }); MColors.AddColorSchemeComponent(this); }
public MModalSheets(MConformant conformant, MModalSheetsDirection direction) : base(conformant) { MaterialComponents.VerifyComponentEnabled(this); _scrim = new Box(conformant) { BackgroundColor = Color.Transparent, RepeatEvents = true, }; Style = Styles.Material; SetScrollable(true); UpdateDirection(direction); AlignmentX = -1; AlignmentY = -1; WeightX = 1; WeightY = 1; Toggled += (s, e) => { UpdateScrim(); }; IsOpen = false; BackgroundColor = Color.White; _scrim.PackEnd(this); conformant.SetPartContent(Parts.Layout.Sheets, _scrim); }
public MCheckBox(EvasObject parent) : base(parent) { MaterialComponents.VerifyComponentEnabled(this); Style = Styles.CheckBox.Style; MColors.AddColorSchemeComponent(this); }
public MCard(EvasObject parent) : base(parent) { MaterialComponents.VerifyComponentEnabled(this); }