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="" 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