コード例 #1
0
        private static void OnHeaderChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            UserTemplate instance = d as UserTemplate;

            instance.HeaderTxtblck.Text = e.NewValue.ToString();
        }
コード例 #2
0
        private static void OnTextChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            UserTemplate instance = d as UserTemplate;

            instance.DescriptionTxtblck.ToolTip = instance.DescriptionTxtblck.Text = e.NewValue.ToString();
        }