示例#1
0
 public TreeviewView()
 {
     InitializeComponent();
     ViewModel = new SIMViewModel()
     {
         TreeViewItems = new ObservableCollection <TreeViewItemModel>()
         {
             new TreeViewItemModel("Item1", null, new Thickness(10, 0, 0, 0))
             {
                 IsExpanded = true,
                 Items      = new ObservableCollection <TreeViewItemModel>()
                 {
                     new TreeViewItemModel("Child1", null, new Thickness(15, 0, 0, 0), true),
                     new TreeViewItemModel("Child2", null, new Thickness(15, 0, 0, 0)),
                     new TreeViewItemModel("Child3", null, new Thickness(15, 0, 0, 0)),
                 }
             },
             new TreeViewItemModel("Item2", null, new Thickness(10, 0, 0, 0))
             {
                 Items = new ObservableCollection <TreeViewItemModel>()
                 {
                     new TreeViewItemModel("Child1", null, new Thickness(15, 0, 0, 0)),
                     new TreeViewItemModel("Child2", null, new Thickness(15, 0, 0, 0)),
                     new TreeViewItemModel("Child3", null, new Thickness(15, 0, 0, 0)),
                 }
             },
             new TreeViewItemModel("Item3", null, new Thickness(10, 0, 0, 0))
             {
                 Items = new ObservableCollection <TreeViewItemModel>()
                 {
                     new TreeViewItemModel("Child1", null, new Thickness(15, 0, 0, 0)),
                     new TreeViewItemModel("Child2", null, new Thickness(15, 0, 0, 0)),
                     new TreeViewItemModel("Child3", null, new Thickness(15, 0, 0, 0)),
                 }
             },
             new TreeViewItemModel("Item4", null, new Thickness(10, 0, 0, 0))
             {
                 Items = new ObservableCollection <TreeViewItemModel>()
                 {
                     new TreeViewItemModel("Child1", null, new Thickness(15, 0, 0, 0)),
                     new TreeViewItemModel("Child2", null, new Thickness(15, 0, 0, 0)),
                     new TreeViewItemModel("Child3", null, new Thickness(15, 0, 0, 0)),
                 }
             }
         },
         Properties = new ObservableCollection <PropertyModel>()
         {
             new PropertyModel("ButtonStyle", "Enum(ButtonStyle)", "Standard[/Hollow/Outline/Link]"),
             new PropertyModel("ClickStyle", "Enum(ClickStyle)", "None[/Sink]"),
             new PropertyModel("HoverBrush", "Brush", "#3E3E3E"),
             new PropertyModel("ClickCoverBrush", "Brush", "#22FFFFFF"),
             new PropertyModel("CornerRadius", "CornerRadius", "0"),
             new PropertyModel("IsWaiting", "Boolean", "False"),
             new PropertyModel("WaitingContent", "String", "\"Please wait...\""),
             new PropertyModel("Icon", "Object", "<Null>"),
         }
     };
     DataContext = ViewModel;
 }
 public PaginationView()
 {
     InitializeComponent();
     ViewModel = new SIMViewModel()
     {
     };
     DataContext = ViewModel;
 }
 public CalendarView()
 {
     InitializeComponent();
     ViewModel = new SIMViewModel()
     {
         Properties = new ObservableCollection <PropertyModel>()
         {
         }
     };
     DataContext = ViewModel;
 }
示例#4
0
 public NeonLabelView()
 {
     InitializeComponent();
     ViewModel = new SIMViewModel()
     {
     };
     DataContext      = ViewModel;
     _dispatcherTimer = new DispatcherTimer()
     {
         Interval = TimeSpan.FromSeconds(1)
     };
     _dispatcherTimer.Tick += DispatcherTimer_Tick;
     _dispatcherTimer.Start();
 }
