반응형 UserControl1 Custom UserControl의 바인딩 처리 단순히 ON/OFF 상태를 표시할 수 있는 UserControl을 하나 만들었다. // Code behind public partial class LEDControl : UserControl { public bool IsOn { get { return (bool)GetValue(IsOnProperty); } set { SetValue(IsOnProperty, value); } } public static readonly DependencyProperty IsOnProperty = DependencyProperty.Register("IsOn", typeof(bool), typeof(LEDControl), new FrameworkPropertyMetadata(default(bool))); public LED.. 2015. 9. 8. 이전 1 다음