Exemple #1
0
        public GadgetView(TextureRegistry texRegistry, Gadget gadget, WindowSpace space)
        {
            TextureRegistry = texRegistry;
            Gadget          = gadget;
            Space           = space;

            ToolTip = gadget.Command;

            HorizontalAlignment = HorizontalAlignment.Left;
            VerticalAlignment   = VerticalAlignment.Top;
            UseLayoutRounding   = true;
            SnapsToDevicePixels = true;

            Arrange();

            IsVisibleChanged += GadgetView_IsVisibleChanged;
            MouseEnter       += GadgetView_MouseEnter;
            MouseLeave       += GadgetView_MouseLeave;

            Gadget.OnPropertyChanged(VisualChange, "Hidden", "Rectangle1024");
        }