add Drawer demo
This commit is contained in:
1 parent
453839e763
commit
d145dee9c9
29 files changed
+768
-566
No files matched your search
@@ -0,0 +1,106 @@
|
||||
[
|
||||
{
|
||||
"title": "Styles",
|
||||
"demoItemList": [
|
||||
[ "Brush", "BrushDemoCtl", "Brush_16x", "" ],
|
||||
[ "Button", "ButtonDemoCtl", "ButtonClick_16x", "" ],
|
||||
[ "RepeatButton", "RepeatButtonDemoCtl", "RepeatButton_16x", "" ],
|
||||
[ "ToggleButton", "ToggleButtonDemoCtl", "Toggle_16x", "" ],
|
||||
[ "RadioButton", "RadioButtonDemoCtl", "RadioButton_16x", "" ],
|
||||
[ "CheckBox", "CheckBoxDemoCtl", "CheckBox_16x", "" ],
|
||||
[ "ScrollViewer", "NativeScrollViewerDemoCtl", "ScrollBox_16x", "" ],
|
||||
[ "Slider", "SliderDemoCtl", "Slider_16x", "" ],
|
||||
[ "TextBlock", "TextBlockDemoCtl", "TextBlock_16x", "" ],
|
||||
[ "TextBox", "NativeTextBoxDemoCtl", "TextBox_16x", "" ],
|
||||
[ "ComboBox", "NativeComboBoxDemoCtl", "ComboBox_16x", "" ],
|
||||
[ "PasswordBox", "NativePasswordBoxDemoCtl", "PasswordBox_16x", "" ],
|
||||
[ "Expander", "ExpanderDemoCtl", "Expander_16x", "" ],
|
||||
[ "ProgressBar", "NativeProgressBarDemoCtl", "ProgressBar_16x", "" ],
|
||||
[ "Calendar", "CalendarDemoCtl", "Calendar_16x", "" ],
|
||||
[ "DatePicker", "NativeDatePickerDemoCtl", "DatePicker_16x", "" ],
|
||||
[ "TabControl", "NativeTabControlDemoCtl", "TabPage_16x", "" ],
|
||||
[ "DataGrid", "DataGridDemoCtl", "DataGrid_16x", "" ],
|
||||
[ "TreeView", "TreeViewDemoCtl", "TreeView_16x", "" ],
|
||||
[ "ListBox", "ListBoxDemoCtl", "ListBox_16x", "" ],
|
||||
[ "ListView", "ListViewDemoCtl", "ListView_16x", "" ],
|
||||
[ "GroupBox", "GroupBoxDemoCtl", "GroupBox_16x", "" ],
|
||||
[ "Menu", "MenuDemoCtl", "ContextMenu_16x", "" ],
|
||||
[ "RichTextBox", "RichTextBoxDemoCtl", "RichTextBox_16x", "" ],
|
||||
[ "ToolBar", "ToolBarDemoCtl", "ToolBar_16x", "" ],
|
||||
[ "Border", "BorderDemoCtl", "BorderElement_16x", "" ],
|
||||
[ "Label", "LabelDemoCtl", "Label_16x", "" ]
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Controls",
|
||||
"demoItemList": [
|
||||
[ "FloatingBlock", "FloatingBlockDemoCtl", "thumbs_up", "" ],
|
||||
[ "ImageBlock", "ImageBlockDemoCtl", "ImageStack_16x", "" ],
|
||||
[ "Magnifier", "MagnifierDemoCtl", "Search_16x", "" ],
|
||||
[ "Gravatar", "GravatarDemoCtl", "User_16x", "" ],
|
||||
[ "Badge", "BadgeDemoCtl", "DotLarge_16x", "" ],
|
||||
[ "GotoTop", "GotoTopDemoCtl", "GoToTop_16x", "" ],
|
||||
[ "SplitButton", "SplitButtonDemoCtl", "SplitButton_16x", "1" ],
|
||||
[ "ButtonGroup", "ButtonGroupDemoCtl", "ButtonGroup_16x", "" ],
|
||||
[ "ProgressButton", "ProgressButtonDemoCtl", "ProgressButton_16x", "" ],
|
||||
[ "ChatBubble", "ChatBubbleDemoCtl", "Bubble_16xLG", "" ],
|
||||
[ "Poptip", "PoptipDemoCtl", "PopupCursor_16x", "1" ],
|
||||
[ "NotifyIcon", "NotifyIconDemoCtl", "NotificationHub_16x", "" ],
|
||||
[ "NumericUpDown", "NumericUpDownDemoCtl", "NumericListBox_16x", "" ],
|
||||
[ "TextBox", "TextBoxDemoCtl", "TextBox_16x", "" ],
|
||||
[ "ComboBox", "ComboBoxDemoCtl", "ComboBox_16x", "" ],
|
||||
[ "PasswordBox", "PasswordBoxDemoCtl", "PasswordBox_16x", "" ],
|
||||
[ "DatePicker", "DatePickerDemoCtl", "DatePicker_16x", "" ],
|
||||
[ "Clock", "ClockDemoCtl", "Time_color_16x", "" ],
|
||||
[ "TimePicker", "TimePickerDemoCtl", "TimePicker_16x", "" ],
|
||||
[ "CalendarWithClock", "CalendarWithClockDemoCtl", "Calendar_16x", "" ],
|
||||
[ "DateTimePicker", "DateTimePickerDemoCtl", "DatePicker_16x", "" ],
|
||||
[ "Transfer", "TransferDemoCtl", "Transfer_16x", "" ],
|
||||
[ "FlipClock", "FlipClockDemoCtl", "FlipVertical_16x", "" ],
|
||||
[ "Rate", "RateDemoCtl", "Star", "" ],
|
||||
[ "Shield", "ShieldDemoCtl", "Shield_16x", "" ],
|
||||
[ "SearchBar", "SearchBarDemoCtl", "Search_16x", "" ],
|
||||
[ "Tag", "TagDemoCtl", "Tag_16x", "" ],
|
||||
[ "GifImage", "GifImageDemoCtl", "Animation_16x", "" ],
|
||||
[ "OutlineText", "OutlineTextDemoCtl", "TextBlock_16x", "" ],
|
||||
[ "RunningBlock", "RunningBlockDemoCtl", "Dynamic_16x", "" ],
|
||||
[ "Card", "CardDemoCtl", "VSO_Card_16x", "" ],
|
||||
[ "Divider", "DividerDemoCtl", "DottedSplitter_16x", "1" ],
|
||||
[ "CirclePanel", "CirclePanelDemoCtl", "ColorWheel_16x", "" ],
|
||||
[ "Grid", "GridDemoCtl", "GridPane_16x", "" ],
|
||||
[ "WaterfallPanel", "WaterfallPanelDemoCtl", "Panel_16x", "" ],
|
||||
[ "HoneycombPanel", "HoneycombPanelDemoCtl", "PolygonHexagon_16x", "" ],
|
||||
[ "TransitioningContentControl", "TransitioningContentControlDemoCtl", "TransitioningContentControl_16x", "" ],
|
||||
[ "Drawer", "DrawerDemoCtl", "View_Portrait_16x", "1" ],
|
||||
[ "CoverView", "CoverViewDemoCtl", "DetailDataView_16x", "" ],
|
||||
[ "CoverFlow", "CoverFlowDemoCtl", "LinearCarousel_16x", "" ],
|
||||
[ "ProgressBar", "ProgressBarDemoCtl", "ProgressBar_16x", "" ],
|
||||
[ "StepBar", "StepBarDemoCtl", "Flow_16x", "" ],
|
||||
[ "Growl", "GrowlDemoCtl", "Message_16x", "" ],
|
||||
[ "Loading", "LoadingDemoCtl", "Loading_Blue_16x", "" ],
|
||||
[ "ImageBrowser", "ImageBrowserDemoCtl", "ImageBrowser_16x", "" ],
|
||||
[ "ColorPicker", "ColorPickerDemoCtl", "ColorPalette_16x", "" ],
|
||||
[ "Carousel", "CarouselDemoCtl", "Carousel_16x", "" ],
|
||||
[ "CompareSlider", "CompareSliderDemoCtl", "SplitterControl_16x", "" ],
|
||||
[ "PreviewSlider", "PreviewSliderDemoCtl", "HoverMenu_16x", "" ],
|
||||
[ "RangeSlider", "RangeSliderDemoCtl", "brackets_Square_16xLG", "" ],
|
||||
[ "TimeBar", "TimeBarDemoCtl", "Timeline_16x", "" ],
|
||||
[ "Pagination", "PaginationDemoCtl", "Paginator_16x", "" ],
|
||||
[ "AnimationPath", "AnimationPathDemoCtl", "Path_16x", "" ],
|
||||
[ "TabControl", "TabControlDemoCtl", "TabPage_16x", "" ],
|
||||
[ "SideMenu", "SideMenuDemoCtl", "MainMenuControl_16x", "" ],
|
||||
[ "ScrollViewer", "ScrollViewerDemoCtl", "ScrollBox_16x", "" ],
|
||||
[ "Sprite", "SpriteDemoCtl", "HandyControl", "" ],
|
||||
[ "Notification", "NotificationDemoCtl", "Procedure_16x", "" ],
|
||||
[ "Dialog", "DialogDemoCtl", "Dialog_16x", "" ],
|
||||
[ "Window", "WindowDemoCtl", "WindowsForm_16x", "" ]
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Tools",
|
||||
"demoItemList": [
|
||||
[ "HatchBrushGenerator", "HatchBrushGeneratorDemoCtl", "DataGenerator_16x", "" ],
|
||||
[ "Morphing Animation", "GeometryAnimationDemoCtl", "Animation_16x", "1" ]
|
||||
]
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,34 @@
|
||||
using System.Collections.Generic;
|
||||
using GalaSoft.MvvmLight;
|
||||
|
||||
namespace HandyControlDemo.Data
|
||||
{
|
||||
public class DemoInfoModel : ViewModelBase
|
||||
{
|
||||
private string _title;
|
||||
|
||||
public string Title
|
||||
{
|
||||
get => _title;
|
||||
#if netle40
|
||||
set => Set(nameof(Title), ref _title, value);
|
||||
#else
|
||||
set => Set(ref _title, value);
|
||||
#endif
|
||||
}
|
||||
|
||||
private int _selectedIndex = -1;
|
||||
|
||||
public int SelectedIndex
|
||||
{
|
||||
get => _selectedIndex;
|
||||
#if netle40
|
||||
set => Set(nameof(SelectedIndex), ref _selectedIndex, value);
|
||||
#else
|
||||
set => Set(ref _selectedIndex, value);
|
||||
#endif
|
||||
}
|
||||
|
||||
public IList<DemoItemModel> DemoItemList { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
namespace HandyControlDemo.Data
|
||||
{
|
||||
public class DemoItemModel
|
||||
{
|
||||
public string Name { get; set; }
|
||||
|
||||
public string TargetCtlName { get; set; }
|
||||
|
||||
public string ImageName { get; set; }
|
||||
|
||||
public bool IsNew { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user