Tag: style

Articles and experiments related to style.

The Successes of my first AJAX Application: Part 6 - Introduction

This blog post, the sixth in my "Successes and Failures of my First AJAX Application" series, discusses how my blogging style is evolving. I'm focusing on improving my grammar, the topics I cover, post length, and what I include in my blogs. This self-reflection aims to improve how I communicate with my readers. More details on each area are available via the provided links.

Read article

DoubleAnimation Crashes XAMLPad (MayCTP): Some Answers To Questions

DoubleAnimation crashes in XAMLPad (May CTP) when animating Width or Height without specifying both "From" and "To" values, or when a base value isn't set. This is because the animation infers these values from the base value, which may not be available until layout execution. Setting the Width or Height on the element or in a style usually resolves the issue. However, I encountered a case where animating a MenuItem's width failed even after attempting to set a default width through a style. A suggested solution involved explicitly setting the width on the element, as the animation infers the 'To' value from the base value, which needs to be available for a smooth transition. I then tried setting a default Width on the MenuItem Style and the crash still occurs in XAMLPad. My next step is to test this in a WinFX application.

Read article

XAML Menu Throbbing! (Answers to Questions)

I've found answers to my XAML menu throbbing questions! Using RoutedEvents in ControlTemplates (and DataTemplates!) lets me start and stop timelines for animations. I can place these triggers inside styles, and it turns out TargetName isn't always required. A cool discovery: storyboards inside ControlTemplates/DataTemplates can be accessed by any control matching the style's TargetType. My wobbly menu example demonstrates these techniques.

Read article

Stay in the loop.

I'm trialing a newsletter. Join for monthly insights into web dev, Chrome, and the open web.

alternate_email

Get in touch

Open to chat about Chrome or Web development.

Book a consultation