Exemplo n.º 1
0
        public TabItem CreateTab()
        {
            var content = new ShellView();

            content.Loaded += ShellViewModel.Loaded;
            var tabItem = new TabItem
            {
                Header  = Name,
                Content = content
            };

            //do your gui stuff here
            EventSubscriber.Subscribe();
            //content gives you access to the base xaml
            return(tabItem);
        }
Exemplo n.º 2
0
        public TabItem CreateTab()
        {
            Locale = LocaleHelper.Update(Constants.CultureInfo);
            var content = new ShellView();

            content.Loaded += ShellViewModel.Loaded;
            var tabItem = new TabItem
            {
                Header  = Name,
                Content = content
            };

            //do your gui stuff here
            EventSubscriber.Subscribe();
            //content gives you access to the base xaml
            return(tabItem);
        }
Exemplo n.º 3
0
 public UserControl CreateControl()
 {
     var content = new ShellView();
     content.Loaded += ShellViewModel.Loaded;
     //do your gui stuff here
     //content gives you access to the base xaml
     return content;
 }
Exemplo n.º 4
0
 public TabItem CreateTab()
 {
     var content = new ShellView();
     content.Loaded += ShellViewModel.Loaded;
     var tabItem = new TabItem
     {
         Header = Name,
         Content = content
     };
     //do your gui stuff here
     //content gives you access to the base xaml
     return tabItem;
 }
Exemplo n.º 5
0
 public TabItem CreateTab()
 {
     Locale = LocaleHelper.Update(Constants.CultureInfo);
     var content = new ShellView();
     content.Loaded += ShellViewModel.Loaded;
     var tabItem = new TabItem
     {
         Header = Name,
         Content = content
     };
     //do your gui stuff here
     EventSubscriber.Subscribe();
     //content gives you access to the base xaml
     return tabItem;
 }