88.02 Identical captions and titles issue fixing (Manuscript) (Xamarin) - chempkovsky/CS2WPF-and-CS2XAMARIN GitHub Wiki
- Navigate to Manuscript (lform)
- With "Table columns"-context menu
- Open "Table columns"-dialog and check "Country"-column for Author and "Country"-column for Dialect
-
As a result we have two different columns with different titles
-
With "Update Item"-context menu
As a result we have two different controls with different captions
To get such a result
- Right click
Literature\LitManuscript\UserControls\
-folder of ModelServicesPrismModule-project - With a context menu open
Wpf form Wizard
- As usual, on the first page of the dialog the destination folder is shown. The destination folder is the folder in which the generated file will be saved.
- Click “Next”-button
- On the second page of the dialog the developer should select existing DbContext file. Select:
- Dm02Context (project)
- LitDbContext (context)
- Click “Next”-button
-
On the third page of the dialog the developer should select the View. Select:
- “LitManuscriptView“.
-
Expand
ROOT/properties/DCContryName/Attributes/Display
and modify the nodes:- Description
- Name
- Short Name
- Prompt
-
by adding "Dialect"-word
- Expand
ROOT/properties/ACContryName/Attributes/Display
and modify the nodes:- Description
- Name
- Short Name
- Prompt
- by adding "Author"-word
- Click
Next >>
-button - On the next page select "1420-SformUserControl.xaml.cs"-action type and click "Next"-button
- select "SformUserControl.xaml.cs.t4" and click "Next"-button
- On the last page click "Save"-button
"Save" operation updates json-repo file.
Only AFTER THIS STEP you should run batch operations.
The batch operations always ignore changes applied to ViewModel properties. So, we executed "one file"-operation and save the result. "Save"-operation makes our changes persistent.
- Close the wizard
Note
The best time to change the Titles and Captions is a time when you generate Web Api services. with WebApiService Wizard you can change the captions.