コード例 #1
0
            public PopupWrapper(Size size, IInsertControl control)
            {
                _keyboard = new KeyboardListener();
                _inputter = new Inputter();
                _control  = control;

                Content    = control;
                Padding    = new Thickness(0, 0, 0, -24);
                Style      = (Style)Application.Current.FindResource("PopupDialog");
                Width      = size.Width;
                Height     = size.Height;
                Buttons    = new Control[0];
                Background = new SolidColorBrush(AppearanceManager.Current.AccentColor)
                {
                    Opacity = 0.6
                };
                ShowActivated      = false;
                LocationAndSizeKey = control.GetType().Name;

                control.TextChosen += OnControlTextChosen;
                _keyboard.KeyDown  += OnKeyDown;
                _keyboard.KeyUp    += OnKeyUp;

                MuiSystemAccent.SystemColorsChanged += OnSystemColorsChanged;
            }
コード例 #2
0
 public InsertController(IShopModel shopModel, IInsertControl insertControl)
 {
     this.shopModel     = shopModel;
     this.insertControl = insertControl;
     Initialize();
 }