Example #1
0
        public AddPluginWidget(PluginType type)
        {
            PluginType = type;
            HeightRequest = PluginWidget.Size.Height;
            WidthRequest = PluginWidget.Size.Width;

            Margin = PluginWidget.Margin;

            Cursor = CursorType.Hand;

            Label l = new Label("Add new " + type.GetName());
            //l.TextColor = type.GetColor();

            l.TextAlignment = Alignment.Center;

            AddChild(l, new Rectangle(0, 0, PluginWidget.Size.Width, PluginWidget.Size.Height));

            BackgroundColor = type.GetBGColor();

            if (App.InitDropShadow != null)
                App.InitDropShadow(this);

            if (App.InitOpacityAnimation != null)
            {
                Opacity = 0;
                App.InitOpacityAnimation(this);
            }
        }