Skip to content

๐Ÿง‘๐Ÿฝโ€๐Ÿ’ป Development Guide

Strypper Vandel Jason edited this page Feb 26, 2023 · 5 revisions

How to create demo page for a control

The steps

  • Create a folder under Gallery/Pages/{control-group}
    • folder name must be the control name
    • control group can be BuiltIn, Syncfusion, etc.
  • Create
    • a ControlInfo class
    • a XAML page
    • a VM class

e.g A demo page for Button built-in control will have below structure

|
|--Features
    |--Gallery
        |--Pages
            |--Button
                |--ButtonControlInfo
                |--ButtonPage.xaml
                |--ButtonPage.xaml.cs
                |--ButtonPageViewModel.cs

class diagram

classDiagram
  ButtonPage ..|> IControlPage: declares
  BasePage <|-- ButtonPage: extends
  ButtonControlInfo ..|> IControlInfo: declares
  NavigationAwareBaseViewModel <|-- ButtonPageViewModel: extends
  ButtonPage o-- ButtonPageViewModel: BindingContext
  ButtonPage .. ButtonControlInfo: route name
  class IControlInfo
  <<interface>> IControlInfo
  class IControlPage
  <<interface>> IControlPage
  class NavigationAwareBaseViewModel
  <<abstract>> NavigationAwareBaseViewModel
  class BasePage
  <<abstract>> BasePage
  class ButtonPage
  class ButtonControlInfo
  class ButtonPageViewModel
Loading

Use script

dotnet cake --group DESIRE_GROUP --name CONTROL_NAME --cardDetail CARD_DETAIL --originalDocumentUrl URL

Available groups ๐Ÿ“‚

Card Detail โ„น๏ธ

CARD_DETAIL - Provide details and information for this card โ„น๏ธ, you should copy the overall stuff from the original documentation.

Original document URL ๐Ÿ“„

URL - Provide the card's original documentation๐Ÿ“„

NOTE: We can add any new group we want.