Windows Phone development-building custom controls with blend In fact, every system control has its default style, we can see the specific control style in the code, today we use blend to construct the control, more simple than the modification of the control, the method is as follows:
We use the component Fillet button to illustrate the point. Describes the method of the blend widget custom control, which is simple.
1. Open Blend, create a new project first, or create it in VS and open with blend.
2. Select the rectangle to the left of the blend (you can also use the ellipse) and drag directly to the phone interface. Such as
3, we adjust the position of the rectangle, click on the rectangle, the right side will appear the property bar.
4, we want to do is rounded corner button, so we will turn the four corners of the rectangle into rounded corners, methods, change the values of RadiusX and radiusy, you can change the angle of the rectangle four radians.
5. After the shape is set, we choose the tool-the constituent control
6, we want to change to button, so select button.
7, click OK, we open its foreground code, the system created a button of a style, we can also be in this style can be modified.
8, that is, we create a rounded corner button.
There are a lot of controls that can be modified with blend, I'm just here to do a simple demonstration, you can change their own favorite control oh. (reprint please indicate from-it Dream Garden)
Creation of UWP App-helloworld