TAILIEUCHUNG - Pro WPF in C# 2010 phần 5

Hãy tải từng tài liệu và xem thử tài liệu đó viết từ nền tảng đến nâng cao hay chỉ viết về một chủ đề nào đó. Theo tôi bạn nên chọn tài liệu viết từ những khái niệm cơ bản nhất. Đừng nên nóng vội, phải xây móng trược khi xây nhà. Và tài liệu mà tôi chọn để học WPF với ngôn ngữ C# là tài liệu từ MSDN Việt Nam. Đây là một tài liệu khá hay, được viết rất trực quan, có cả phần source code demo kèm theo | CHAPTER 13 GEOMETRIES AND DRAWINGS It makes sense to start by drawing the ellipse that represents the outer edge of the shape. Then using a CombinedGeometry with the you can remove a smaller ellipse from the inside. Here s the markup that you need Path Fill Yellow Stroke Blue CombinedGeometry GeometryCombineMode Exclude EllipseGeometry Center 50 50 RadiusX 50 RadiusY 50 EllipseGeometry EllipseGeometry Center 50 50 RadiusX 40 RadiusY 40 EllipseGeometry CombinedGeometry Path This gets you part of the way but you still need the slash through the middle. The easiest way to add this element is to use a rectangle that s tilted to the side. You can accomplish this using the RectangleGeometry with a RotateTransform of 45 degrees RectangleGeometry Rect 44 5 10 90 RotateTransform Angle 45 CenterX 50 CenterY 50 RotateTransform RectangleGeometry Note When applying a transform to a geometry you use the Transform property not RenderTransform or LayoutTransform . That s because the geometry defines the shape and any transforms are always applied before the path is used in your layout. The final step is to combine this geometry with the combined geometry that created the hollow circle. In this case you need to use to add the rectangle to your shape. Here s the complete markup for the symbol Path Fill Yellow Stroke Blue CombinedGeometry GeometryCombineMode Union CombinedGeometry GeometryCombineMode Exclude EllipseGeometry Center 50 50 RadiusX 50 RadiusY 50 EllipseGeometry EllipseGeometry Center 50 50 RadiusX 40 RadiusY 40 EllipseGeometry CombinedGeometry 382 CHAPTER 13 GEOMETRIES AND DRAWINGS .

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.