Pourquoi, pull, ça voulait pas pull ?
continuous-integration/drone/push Build was killed
Details
continuous-integration/drone/push Build was killed
Details
parent
a6f0abbecc
commit
1c06b2cef1
@ -1,28 +1,43 @@
|
|||||||
|
using Microsoft.VisualBasic;
|
||||||
|
using CommunityToolkit.Maui.Views;
|
||||||
|
|
||||||
namespace Stim;
|
namespace Stim;
|
||||||
public partial class UserInfo : ContentView
|
public partial class UserInfo : ContentView
|
||||||
{
|
{
|
||||||
public static readonly BindableProperty BindProperty =
|
public bool IsPswd
|
||||||
BindableProperty.Create(nameof(Bind), typeof(string), typeof(UserInfo), string.Empty, propertyChanged: OnBindChanged);
|
|
||||||
|
|
||||||
public string Bind
|
|
||||||
{
|
{
|
||||||
get { return (string)GetValue(BindProperty); }
|
get => (bool)GetValue(IsPswdProperty);
|
||||||
set { SetValue(BindProperty, value); }
|
set => SetValue(IsPswdProperty, value);
|
||||||
}
|
}
|
||||||
|
public static readonly BindableProperty IsPswdProperty =
|
||||||
private static void OnBindChanged(BindableObject bindable, object oldValue, object newValue)
|
BindableProperty.Create(nameof(Name), typeof(bool), typeof(UserInfo), false);
|
||||||
|
public int LabelHeight
|
||||||
{
|
{
|
||||||
var contentView = (UserInfo)bindable;
|
get => (int)GetValue(LabelHeightProperty);
|
||||||
|
set => SetValue(LabelHeightProperty, value);
|
||||||
}
|
}
|
||||||
|
public static readonly BindableProperty LabelHeightProperty =
|
||||||
public UserInfo()
|
BindableProperty.Create(nameof(Name), typeof(int), typeof(UserInfo), 32);
|
||||||
|
public event EventHandler PopUp;
|
||||||
|
public void popUp(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
PopUp?.Invoke(sender, e);
|
||||||
BindingContext = ((App)App.Current).Manager;
|
|
||||||
}
|
}
|
||||||
|
public string Name
|
||||||
private void Button_Clicked(object sender, EventArgs e)
|
|
||||||
{
|
{
|
||||||
|
get => (string)GetValue(NameProperty);
|
||||||
|
set => SetValue(NameProperty, value);
|
||||||
|
}
|
||||||
|
public static readonly BindableProperty NameProperty =
|
||||||
|
BindableProperty.Create(nameof(Name), typeof(string), typeof(UserInfo), "Erreur");
|
||||||
|
|
||||||
|
public UserInfo()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
if (IsPswd)
|
||||||
|
{
|
||||||
|
Label.IsVisible = false;
|
||||||
|
}
|
||||||
|
else Label.IsVisible = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in new issue