Esempio n. 1
0
       public void Peste()
        {
           
            #region BackgroundCanvas
            Canvas background = new Canvas()
            {
                Width = 663,
                Height = 100,
                Background = new SolidColorBrush(Colors.Black),
                Opacity = 0.5,
                
            };
            #endregion

            c.Children.Add(background);
            Canvas.SetTop(background, 370);
            Canvas.SetLeft(background, 50);
            MeniuPicks p = new MeniuPicks(c, 663, 100, "", 1, 50, 370,md);

            c.Children.Add(p);
        }
Esempio n. 2
0
        public ButonAnimat(Canvas c, String img, double top, double left, bool showAnimals, MeniuPicks picks, string text)
        {
            m_c = c;
            m_top = top;
            m_left = left;
            m_selectAnimals = showAnimals;
            m_meniuPicks = picks;
            m_text = text;
            m_image = new Image()
            {
                Source = new BitmapImage(
                    new Uri(
                        img,
                        UriKind.Relative
                        )
                        ),
                Width = 38,
                Height = 21
            };

            m_canvas = new Canvas()
            {
                Background = new SolidColorBrush(Color.FromArgb(0xFF, 0xcc, 0xdf, 0xf5)),
                Opacity = .46,
                Width = 50,
                Height = 50,
                Clip = new RectangleGeometry()
                {
                    RadiusX = 10,
                    RadiusY = 10,
                    Rect = new Rect(0, 0, 150, 40)
                },

            };

            initialize();
            
        }
Esempio n. 3
0
        void Padure_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
            #region BackgroundCanvas
            Canvas background = new Canvas()
            {
                Width = 663,
                Height = 100,
                Background = new SolidColorBrush(Colors.Black),
                Opacity = 0.5
            };
            #endregion
            canv.Children.Add(background);
            Canvas.SetTop(background, 370);
            Canvas.SetLeft(background, 50);
            MeniuPicks p = new MeniuPicks(canv, 663, 100, "", 1, 50, 370);

            canv.Children.Add(p);
        }