Example #1
0
        protected static void UploadUriStringChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            FileUploadControl fuc = sender as FileUploadControl;
            string            val = (string)e.NewValue;

            fuc.UploadUrl = new Uri(val);
        }
Example #2
0
        protected static void AllowThumbnailChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            FileUploadControl fuc = sender as FileUploadControl;

            if (fuc.displayThumbailChkBox != null)
            {
                if ((bool)e.NewValue)
                {
                    fuc.displayThumbailChkBox.Visibility = Visibility.Visible;
                }
                else
                {
                    fuc.displayThumbailChkBox.Visibility = Visibility.Collapsed;
                }
            }
        }