public AutomatePage() { InitializeComponent(); SetExpanders(); //Bind between Menu expanders and actual grid expanders App.ObjFieldBinding(BFVariablesExpander, Expander.IsExpandedProperty, BFVariablesExpander2, "IsExpanded"); App.ObjFieldBinding(BFActivitiesGroupsExpander, Expander.IsExpandedProperty, BFActivitiesGroupsExpander2, "IsExpanded"); App.ObjFieldBinding(BFActivitiesExpander, Expander.IsExpandedProperty, BFActivitiesExpander2, "IsExpanded"); App.ObjFieldBinding(ActivityVariablesExpander, Expander.IsExpandedProperty, ActivityVariablesExpander2, "IsExpanded"); App.ObjFieldBinding(ActivityActionsExpander, Expander.IsExpandedProperty, ActivityActionsExpander2, "IsExpanded"); BFVariablesExpander.IsExpanded = false; BFActivitiesGroupsExpander.IsExpanded = false; ActivityVariablesExpander.IsExpanded = false; mlastBFVariablesRowHeight = new GridLength(200, GridUnitType.Star); mlastActivityVariablesRowHeight = new GridLength(200, GridUnitType.Star); SetFramesContent(); LoadBizFlows(); App.PropertyChanged += AppPropertychanged; App.UserProfile.PropertyChanged += UserProfilePropertyChanged; SetGridsView(eAutomatePageViewStyles.Design.ToString()); SetGherkinOptions(); }
public StartPage() { InitializeComponent(); //TODO: load from external - so easier to update lblAppVersion.Content = "Version " + Ginger.App.AppVersion; App.ObjFieldBinding(autoLoadLastSolCheckBox, CheckBox.IsCheckedProperty, App.UserProfile, nameof(UserProfile.AutoLoadLastSolution)); SetRecentSolutions(); }
public ucTag(RepositoryItemTag tag) { InitializeComponent(); mTag = tag; App.ObjFieldBinding(lblTagName, Label.ContentProperty, mTag, RepositoryItemTag.Fields.Name); App.ObjFieldBinding(lblTagName, Label.ToolTipProperty, mTag, RepositoryItemTag.Fields.Description); tagStack.Background = (Brush)bc.ConvertFrom("#cde0f2"); closeImage.Visibility = Visibility.Hidden; xDeleteTagBtn.Tag = tag; }