Interaction logic for FlexStepContent.xaml
Inheritance: System.Windows.Controls.UserControl
Beispiel #1
0
        /// <summary>
        /// Creates a new step instance. This method will also create the necessary view and conect both
        /// objects together.
        /// </summary>
        internal static FlexStepViewModel CreateStep()
        {
            var content   = new FlexStepContent();
            var viewModel = new FlexStepViewModel(content);

            content.DataContext = viewModel;

            return(viewModel);
        }
        /// <summary>
        /// Creates a new step instance. This method will also create the necessary view and conect both
        /// objects together.
        /// </summary>
        internal static FlexStepViewModel CreateStep(IGaeDataSource dataSource = null, IApiManager apiManager = null)
        {
            var content   = new FlexStepContent();
            var viewModel = new FlexStepViewModel(content, dataSource: dataSource, apiManager: apiManager);

            content.DataContext = viewModel;

            return(viewModel);
        }
        private FlexStepViewModel(FlexStepContent content, IGaeDataSource dataSource = null, IApiManager apiManager = null)
            : base(apiManager)
        {
            _content    = content;
            _dataSource = dataSource;

            EnableApiCommand    = new ProtectedAsyncCommand(OnEnableApiCommandAsync);
            SetAppRegionCommand = new ProtectedAsyncCommand(OnSetAppRegionCommandAsync);
        }
Beispiel #4
0
        private FlexStepViewModel(FlexStepContent content)
        {
            _content = content;

            CanPublish = true;
        }
        private FlexStepViewModel(FlexStepContent content)
        {
            _content = content;

            CanPublish = true;
        }
        /// <summary>
        /// Creates a new step instance. This method will also create the necessary view and conect both
        /// objects together.
        /// </summary>
        /// <returns></returns>
        internal static FlexStepViewModel CreateStep()
        {
            var content = new FlexStepContent();
            var viewModel = new FlexStepViewModel(content);
            content.DataContext = viewModel;

            return viewModel;
        }