Beispiel #1
0
        public AboutPage()
        {
            this.InitializeComponent();
            if (App.AppCenterKey != null)
            {
                Microsoft.AppCenter.Analytics.Analytics.TrackEvent("Visit AboutPage");
            }

            var uiHandler = new Helpers.UIHandler();

            uiHandler.TitleBarVisiblity(false, Titlebar);
            uiHandler.TitleBarButton_TranparentBackground(true);

            Loaded += async(e, s) =>
            {
                using (var client = new HttpClient())
                {
                    try
                    {
                        String url = "https://raw.githubusercontent.com/yazdipour/WindOs/master/README.md";
                        MarkdownText.Text = await client.GetStringAsync(url);
                    }
                    catch { }
                }
            };

            SizeChanged += (sender, args) =>
            {
                MarkdownScrollViewer.Height =
                    ActualHeight -
                    LogoImage.ActualHeight -
                    (MarkdownScrollViewer.Margin.Top * 2);
                MarkdownText.Width = MarkdownScrollViewer.ActualWidth;
            };
        }
Beispiel #2
0
        public ToDoPage()
        {
            this.InitializeComponent();
            var uiHandler = new Helpers.UIHandler();

            uiHandler.TitleBarVisiblity(false, Titlebar);
            uiHandler.TitleBarButton_TranparentBackground(false);
            SizeChanged += (s, e) =>
            {
                if (e.NewSize.Width < 720)
                {
                    splitView.IsPaneOpen  = false;
                    splitView.DisplayMode = SplitViewDisplayMode.Overlay;
                    MenuAppBar.Visibility = Windows.UI.Xaml.Visibility.Visible;
                }
                else
                {
                    splitView.IsPaneOpen  = true;
                    MenuAppBar.Visibility = Windows.UI.Xaml.Visibility.Collapsed;
                    splitView.DisplayMode = SplitViewDisplayMode.Inline;
                }
            };
            MenuAppBar.Click      += (s, e) => splitView.IsPaneOpen = !splitView.IsPaneOpen;
            CloseDetailsBtn.Click += (s, e) => insideSplitView.IsPaneOpen = false;
        }
Beispiel #3
0
        public MainPage()
        {
            this.InitializeComponent();
            var uiHandler = new Helpers.UIHandler();

            uiHandler.TitleBarVisiblity(false, Titlebar);
            uiHandler.TitleBarButton_TranparentBackground(false);
        }
Beispiel #4
0
        public TerminalPage()
        {
            this.InitializeComponent();
            var uiHandler = new Helpers.UIHandler();

            uiHandler.TitleBarVisiblity(false, Titlebar);
            uiHandler.TitleBarButton_TranparentBackground(true);
            TabLV.ItemsSource   = Tabs;
            TabLV.SelectedIndex = 0;
            Console.Text        = "Windows PowerShell \nCopyright(C) Microsoft Corporation. All rights reserved. \n\nPS C:\\Users\\Shahriar >";
        }
Beispiel #5
0
        public PeoplePage()
        {
            this.InitializeComponent();
            var uiHandler = new Helpers.UIHandler();

            uiHandler.TitleBarVisiblity(false, Titlebar);
            uiHandler.TitleBarButton_TranparentBackground(false);
            SizeChanged += (s, e) =>
            {
                if (e.NewSize.Width < 720)
                {
                    splitView.IsPaneOpen = false;
                    //MenuAppBar.Visibility = Windows.UI.Xaml.Visibility.Visible;
                }
                else
                {
                    splitView.IsPaneOpen = true;
                    //MenuAppBar.Visibility = Windows.UI.Xaml.Visibility.Collapsed;
                }
            };
        }
Beispiel #6
0
        public CalculatorPage()
        {
            this.InitializeComponent();
            var uiHandler = new Helpers.UIHandler();

            uiHandler.TitleBarVisiblity(false, Titlebar);
            uiHandler.TitleBarButton_TranparentBackground(false);

            TreeViewNode calculatorFolder = new TreeViewNode()
            {
                Content = "Calculator", IsExpanded = true
            };

            calculatorFolder.Children.Add(new TreeViewNode()
            {
                Content = "Standard"
            });
            calculatorFolder.Children.Add(new TreeViewNode()
            {
                Content = "Scientific"
            });
            calculatorFolder.Children.Add(new TreeViewNode()
            {
                Content = "Programmer"
            });
            calculatorFolder.Children.Add(new TreeViewNode()
            {
                Content = "Date Calculation"
            });

            TreeViewNode converterFolder = new TreeViewNode()
            {
                Content = "Converter"
            };

            converterFolder.Children.Add(new TreeViewNode()
            {
                Content = "1"
            });
            converterFolder.Children.Add(new TreeViewNode()
            {
                Content = "2"
            });
            converterFolder.Children.Add(new TreeViewNode()
            {
                Content = "3"
            });

            TreeViewNode settings = new TreeViewNode()
            {
                Content = "Settings"
            };

            tree.RootNodes.Add(calculatorFolder);
            tree.RootNodes.Add(converterFolder);
            tree.RootNodes.Add(settings);
            SizeChanged += (s, e) =>
            {
                if (e.NewSize.Width < 720)
                {
                    splitView.IsPaneOpen  = false;
                    splitView.DisplayMode = SplitViewDisplayMode.Overlay;
                    MenuAppBar.Visibility = Visibility.Visible;
                }
                else
                {
                    splitView.IsPaneOpen  = true;
                    splitView.DisplayMode = SplitViewDisplayMode.Inline;
                    MenuAppBar.Visibility = Visibility.Collapsed;
                }
            };
            MenuAppBar.Click += (s, e) => splitView.IsPaneOpen = !splitView.IsPaneOpen;
        }