mirror of
https://github.com/bitwarden/mobile
synced 2025-12-16 08:13:20 +00:00
* [SG-174] Add new login request services to Api * [SG-174] Fix typo * [SG-174] Enable login with device button. * [SG-174] Add new login request page and viewmodel * [SG-174] Add new text resources * [SG-174] Add new RSA Decrypt method with string param * [SG-174] Change create login request method * [SG-174] Add new method to auth service to login passwordless * [SG-174] Refactor login helper method to work with passwordless * [SG-174] Fix service registration * [SG-174] Update token request to support passwordless * [SG-174] Update Api service with passwordless methods * [SG-174] Fix App csproj references * [SG-174] Remove unnecessary argument * [SG-174] dotnet format * [SG-174] Fixed iOS Extensions * [SG-174] Change Command to ICommand * [SG-174] Change Gesture Recognizer to Command * [SG-174] Fix close action * [SG-174] Code format * [SG-174] Fix android frame shadow bug * [SG-174] PR fixes
76 lines
2.5 KiB
C#
76 lines
2.5 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Windows.Input;
|
|
using Bit.Core.Models.Domain;
|
|
using Xamarin.Forms;
|
|
using Xamarin.Forms.Xaml;
|
|
|
|
namespace Bit.App.Controls
|
|
{
|
|
public partial class IconLabelButton : Frame
|
|
{
|
|
public static readonly BindableProperty IconProperty = BindableProperty.Create(
|
|
nameof(Icon), typeof(string), typeof(IconLabelButton));
|
|
|
|
public static readonly BindableProperty LabelProperty = BindableProperty.Create(
|
|
nameof(Label), typeof(string), typeof(IconLabelButton));
|
|
|
|
public static readonly BindableProperty ButtonCommandProperty = BindableProperty.Create(
|
|
nameof(ButtonCommand), typeof(ICommand), typeof(IconLabelButton));
|
|
|
|
public static readonly BindableProperty IconLabelColorProperty = BindableProperty.Create(
|
|
nameof(IconLabelColor), typeof(Color), typeof(IconLabelButton), Color.White);
|
|
|
|
public static readonly BindableProperty IconLabelBackgroundColorProperty = BindableProperty.Create(
|
|
nameof(IconLabelBackgroundColor), typeof(Color), typeof(IconLabelButton), Color.White);
|
|
|
|
public static readonly BindableProperty IconLabelBorderColorProperty = BindableProperty.Create(
|
|
nameof(IconLabelBorderColor), typeof(Color), typeof(IconLabelButton), Color.White);
|
|
|
|
public IconLabelButton()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
public string Icon
|
|
{
|
|
get => GetValue(IconProperty) as string;
|
|
set => SetValue(IconProperty, value);
|
|
}
|
|
|
|
public string Label
|
|
{
|
|
get => GetValue(LabelProperty) as string;
|
|
set => SetValue(LabelProperty, value);
|
|
}
|
|
|
|
public ICommand ButtonCommand
|
|
{
|
|
get => GetValue(ButtonCommandProperty) as ICommand;
|
|
set => SetValue(ButtonCommandProperty, value);
|
|
}
|
|
|
|
public Color IconLabelColor
|
|
{
|
|
get { return (Color)GetValue(IconLabelColorProperty); }
|
|
set { SetValue(IconLabelColorProperty, value); }
|
|
}
|
|
|
|
public Color IconLabelBackgroundColor
|
|
{
|
|
get { return (Color)GetValue(IconLabelBackgroundColorProperty); }
|
|
set { SetValue(IconLabelBackgroundColorProperty, value); }
|
|
}
|
|
|
|
public Color IconLabelBorderColor
|
|
{
|
|
get { return (Color)GetValue(IconLabelBorderColorProperty); }
|
|
set { SetValue(IconLabelBorderColorProperty, value); }
|
|
}
|
|
}
|
|
}
|
|
|