示例#5
0
 public SliderView()
 {
     InitializeComponent();
     ViewModel = new SIMViewModel()
     {
         ComboBoxItems = new ObservableCollection <ComboBoxItemModel>()
         {
             new ComboBoxItemModel("Item1"),
             new ComboBoxItemModel("Item2"),
             new ComboBoxItemModel("Item3"),
             new ComboBoxItemModel("Item4"),
             new ComboBoxItemModel("Item5"),
             new ComboBoxItemModel("Item6"),
             new ComboBoxItemModel("Item7"),
         }
     };
     DataContext = ViewModel;
 }
 public ButtonView()
 {
     InitializeComponent();
     ViewModel = new SIMViewModel()
     {
         Properties = new ObservableCollection <PropertyModel>()
         {
             new PropertyModel("ButtonStyle", "Enum(ButtonStyle)", "Standard[/Hollow/Outline/Link]"),
             new PropertyModel("ClickStyle", "Enum(ClickStyle)", "None[/Sink]"),
             new PropertyModel("HoverBrush", "Brush", "#3E3E3E"),
             new PropertyModel("ClickCoverBrush", "Brush", "#22FFFFFF"),
             new PropertyModel("CornerRadius", "CornerRadius", "0"),
             new PropertyModel("IsWaiting", "Boolean", "False"),
             new PropertyModel("WaitingContent", "String", "\"Please wait...\""),
             new PropertyModel("Icon", "Object", "<Null>"),
         }
     };
     DataContext = ViewModel;
 }
 public TimelineView()
 {
     InitializeComponent();
     ViewModel = new SIMViewModel()
     {
         TimelineItems = new ObservableCollection <TimelineItemModel>()
         {
             new TimelineItemModel("Para1", "NOT all that Mrs. Bennet, however, with the assistance of her five daughters, could ask on the subject was sufficient to draw from her husband any satisfactory description of Mr. Bingley. "),
             new TimelineItemModel("Para2", "They attacked him in various ways; with barefaced questions, ingenious suppositions, and distant surmises; but he eluded the skill of them all; and they were at last obliged to accept the second-hand intelligence of their neighbour Lady Lucas. "),
             new TimelineItemModel("Para3", "Her report was highly favourable. Sir William had been delighted with him. He was quite young, wonderfully handsome, extremely agreeable, and, to crown the whole, he meant to be at the next assembly with a large party. Nothing could be more delightful! "),
             new TimelineItemModel("Para4", "To be fond of dancing was a certain step towards falling in love; and very lively hopes of Mr. Bingley's heart were entertained."),
             new TimelineItemModel("End", null),
         },
         Properties = new ObservableCollection <PropertyModel>()
         {
         }
     };
     DataContext = ViewModel;
 }
 public TabControlView()
 {
     InitializeComponent();
     ViewModel = new SIMViewModel()
     {
         TabItems = new ObservableCollection <TabItemModel>()
         {
             new TabItemModel("Item1"),
             new TabItemModel("Item2"),
             new TabItemModel("Item3"),
             new TabItemModel("Item4"),
             new TabItemModel("Item5"),
             new TabItemModel("Item6"),
             new TabItemModel("Item7"),
             new TabItemModel("Item8"),
         },
         Properties = new ObservableCollection <PropertyModel>()
         {
         }
     };
     DataContext = ViewModel;
 }
示例#9
0
 public TagPanelView()
 {
     InitializeComponent();
     ViewModel = new SIMViewModel()
     {
         TagItems = new ObservableCollection <TagItemModel>()
         {
             new TagItemModel("WPF", FindResource("LightBlue") as Brush),
             new TagItemModel("C#", FindResource("LightOrange") as Brush),
             new TagItemModel("ASP.NET MVC", FindResource("LightGreen") as Brush),
             new TagItemModel("React", FindResource("LightPink") as Brush),
             new TagItemModel("Angular", FindResource("LightRed") as Brush),
             new TagItemModel("Java", FindResource("LightBlue") as Brush),
             new TagItemModel("Python", FindResource("LightOrange") as Brush),
             new TagItemModel("ASP.NET Core", FindResource("LightGreen") as Brush),
             new TagItemModel("PHP", FindResource("LightPink") as Brush),
             new TagItemModel("HTML", FindResource("LightRed") as Brush),
             new TagItemModel("JavaScript", FindResource("LightBlue") as Brush),
             new TagItemModel("TypeScript", FindResource("LightOrange") as Brush),
         }
     };
     DataContext = ViewModel;
 }