3 New Controls
3 much needed controls that if you’re a Windows Forms user, you’d be wondering why WPF didn’t already have these.
Visual State Manager
Another new feature supporting the WPF-Silverlight continuum is the VisualStateManager, which introduces a simple new way to apply visual states to controls. This mechanism provides a way to easily customize both the look and feel of a control by providing the means to map the control logic to its respective start and end visual states.
VSM is very flexible in that it automatically generates the transition animations in between the respective states, so the control author spends less time writing code and more time on the visual states that are defined in a control template. That means VSM can give a control author the ability to easily interchange the look and feel of controls, and VSM gives the control author a way to easily interchange how a control visually responds to user interaction. This is fully supported with Expression Blend.
Touch and Manipulation
Elements in WPF now accept touch input. The UIElement, and UIElement3D, and ContentElement classes expose events that occur when a user touches an element on a touch-enabled screen. In addition to the touch events, the UIElement supports manipulation. A manipulation is interpreted to scale, rotate, or translate theUIElement. For example, a photo viewing application might allow users to move, zoom, resize, and rotate a photo by touching the computer screen over the photo.
For more information about touch, see Walkthrough: Creating Your First Touch Application and Input Overview.
Graphics and Animation
When an object edge falls in the middle of a pixel device, the DPI-independent graphics system can create rendering artifacts, such as blurry or semi-transparent edges. Previous versions of WPF included pixel snapping to help handle this case. Silverlight 2 introduced layout rounding, which is another way to move elements so that edges fall on whole pixel boundaries. WPF now supports layout rounding with the UseLayoutRounding attached property onFrameworkElement.
By using the new BitmapCache and BitmapCacheBrush classes, you can cache a complex part of the visual tree as a bitmap and greatly improve rendering time. The bitmap remains responsive to user input, such as mouse clicks, and you can paint it onto other elements just like any brush.
WPF 4 builds on top of the ShaderEffect support introduced in WPF 3.5 SP1 by allowing applications to now write effects by using Pixel Shader (PS) version 3.0. The PS 3.0 shader model is more sophisticated than PS 2.0, which allows for even more effects on supported hardware.
Text
The WPF text rendering stack has been completely replaced. This change brings improvements to text rendering configurability, clarity, and support for international languages. The new text stack now supports explicitly selecting aliased, grayscale, or ClearType rendering modes. The text stack now supports display-optimized character layout, to produce text with sharpness comparable to Win32/GDI text. The new text stack allows optimizing text hinting and snapping for either animated or static text. The new text stack also supports fonts with embedded bitmaps to be substituted for smaller font sizes, allowing many East Asian fonts to render with sharpness comparable to Win32/GDI text.
You can now specify the brush that paints the selection and caret for input and reading controls, such as TextBox RichTextBox, and FlowDocumentReader. There are two new properties on TextBoxBase:
Binding
You can bind the Command property of an InputBinding class to an instance that is defined in code. The following properties are dependency properties, so that they can be targets of bindings:
The InputBinding, MouseBinding, and KeyBinding classes receive data context from the owning FrameworkElement.
Bind to Dynamic Objects
WPF supports data binding to objects that implement IDynamicMetaObjectProvider. For example, if you create a dynamic object that inherits fromDynamicObject in code, you can use markup extension to bind to the object in XAML. For more information, see the Binding Sources Overview.
Bindable Text Run
Run.Text is now a dependency property. The main advantage is that it now supports one-way bindings. It also supports other features of dependency properties, such as styling and templating.
XAML Browser Applications
Two features have been added to XAML browser applications (XBAPs).
You can now communicate with the Web page containing the XBAP when the application is hosted in a HTML frame. The XBAP can get deep access to the HTML DOM and can handle DOM events. For more information seeBrowserInteropHelper.HostScript.
If your XBAP requires full trust, the user will now automatically receive the standard ClickOnce elevation prompt when they install the application from the intranet or one of their browser’s trusted sites.
For more information on both these features, see WPF XAML Browser Applications Overview.
WPF and Windows
The Windows 7 taskbar provides enhanced functionality that enables you to use the taskbar button to communicate status to a user and expose common tasks. New types in the System.Windows.Shell namespace provide managed wrappers for functionality in the Windows 7 taskbar and manages the data passed to the Windows shell. For example, the JumpList type allows you to work with Jump Lists and the TaskbarItemInfo type allows you to work with taskbar thumbnails.
WPF dialog boxes on Windows 7 and Windows Vista now support the look and feel of the Windows 7 and Windows Vista style, which includes custom places. For more information, see the FileDialogCustomPlace class.
WPF Designer
In Visual Studio 2010, various designer improvements have been made to help create WPF or Silverlight applications.
In Visual Studio 2008, you could install the Silverlight Tools to create Silverlight applications in Visual Studio. However, the designer support for Silverlight projects was limited. In Visual Studio 2010, the designer support for Silverlight and WPF projects are now the same. For example, in Silverlight projects you can now select and position items with the mouse on the design surface.
In Visual Studio 2008, control design times were able to target only the latest WPF platform version. In Visual Studio 2010, this support is extended across multiple platforms, including design-time support for WPF 3.5, WPF 4, Silverlight 3, Silverlight 4, and future platform releases. As the same extensibility API exists for all these platforms, control design-time authors can easily write one experience and share it across the control runtimes for each platform.
The new data binding builder enables visual construction and editing of bindings without typing XAML.
Layout improvements include a more intuitive Grid designer and better support for automatically sizing user controls.
The Properties window now enables visually creating and editing Brush resources.
For more information, see WPF Designer.
Sources:
http://msdn.microsoft.com/en-us/library/bb613588(VS.100).aspx
http://weblogs.asp.net/scottgu/archive/2009/10/26/wpf-4-vs-2010-and-net-4-0-series.aspx
hmm interstinggg haha
PillSpot.org. Canadian Health&Care.No prescription online pharmacy.Special Internet Prices.Pillspot.org. Vitamins@buy.online” rel=”nofollow”>.…
Categories: Anti-allergic/Asthma.Weight Loss.Mens Health.Vitamins/Herbal Supplements.Mental HealthPain Relief.Antidepressants.Antiviral.Blood Pressure/Heart.Womens Health.Stomach.Antibiotics.Skin Care.Stop SmokingAnxiety/Sleep Aid.Eye Care.Antidia…
Buy:Nexium.Zyban.Prednisolone.Petcam (Metacam) Oral Suspension.Valtrex.Zovirax.Retin-A.Accutane.Mega Hoodia.Lumigan.Actos.Synthroid.Human Growth Hormone.100% Pure Okinawan Coral Calcium.Prevacid.Arimidex….
Traffic http://BABYCLOTHESNUT.INFO/tag/New York State Traffic Law Re : York…
Law…
Sheet http://APTAUTOPARTS.INFO/tag/Dietary Supplement Fact Sheet : fact vitamin/…
fact vitamin/…
8 http://APTAUTOPARTS.INFO/tag/Buy 8 : 00a RCA DTA/…
Buy…
you http://ufunigt.03GMCPARTS.US/tag/french+phrases+Thank+you/ : you…
Thank…
logitech http://elogitechvtue.ACEHARDWAREE.INFO/tag/replacement+Wheel+logitech/ : Wheel…
logitech…
100 http://bjetizlk.copious-systems.com/tag/10+green+100/ : 100…
10…
Furniture http://fgedu-03c.AUTOPARTSVILLE.INFO/tag/Mossy+Home+Decor+furniture+Furniture/ : Home…
furniture…
Moto http://hkawasakiqlc.APTAUTOPARTS.INFO/tag/Moto+Guzzi+Motorcycles+motorcycles/ : Motorcycles…
Moto…
Buy:Female Cialis.Wellbutrin SR.Lipothin.Seroquel.Aricept.Amoxicillin.SleepWell.Prozac.Benicar.Nymphomax.Zetia.Advair.Cozaar.Lasix.Zocor.Buspar.Female Pink Viagra.Lipitor.Ventolin.Acomplia….
Head http://fiz.to6.i34.co : Sunfire…
Head…
…
BUY FASHION. TOP BRANDS: GUCCI, DOLCE&GABBANA, BURBERRY, DIESEL, ICEBERG, ROBERTO CAVALLI, EMPORIO ARMANI, VERSACE…
symbicort vs advair…
Buyno prescription…
cephalexin dosage for dogs…
Buygeneric drugs…
actonel@adverse.reactions” rel=”nofollow”>……
Buygeneric meds…
allopurinol@and.coumadin” rel=”nofollow”>……
Buygeneric drugs…
ashwagandha@supplement.now” rel=”nofollow”>……
Buygeneric meds…
atarax@and.hives” rel=”nofollow”>.…
Buygeneric drugs…
Chantix@official.site” rel=”nofollow”>.…
Buydrugs without prescription…
Risperdal@official.site” rel=”nofollow”>..…
Buynow it…