public override void ViewDidLoad() { base.ViewDidLoad(); TitleLabel.SetBinding(v => v.Text, ViewModel.Title); DescriptionLabel.SetBinding(v => v.Text, ViewModel.Description); }
public WorkoutChoiceTab() { InitializeComponent(); WidthRequest = (DeviceDisplay.MainDisplayInfo.Width - Margin.HorizontalThickness) / 11; TitleLabel.SetBinding(Label.TextProperty, new Binding("Text", source: this)); Pancake.BackgroundColor = Color.Transparent; TitleLabel.FontAttributes = FontAttributes.None; TitleLabel.TextColor = Color.FromHex("#A2A7B3"); }
public GlyphIconStatAlignRight() { InitializeComponent(); TitleLabel.SetBinding(Label.TextProperty, new Binding(nameof(TitleLabelText), source: this)); TitleLabel.SetBinding(Label.FontSizeProperty, new Binding(nameof(TitleLabelFontSize), source: this)); TitleLabel.SetBinding(Label.FontAttributesProperty, new Binding(nameof(TitleLabelFontAttributes), source: this)); TitleLabel.SetBinding(Label.TextColorProperty, new Binding(nameof(TitleLabelTextColor), source: this)); ValueLabel.SetBinding(Label.TextProperty, new Binding(nameof(ValueLabelText), source: this)); ValueLabel.SetBinding(Label.FontSizeProperty, new Binding(nameof(ValueLabelFontSize), source: this)); ValueLabel.SetBinding(Label.FontAttributesProperty, new Binding(nameof(ValueLabelFontAttributes), source: this)); ValueLabel.SetBinding(Label.TextColorProperty, new Binding(nameof(ValueLabelTextColor), source: this)); GlyphIcon.SetBinding(FontImageSource.GlyphProperty, new Binding(nameof(GlyphIconGlyph), source: this)); GlyphIcon.SetBinding(FontImageSource.FontFamilyProperty, new Binding(nameof(GlyphIconFontFamily), source: this)); GlyphIcon.SetBinding(FontImageSource.SizeProperty, new Binding(nameof(GlyphIconSize), source: this)); GlyphIcon.SetBinding(FontImageSource.ColorProperty, new Binding(nameof(GlyphIconColor), source: this)); }
public TodoItemsView() { TodoListView.ItemTemplate = new DataTemplate(typeof(TodoItemsCell)); TitleLabel.SetBinding(Label.TextProperty, nameof(TodoItemsViewModel.ListTitle)); }
public CustomShellPage() { InitializeComponent(); TitleLabel.SetBinding(Label.TextProperty, new Binding(nameof(this.Title), source: this)); SettingButton.SetBinding(Button.IsVisibleProperty, new Binding(nameof(IsSettingsButtonVisible), source: this)); }