using System; using System.Collections.Generic; using System.Diagnostics; 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 WPFBeginner.Controls { /// /// MemberInputPanel.xaml에 대한 상호 작용 논리 /// public partial class MemberInputPanel : UserControl { public static readonly DependencyProperty MemberNameProperty = DependencyProperty.Register(nameof(MemberName), typeof(string), typeof(MemberInputPanel), new FrameworkPropertyMetadata(){BindsTwoWayByDefault = true}); public string MemberName { get => (string)GetValue(MemberNameProperty); set => SetValue(MemberNameProperty, value); } public static readonly DependencyProperty EmployeeNoProperty = DependencyProperty.Register(nameof(EmployeeNo), typeof(string), typeof(MemberInputPanel), new FrameworkPropertyMetadata() { BindsTwoWayByDefault = true }); public string EmployeeNo { get => (string)GetValue(EmployeeNoProperty); set => SetValue(EmployeeNoProperty, value); } public static readonly DependencyProperty CallProperty = DependencyProperty.Register(nameof(Call), typeof(string), typeof(MemberInputPanel), new FrameworkPropertyMetadata() { BindsTwoWayByDefault = true }); public string Call { get => (string)GetValue(CallProperty); set => SetValue(CallProperty, value); } public static readonly DependencyProperty EmailProperty = DependencyProperty.Register(nameof(Email), typeof(string), typeof(MemberInputPanel), new FrameworkPropertyMetadata() { BindsTwoWayByDefault = true }); public string Email { get => (string)GetValue(EmailProperty); set => SetValue(EmailProperty, value); } public MemberInputPanel() { InitializeComponent(); } } }