Esempio n. 1
0
        public MainPage()
        {
            this.InitializeComponent();
            this.IrcHandler = new IrcUiHandler();

            this.LoadSettings();

            this.DataContext = IrcHandler;

            currentChannel = "";
            currentServer  = "";
            currentTopic   = "";

            Loaded += MainPage_Loaded;

            var inputPane = InputPane.GetForCurrentView();

            inputPane.Showing += this.InputPaneShowing;
            inputPane.Hiding  += this.InputPaneHiding;
            SizeChanged       += MainPage_SizeChanged;

            Window.Current.SizeChanged += Current_SizeChanged;
            UpdateSize();
            SidebarFrame.Navigated += SidebarFrame_Navigated;

            this.ListBoxItemStyle = Application.Current.Resources["ListBoxItemStyle"] as Style;
            this.CommandHandler   = IrcHandler.CommandHandler;

#if DEBUG
            DebugButton.Visibility = Visibility.Visible;
#endif
            instance = this;
        }