Exemplo n.º 1
0
 public StatusBarViewModel()
 {
     this.items        = new StatusBarItemCollection();
     this.itemsFactory = new Dictionary <EStatusBarType, Func <string, object, GridLength, Dock, BaseStatusBarItem> >()
     {
         {
             EStatusBarType.Text,
             (name, content, width, dock) =>
             new TextStatusBarViewModel(
                 name, content, width,
                 dock)
         },
         {
             EStatusBarType.ProgressBar,
             (name, content, width, dock)
             =>
             new ProgressBarStatusBarViewModel
                 (name, content,
                 width, dock)
         },
         {
             EStatusBarType.Button,
             (name, content, width, dock)
             =>
             new ButtonStatusBarViewModel
                 (name, content,
                 width, dock)
         }
     };
 }
Exemplo n.º 2
0
 public StatusBarViewModel()
 {
     _items = new StatusBarItemCollection();
 }