Ejemplo n.º 1
0
        private void SetCommandListHyperlink_Click(object sender, RoutedEventArgs e)
        {
            var window = _builderContext.GetCommandWindow(CommandScope.Cell);

            window.InitCommandEvent += () =>
            {
                return(ViewModel.SelectedImageInfo.CommandList);
            };

            window.UpdateCommandEvent += (sender2, commandList) =>
            {
                ViewModel.SelectedImageInfo.CommandList = commandList;
            };

            window.Closed += (sender2, e2) =>
            {
                _builderContext.ShowParentDialog(this);
            };

            _builderContext.HideParentDialog(this);
            window.ShowDialog();
        }