Ejemplo n.º 1
0
        private void UserControl_Loaded(object sender, RoutedEventArgs e)
        {
            StudioTab.SetTitle(Page.Name);

            tbPageDescription.Text = Page.Description;
            LoadSections();
            BindEvents();
            btnGetManualSource.Visibility  = Page.IsLoaded ? Visibility.Collapsed : Visibility.Visible;
            btnSelectBehaviours.Visibility = Studio.GetProjectCapabilities().Behaviours ? Visibility.Visible : Visibility.Collapsed;
            btnAddSection.Visibility       = Page.Type == Models.Page.PAGE_TYPE_TEXT ? Visibility.Collapsed : Visibility.Visible;
            if (Page.Type == Models.Page.PAGE_TYPE_TEXT)
            {
                grid.RowDefinitions[3].Height = new GridLength(0);
                grid.RowDefinitions[4].Height = new GridLength(0);
            }
        }