/
SergeyReHub
/
WPF_Project_TeraTeams
Обзор
Документация
Войти
/
SergeyReHub
/
WPF_Project_TeraTeams
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
CustomControls/BindablePasswordBoxNotSecure.xaml.cs
41 строка
1 KB
SergeyReHub
Code_commit
08 дек 2024, 11:43
08 дек 2024, 11:43
33f488f
Код
Авторство
О чём код?
using CursovayaRybakov.ViewModel; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Navigation; using System.Windows.Shapes; namespace CursovayaRybakov.CustomControls { /// <summary> /// Логика взаимодействия для BindablePasswordBoxNotSecure.xaml /// </summary> public partial class BindablePasswordBoxNotSecure : UserControl { public static readonly DependencyProperty PasswordProperty = DependencyProperty.Register("Password", typeof(string), typeof(BindablePasswordBoxNotSecure)); public string Password { get { return (string)GetValue(PasswordProperty); } set { SetValue(PasswordProperty, value); } } public BindablePasswordBoxNotSecure() { InitializeComponent(); PasswordReg.PasswordChanged += OnPasswordChanged; } private void OnPasswordChanged(object sender, RoutedEventArgs e) { Password = PasswordReg.Password; } } }