コード例 #1
0
        public static void IsShowImageListPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            MovieGridUserControl control = d as MovieGridUserControl;

            if (control == null)
            {
                return;
            }
            control.lb_list.Visibility  = (bool)e.NewValue ? Visibility.Visible : Visibility.Collapsed;
            control.lb_list1.Visibility = (bool)e.NewValue ? Visibility.Collapsed : Visibility.Visible;
        }
コード例 #2
0
        public static void DataSourcePropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            MovieGridUserControl control = d as MovieGridUserControl;

            if (control == null)
            {
                return;
            }

            control.lb_list.ItemsSource  = e.NewValue as IEnumerable;
            control.lb_list1.ItemsSource = e.NewValue as IEnumerable;
        }