Beispiel #1
0
        private UIElement CreateGif(string picName)
        {
            try
            {
                GifImageLib.GifImage gif = new GifImageLib.GifImage();
                gif.Source = picName;
                //gif.Margin = new Thickness(5, 5, 5, 5);

                //imageList.Items.Add(gif);

                //gif.MouseWheel += lbMatFile_MouseWheel;
                return(gif);
            }
            catch (Exception e)
            {
                TextBox msg = new TextBox();
                msg.Text   = "error:" + e.ToString();
                msg.Margin = new Thickness(5, 5, 5, 5);

                return(null);
            }
        }
        private UIElement CreateGif(string picName)
        {
            try
            {
                GifImageLib.GifImage gif = new GifImageLib.GifImage();
                gif.Source = picName;
                //gif.Margin = new Thickness(5, 5, 5, 5);

                //imageList.Items.Add(gif);

                //gif.MouseWheel += lbMatFile_MouseWheel;
                return gif;
            }
            catch (Exception e)
            {
                TextBox msg = new TextBox();
                msg.Text = "error:" + e.ToString();
                msg.Margin = new Thickness(5, 5, 5, 5);

                return null;
            }
        }