public ConversationControl()
 {
     InitializeComponent();
     Instance    = this;
     model       = new ConversationViewModel(null);
     DataContext = model;
 }
Ejemplo n.º 2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 10 "..\..\MainWindow.xaml"
                ((AcePeerToPeerNetwork.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);

            #line default
            #line hidden
                return;

            case 2:
                this.containerWrapper = ((System.Windows.Controls.Grid)(target));
                return;

            case 3:
                this.containerMenu = ((System.Windows.Controls.Grid)(target));
                return;

            case 4:
                this.menuScreenFeed = ((System.Windows.Controls.MenuItem)(target));

            #line 17 "..\..\MainWindow.xaml"
                this.menuScreenFeed.Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.menuScreenCreateListing = ((System.Windows.Controls.MenuItem)(target));

            #line 18 "..\..\MainWindow.xaml"
                this.menuScreenCreateListing.Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.menuScreenConversations = ((System.Windows.Controls.MenuItem)(target));

            #line 19 "..\..\MainWindow.xaml"
                this.menuScreenConversations.Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.containerScreens = ((System.Windows.Controls.Grid)(target));
                return;

            case 8:
                this.controlConversation = ((AcePeerToPeerNetwork.Views.Controls.ConversationControl)(target));
                return;

            case 9:
                this.controlListing = ((AcePeerToPeerNetwork.Views.Controls.ListingControl)(target));
                return;

            case 10:
                this.controlListingsFeed = ((AcePeerToPeerNetwork.Views.Controls.ListingsFeedControl)(target));
                return;

            case 11:
                this.controlCreateListing = ((AcePeerToPeerNetwork.Views.Controls.CreateListingControl)(target));
                return;

            case 12:
                this.controlConversations = ((AcePeerToPeerNetwork.Views.Controls.ConversationsControl)(target));
                return;

            case 13:
                this.containerLogin = ((System.Windows.Controls.Grid)(target));
                return;

            case 14:
                this.controlLogin = ((AcePeerToPeerNetwork.Views.Controls.LoginControl)(target));
                return;

            case 15:
                this.controlRegister = ((AcePeerToPeerNetwork.Views.Controls.RegisterControl)(target));
                return;
            }
            this._contentLoaded = true;
        }