/// <summary>
 /// Goes to page.
 /// </summary>
 /// <param name="view">The view.</param>
 /// <param name="viewModel">The view model.</param>
 internal void GoToPage(UserControl view, PageViewModel viewModel)
 {
     this.OwnConfiguration.GoToPage(view, viewModel);
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="SupplyCareSettingItemVm"/> class.
        /// </summary>
        /// <param name="supplyCareSettingCtrlVm">The supply care setting CTRL vm.</param>
        /// <param name="view">The view.</param>
        /// <param name="viewModel">The view model.</param>
        /// <param name="title">The title.</param>
        /// <param name="isExpandable">The is expandable.</param>
        /// <param name="automationId">The automation id.</param>
        public SupplyCareSettingItemVm(SupplyCareSettingCtrlVm supplyCareSettingCtrlVm, UserControl view, PageViewModel viewModel, string title, bool isExpandable, [Localizable(false)] string automationId)
        {
            this.supplyCareSettingCtrlVm = supplyCareSettingCtrlVm;
            this.ItemTitle = title;

            this.AutomationId  = automationId;
            this.expandCommand = new DelegateCommand(this.Expand);

            this.OwnConfiguration = new OwnConfigurationControlVm();

            this.GoToPage(view, viewModel);

            if (isExpandable)
            {
                this.IsExpanded             = false;
                this.Visibility             = Visibility.Visible;
                this.ExpandButtonVisibility = Visibility.Visible;
            }
            else
            {
                this.IsExpanded             = true;
                this.Visibility             = Visibility.Visible;
                this.ExpandButtonVisibility = Visibility.Collapsed;
            }
        }