« GhostDoc » : différence entre les versions
De Banane Atomic
Aller à la navigationAller à la recherche
Aucun résumé des modifications |
|||
Ligne 1 : | Ligne 1 : | ||
=Les règles= | [[Category:VisualStudio]] | ||
==Macros== | = Les règles = | ||
== Macros == | |||
<kode lang="csharp"> | |||
< | |||
public RelayCommand AddItemCmd { get; set; } | public RelayCommand AddItemCmd { get; set; } | ||
</ | </kode> | ||
{| | {| | ||
Ligne 47 : | Ligne 44 : | ||
|} | |} | ||
==Exemple== | == Exemple == | ||
===Les propriétés de type Command=== | === Les propriétés de type Command === | ||
Condition sur le Type : ends with Command<br/> | Condition sur le Type : ends with Command<br/> | ||
<summary/> : The command to $(PropertyName.Words.ExceptLast). | <summary/> : The command to $(PropertyName.Words.ExceptLast). | ||
<kode lang="csharp"> | |||
< | |||
/// <summary> | /// <summary> | ||
/// The command to add item | /// The command to add item | ||
/// </summary> | /// </summary> | ||
public RelayCommand AddItemCmd { get; set; } | public RelayCommand AddItemCmd { get; set; } | ||
</ | </kode> | ||
===Les classes VM=== | === Les classes VM === | ||
Condition sur le nom de la classe : ends with VM<br/> | Condition sur le nom de la classe : ends with VM<br/> | ||
<summary/> : A View-Model for $(TypeName.Words.Verbatim.ExceptLast)View. | <summary/> : A View-Model for $(TypeName.Words.Verbatim.ExceptLast)View. | ||
<kode lang="csharp"> | |||
< | |||
/// <summary> | /// <summary> | ||
/// A View-Model for StreamMaterialDataView. | /// A View-Model for StreamMaterialDataView. | ||
/// </summary> | /// </summary> | ||
public class StreamMaterialDataVM : INotifyPropertyChanged | public class StreamMaterialDataVM : INotifyPropertyChanged | ||
</ | </kode> | ||
Dernière version du 12 avril 2020 à 12:50
Les règles
Macros
public RelayCommand AddItemCmd { get; set; } |
$(PropertyName.Words.All) | add item CMD |
$(PropertyName.Words.AllAsSentence) | Add item CMD |
$(PropertyName.Words.BetweenFirstAndLast) | item |
$(PropertyName.Words.ExceptFirst) | item CMD |
$(PropertyName.Words.ExceptLast) | add item |
$(PropertyName.Words.First) | add |
$(PropertyName.Words.FirstAsStartOfSentence) | Add |
$(PropertyName.Words.Last) | CMD |
$(PropertyName.Words.TheAndAll) | the add item CMD |
$(PropertyName.Words.TheAndAllAsSentence) | The add item CMD |
$(PropertyName.Words.TheAndFirst) | the add |
$(PropertyName.Words.TheAndFirstAsStartOfSentence) | The add |
Exemple
Les propriétés de type Command
Condition sur le Type : ends with Command
<summary/> : The command to $(PropertyName.Words.ExceptLast).
/// <summary> /// The command to add item /// </summary> public RelayCommand AddItemCmd { get; set; } |
Les classes VM
Condition sur le nom de la classe : ends with VM
<summary/> : A View-Model for $(TypeName.Words.Verbatim.ExceptLast)View.
/// <summary> /// A View-Model for StreamMaterialDataView. /// </summary> public class StreamMaterialDataVM : INotifyPropertyChanged |