コード例 #1
0
            public PluginSettingStoreEmptyPlaceholder(string friendlyName)
            {
                string pluginTypeName = string.IsNullOrWhiteSpace(friendlyName) ? typeof(TSource).Name : $"{friendlyName.ToLower()}s";

                base.Items.Add(new StackLayoutItem(null, true));
                base.Items.Add(
                    new StackLayoutItem
                {
                    Control             = new Bitmap(App.Logo.WithSize(256, 256)),
                    HorizontalAlignment = HorizontalAlignment.Center
                }
                    );
                base.Items.Add(
                    new StackLayoutItem
                {
                    Control             = $"No plugins containing {pluginTypeName} are installed.",
                    HorizontalAlignment = HorizontalAlignment.Center
                }
                    );
                base.Items.Add(
                    new StackLayoutItem
                {
                    Control = new Button
                    {
                        Text    = "Open Plugin Manager",
                        Command = new Command(
                            (s, e) =>
                        {
                            var pluginManager = new PluginManagerWindow();
                            pluginManager.Show();
                        }
                            )
                    },
                    HorizontalAlignment = HorizontalAlignment.Center
                }
                    );
                base.Items.Add(new StackLayoutItem(null, true));
            }
コード例 #2
0
        private void ShowPluginManager()
        {
            var pluginManager = new PluginManagerWindow();

            pluginManager.Show();
        }