Demo - Leksiqq/WpfMarkupExtension GitHub Wiki

Attention! This article, as well as this announcement, are automatically translated from Russian.

Demo

To demonstrate the described extensions, a Demo application has been developed.

You can install it here

Sources are here

Description

The application consists of one window with three tabs.

Demo1 tab

TabItem.Demo1

  • Buttons located in the same row, column or diagonally between two "checked" "checkboxes" take the form of an ellipse.
  • For each "checked" "checkbox", the "checkboxes" that form a row, column or diagonal with it are highlighted in green.
  • When you hover over a button, the background of the remaining buttons in the column takes on the background color of the button under the cursor, and the borders of the buttons in the row become the same as the border of the button under the cursor.
  • When a button is pressed, the button centrally symmetrical with it flashes.
  • The second button in the first row and the last button in the last row have a special style.

Demo2 tab

TabItem.Demo2

  • "checkbox" IsEditable determines whether the entire table is editable, that is, whether it is possible to add or delete a row or edit a field if the row itself is marked as editable (first column)
  • Each row can itself be marked as editable or not.
  • Each cell can take values of types from the list that appears when editing.
  • When changing the type of a cell that has a value, it is either converted or disappears if the conversion is not defined.

Demo3 tab

TabItem.Demo3

If you enter numbers from 1 to 4 in the field, the corresponding numeral in Russian will be displayed in the lines below, obtained in two ways - the usual <DataTrigger> and <DataSwitch>, if you enter something other than an empty string, the phrase is displayed "I can't understand", also received in both ways. TabItem.Demo3

When the "Развернуть" checkbox is selected, an expanded line is displayed below it, since the corresponding property changes in the converter. TabItem.Demo3

When you click on the "Красный конвертер" or "Синий конвертер" button, a dialog box opens with the corresponding converter connected. TabItem.Demo3TabItem.Demo3

Calls to the Text property of the TextBox element are displayed on the console peeking out from behind the window through the converter with the appropriate parameters, and it is clear that in the case of <DataSwitch> the call occurs once, and in the case of <DataTrigger> - number of times equal to the number of options.

Before: (DataSwitch) Start:(Overview)

⚠️ **GitHub.com Fallback** ⚠️