Exemplo n.º 1
0
        private void MyButton_Click(object sender, RoutedEventArgs e)
        {
            //CarDependency" 라는 리소스 검색
            CarDependencyProperty dpSample = TryFindResource("CarDependency") as CarDependencyProperty;

            MessageBox.Show(dpSample.MyCar);
        }
Exemplo n.º 2
0
        private void MyButton_Click(object sender, RoutedEventArgs e)
        {
            CarDependencyProperty cdr = TryFindResource("CarDependency") as CarDependencyProperty;

            MessageBox.Show(cdr.MyCar);
        }