You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
909 B
30 lines
909 B
namespace Stim;
|
|
public partial class UserInfo : ContentView
|
|
{
|
|
public static readonly BindableProperty BindProperty =
|
|
BindableProperty.Create(nameof(Bind), typeof(string), typeof(UserInfo), string.Empty, propertyChanged: OnBindChanged);
|
|
|
|
public string Bind
|
|
{
|
|
get { return (string)GetValue(BindProperty); }
|
|
set { SetValue(BindProperty, value); }
|
|
}
|
|
|
|
private static void OnBindChanged(BindableObject bindable, object oldValue, object newValue)
|
|
{
|
|
var contentView = (UserInfo)bindable;
|
|
contentView.OnBindChanged((string)oldValue, (string)newValue);
|
|
}
|
|
|
|
public UserInfo()
|
|
{
|
|
InitializeComponent();
|
|
BindingContext = ((App)App.Current).Manager;
|
|
}
|
|
|
|
private void OnBindChanged(string oldValue, string newValue)
|
|
{
|
|
// Réagissez aux changements de la propriété de liaison ici
|
|
}
|
|
}
|