Recommended

Skip Navigation LinksHome / Search

Search

 
Results Per Page

Found 23 results for Custom Controls.
Date between: <not defined> and <not defined>
Search in: News , Articles , Tips , Shows , Showcase , Books

Page 
  • 1
  • 2
  • 3
Next
Order by Publish Date   Ascending Title   Rating  

  • 0 comments  /  posted by  Silverlight Show  on  Apr 06, 2010 (2 months ago)
    If you are developing custom controls in Silverlight, this tip of Jeff Wilcox will be very useful for you.

    Here’s a few simple tips and recommendations when developing custom Silverlight controls, as it relates to template parts.



  • Flexible Progress Control

    0 comments  /  posted by  Silverlight Show  on  Jan 12, 2010 (5 months ago)

    Pete Blois has posted two very cool loading animations.

    The approach that I put together is a custom control (StoryboardedProgressControl) which is a subclass of ProgressBar, but uses an Storyboard to represent the loading progress. To use it you just create an animation of what the loading progress should look like and it just seeks to the appropriate time. This way you can represent progress in anything which can be animated- colors, paths, etc.

  • Extensibility Series – WPF & Silverlight Design-Time Code Sharing – Part I

    0 comments  /  posted by  Silverlight Show  on  Nov 23, 2009 (7 months ago)
    Tags: Extensibility , Custom Controls , WPF , Visual Studio 2010 , .NET 4 , Silverlight 3 , Silverlight 4
    This is the first in a series of posts of Karl Shifflett that will cover writing design-times for WPF & Silverlight custom controls for the WPF & Silverlight Designer for Visual Studio 2010 that target .NET 4.0 and Silverlight 3 and 4. 

    Normally in a series you start with a simple example and article. For this series I need to start with a level 300-400 example because this article and code is for the Development Tools Ecosystem Summit presentation that Mark Boulter and I did. The presentation was on how to write a design-time assembly that could be shared between WPF and Silverlight custom controls. Part I of this post covers Feedback and Rating control, design-time assembly discovery, loading and metadata creation.

  • 0 comments  /  posted by  Silverlight Show  on  Nov 13, 2009 (7 months ago)

    Kevin Dockx discusses a problem with collection properties being shared with all instances of your controls.

    Last week, I was helping out one of our clients with their Silverlight application.  An application which uses custom controls.  One of which contained a collection that seemed to behave as a singleton instead of on an instance level…  I remembered the problems I faced with this before, already thinking we wouldn’t find a solution to keep this collection dynamic.  However, I started searching around again, and lo and behold, it wasn’t long before I found this page on MSDN, describing the exact problem we were facing AND offering a reason and solution. 

  • How To Animate a Changing Property in a Custom Control in Silverlight

    0 comments  /  posted by  Silverlight Show  on  Sep 15, 2009 (9 months ago)

    For his recent visualization, Matthias Shapiro creates a custom control in Silverlight that animates the color of a Path every time a “Fill” property on the control is changed.

    First thing I learned was that you cannot use TemplateBinding in a Storyboard (I think). I asked this question on Stack Overflow and I haven’t gotten an answer. But I’m pretty sure that in Silverlight you cannot use TemplateBinding to attach a property to a KeyFrame value. This means that you have to have a pointer in the control code the allows access to the KeyFrame so you can update the value. I’ll walk through the conceptual part of animating a property in a Custom Control in Sivlerlight and then walk through the code to it.

  • 0 comments  /  posted by  Silverlight Show  on  Sep 11, 2009 (9 months ago)
    Tags: Buttons , Storyboard , Custom Controls , Silverlight 3
    In this blog post Matthias Shapiro explains what a PART is and how to create one for your custom control in Silverlight 3.

    There are basically five steps in creating a PART. I think you can actually do it in less, but I’m trying to follow what I think is proper coding practice. In this tutorial, we’re going create parts out of a Button and also a Storyboard (partly because there are different ways to assign a PART if it is in located in the control resources like a Storyboard is).

  • Simple Color Animation in Blend for a Button State

    0 comments  /  posted by  Silverlight Show  on  Sep 01, 2009 (9 months ago)
    This tutorial of Adam Kinney shows off a few concepts in Silverlight that Blend makes very simple to work with including: Custom Control creation, Color Animation, Resources and State Management.

    Although you can not animate between Brushes during different States, this tutorial demonstrates how to animate Colors to create a similar effect.

  • Custom Control Development: Simple Code Guidelines

    0 comments  /  posted by  Silverlight Show  on  Aug 27, 2009 (10 months ago)
    Jeff Wilcox wants to share with you some guidelines for custom control development.

    Over the next few posts, I’d like to occasionally share my thoughts on this topic, and whatever tips seem pertinent at the time of posting.

    I do admit that there’s a lot of flexibility in control development, so I’ll be basing a lot of my tips on both official and unofficial practices on the Silverlight Toolkit team. And I understand if you don’t agree with everything I have to say. But I do hope this information will be useful!

  • Silverlight Quick Tip: How to Perform a Hit Test

    0 comments  /  posted by  Silverlight Show  on  Aug 12, 2009 (10 months ago)
    Tags: Hit Tests , Custom Controls , Silverlight 3
    In this tip Alex Golesh explains about performing a hit test.

    In some cases, especially when developing rich UI application developer need to identify which control were clicked or under mouse pointer at some point of time or just under some coordinate at the UI. For those purposes Silverlight provides “FindElementsInHostCoordinates” function in VisualTreeHelper class.

    The function gets the Point (coordinate on the screen) or Rect (rectangular area) and UIElement which will be checked recursively to have any visual child's in desired coordinate/area. The function returns IEnumerable<UIElement>. 

  • Defining Custom VSM states for Custom Controls in Silverlight 3 / Blend 3

    0 comments  /  posted by  Silverlight Show  on  Aug 04, 2009 (10 months ago)

    Imran Shaik demonstrates how to use TemplateVisualState attributes to allow manipulation of visual states in your controls.

    In Silverlight 2.0/Expression Blend 2 SP1 creating a new VSM state was pretty straight forward, either for a UserControl or Custom Control a new Visual State could have been created by just clicking on create a new Visual state group, similarly XAML could have been manually editing the XAML.

    In Blend 3.0/Silverlight 3.0 you can still create visual states the old way for UserControls but for custom controls this option becomes disabled/unavailable.


Page 
  • 1
  • 2
  • 3
Next
Help us make SilverlightShow even better. Whether you'd like to suggest a change in the structure, content organization, section layout or any other aspect of SilverlightShow appearance - we'd love to hear from you! Need material (article, tutorial, or other) on a specific topic? Let us know and SilverlightShow content authors will work to have that prepared for you. (hide this)