My experiences over the past few days are summarized.

Source: Internet
Author: User

My experiences over the past few days are summarized.

Through the preliminary study over the past few days, I have made some things and learned some knowledge (I can't grasp it), but this is the first step of the long journey.

Let's talk about what I want to do first. I want to create an application that focuses on the news on the school website. For details, refer to QQ, or

There is only one more hamburger menu on the left to select the news category. Currently, we only plan to use the wide screen mode. The narrow screen or mobile phone mode has not been used.

 

What is the current progress? First:

This is the current progress, a scalable hamburger menu, and a whiteboard on the right. In addition, the click event has not been written in the hamburger menu. Alas, the road is long.

 

I have learned the following things over the past few days.

1. Black lines for debugging applications.

I didn't know what it was at first, and it was quite out of sight. I couldn't see the hamburger menu. This is a CPU usage information that shows the frame rate and each frame. The code is in App. xaml. cs:

if (System.Diagnostics.Debugger.IsAttached)            {                this.DebugSettings.EnableFrameRateCounter = true;            }

 

 

VS will execute this if judgment when debugging the application. true indicates that the information is displayed, and false indicates that the information is not displayed.

Ii. Hamburger menu

I have been studying this thing for several days, but I still don't know it. So what I will talk about below may be wrong.

I think, in an extreme sense, there is no hamburger menu at all! However, the computer is only allowed to draw three lines and then write the function. I thought that the hamburger menu was a control. I had to drag it to The XAML interface in the toolbox. I didn't expect its implementation to be like this:

 <TextBlock Text="&#xE700;" FontFamily="Segoe MDL2 Assets" FontSize="24" />

 

Text is the icon code of the hamburger menu, FontFamily should be the font, FontSize is the size, you can also add a Foreground behind to control the color.

I set a botton outside of it and added a click event (written in MainPage. Xxaml. cs public sealed partial class MainPage: Page ):

1 private void OnClick(object sender, RoutedEventArgs e)2         {3             this.splitView.IsPaneOpen = !this.splitView.IsPaneOpen;4         }

 

Then a hamburger menu looks like that. WTF. In addition, I feel that the implementation of this object does not have a standard format, or I am not familiar with this SplitView (the above are all in SplitView ).

Tomorrow

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.