示例#1
0
        public Settings(Player player, Config config, HotKeyHost keyHost)
        {
            InitializeComponent();

            _config = config;
            _player = player;
            _keyHost = keyHost;
            HotKeyItems.SetBinding(ItemsControl.ItemsSourceProperty, new Binding("HotKeys") {Source = _keyHost, NotifyOnSourceUpdated=true, Mode=BindingMode.OneWay });
        }