C# Класс ThoughtWorks.VisualStudio.CardViewControl

Interaction logic for CardViewControl.xaml
Показать файл Открыть проект

Private Properties

Свойство Тип Описание
Bind void
Bind void
BindManagedProperties void
BindPropertyElements void
CardViewControl System
InnerPanel System.Windows.Controls.StackPanel
LoadCardFromMingle void
OnButtonChooseCardClick void
OnButtonNotSetClick void
OnButtonSaveCommentClicked void
OnCardNameGotFocus void
OnCardNameTextChanged void
OnInitialized void
OnPropertyComboBoxSelectionChanged void
OnPropertyTextBoxLostFocus void
OnRenderedDescriptionTabGotFocus void
OnShowHiddenPropertiesClicked void
OnTransitionButtonClick void
Rebind void

Приватные методы

Метод Описание
Bind ( ) : void

Bind ViewModel to WPF

Bind ( Card card ) : void

Binds the fields of the control to data.

BindManagedProperties ( ) : void

Bind top-level Card properties to the form

BindPropertyElements ( ) : void

Bind other properties to the form

CardViewControl ( ) : System

Constructs a CardViewControl

InnerPanel ( CardProperty cardProperty ) : StackPanel

Binds CardData.PropertyDefinitions list onto the Properties tab

Adds elements to the Properties tab dynamically for each property in the Properties list. Menus and lists of data values are dynamically created based on the "type_description" of easch Property. Each Property becomes a horizontal StackPanel member of the propertiesPanel in the form. Each StackPanel has a Label/[some element] member pair. The type of [some element] is determined by the type_description from the card itself. The propertiesPanel is a horizontal WrapPanel element so that the StackPanel members wrap automatically flowing from left to right.

LoadCardFromMingle ( ) : void
OnButtonChooseCardClick ( object sender, RoutedEventArgs e ) : void
OnButtonNotSetClick ( object sender, RoutedEventArgs e ) : void
OnButtonSaveCommentClicked ( object sender, RoutedEventArgs e ) : void
OnCardNameGotFocus ( object sender, RoutedEventArgs e ) : void

Called when the card name gets focus

OnCardNameTextChanged ( object sender, System.Windows.Controls.TextChangedEventArgs e ) : void

Called when the card name text changes. Sets the window title to be the same as the card name.

OnInitialized ( object sender, EventArgs e ) : void

Fired after the window framework has initialized and before it is loaded and rendered.

OnPropertyComboBoxSelectionChanged ( object sender, RoutedEventArgs e ) : void
OnPropertyTextBoxLostFocus ( object sender, RoutedEventArgs e ) : void

Calls MingleCard.Update() to update the card with contents of the text box.

OnRenderedDescriptionTabGotFocus ( object sender, RoutedEventArgs e ) : void
OnShowHiddenPropertiesClicked ( object sender, RoutedEventArgs e ) : void

Toggles Visibility for Card properties marked as "hidden" in Mingle.

This only affects the UI. It does not change the "hidden" attribute in Mingle.

OnTransitionButtonClick ( object sender, RoutedEventArgs e ) : void

Fired when the Transition button is clicked

Rebind ( ) : void

Rebinds the CardView to card indicated by _thisCard.Number