انت هنا الان : شبكة جامعة بابل > موقع الكلية > نظام التعليم الالكتروني > مشاهدة المحاضرة

Styles and Behaviors

الكلية كلية تكنولوجيا المعلومات     القسم قسم البرامجيات     المرحلة 4
أستاذ المادة وضاح رزوقي عبود حسن       01/12/2014 16:40:10
WPF applications would be a drab bunch if you were limited to the plain, gray look of ordinary buttons
and other common controls. Fortunately, WPF has several features that allow you to inject some flair into
basic elements and standardize the visual appearance of your application. In this chapter, you’ll learn
about two of the most important: styles and behaviors.
Styles are an essential tool for organizing and reusing for formatting choices. Rather than filling your
XAML with repetitive markup to set details such as margins, padding, colors, and fonts, you can create a
set of styles that encompass all these details. You can then apply the styles where you need them by setting
a single property.
Behaviors are a more ambitious tool for reusing user interface code. The basic idea is that a behavior
encapsulates a common bit of UI functionality (for example, the code that makes an element draggable). If
you have the right behavior, you can attach it to any element with a line or two of XAML markup, saving
you the effort of writing and debugging the code yourself.
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

المادة المعروضة اعلاه هي مدخل الى المحاضرة المرفوعة بواسطة استاذ(ة) المادة . وقد تبدو لك غير متكاملة . حيث يضع استاذ المادة في بعض الاحيان فقط الجزء الاول من المحاضرة من اجل الاطلاع على ما ستقوم بتحميله لاحقا . في نظام التعليم الالكتروني نوفر هذه الخدمة لكي نبقيك على اطلاع حول محتوى الملف الذي ستقوم بتحميله .