Beispiel #1
0
        private void RegisterToStickyWindows()
        {
            //  1. Try to get startup options passed from GD. Create our default options if there aren't any passed options. Make your app a sticky flat window with title Clients
            //  Hint - you can use the placement object for your default config and you can get the startup options from Glue.StickyWindows.GetStartupOptions();
            var gwOptions = App.Glue.GlueWindows.GetStartupOptions();

            if (gwOptions == null)
            {
                gwOptions = new GlueWindowOptions();
                var placement = new GlueWindowScreenPlacement();
                var bounds    = new GlueWindowBounds
                {
                    Width  = 300,
                    Height = 190
                };
                placement.WithBounds(bounds);
                gwOptions
                .WithId(Guid.NewGuid().ToString())
                .WithPlacement(placement);
            }

            gwOptions
            .WithType(GlueWindowType.Flat)
            .WithTitle("Notifications");

            App.Glue.GlueWindows.RegisterWindow(this, gwOptions);
        }
Beispiel #2
0
        private void RegisterToStickyWindows()
        {
            // 1. Try to get startup options passed from GD
            // Create our default options if there aren't any passed options
            // Make your app a sticky flat window with title Clients

            var bounds = new GlueWindowBounds
            {
                Width  = 1200,
                Height = 700,
            };
            var placement = new GlueWindowScreenPlacement();

            placement.WithBounds(bounds);
        }
Beispiel #3
0
        private void RegisterToStickyWindows()
        {
            // 1. Try to get startup options passed from GD
            // Create our default options if there aren't any passed options
            // Make your app a sticky flat window with title Portfolio
            var bounds = new GlueWindowBounds
            {
                Width  = 1250,
                Height = 900
            };
            var placement = new GlueWindowScreenPlacement();

            placement.WithBounds(bounds);
            var id = Guid.NewGuid().ToString();
        }