Note that there are some explanatory texts on larger screens.

plurals
  1. POWpf reusable window model/template
    primarykey
    data
    text
    <p>I'm trying to understand and learn a bit more about WPF. </p> <p>In a WPF project with 30 windows, all windows must have:</p> <ol> <li>same toolbar (with the buttons: new, edit, delete, view and close) </li> <li>the same statusbar</li> <li>each window must have a tabcontrol with 2 TabItem. The contents of the first TabItem can be different according to the window. The second TabItem should always contain a datagrid with different columns according to the window. </li> </ol> <p>The "logical sequence" is: </p> <ol> <li>open the window </li> <li>the user enters the parameters in the first TabItem </li> <li>the user clicks the search button </li> <li>the data are displayed in the datagarid in the second TabItem </li> <li>the user clicks on new / edit / delete / view </li> <li>show a window for editing data </li> </ol> <p>The buttons new / edit / view and delete must be enabled only when a row in the gridview is selected. The "logical sequence" is valid for all windows! </p> <p>In winform you can create a form with the structure to use as a template and create 30 windows that inherit from the model. With custom events in the template, you can understand if user have selected a row in the gridview, understand if the user click a button on the toolbar etc</p> <p>For example, when the user click on the New button is generated the "NewItem" event that is a custom event, then in the form that inherit from the model when recive the "NewItem" event open the input form</p> <p><img src="https://i.stack.imgur.com/vXjPO.png" alt="This is the form with the first tab selected"></p> <p><img src="https://i.stack.imgur.com/L4t6W.png" alt="This is the fom with the second tab selected"></p> <p>You can do something similar in WPF? </p> <p>you can create a form template in WPF and creating windows that inherit from the template? </p> <p>I hope I was clear and sorry for my bad English </p> <p>Thanks </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload