Welcome to WindowsClient.net | My Blog | Sign in | Join

Community Blogs

Sponsors





  • advertise here

Browse by Tags

All Tags » Development (RSS)
Sorry, but there are no more tags available to filter with.
Using MVVM (Model-View-ViewModel)
The simple way to organize and define your projects for MVVM pattern. MVVM.CS public interface IView <T> { T ViewModel { get ; set ; } } public interface IViewModel <T> { T View { get ; set ; } } SampleView.xaml < UserControl.DataContext...
Posted: Dec 13 2009, 12:19 PM by mentas
Filed under:
UInertia
Basic and elementary class to bring up UI inertia like iPhone/Surface dragging effect, force-directed layouts, etc.. public class UInertia { private DependencyObject element = null ; private DependencyProperty property = null ; public UInertia( DependencyObject...
Posted: Dec 12 2009, 07:55 PM by mentas
Filed under:
AnimationExtensions
Here's an extensions methods to help animations on UIElements, Transforms, Brushs or whatever DependencyObject in code without need of XAML Storyboards. public static class AnimationExtensions { public static void ChangeState( this Control source...
Posted: Dec 12 2009, 11:52 AM by mentas
Filed under:
Queued and Paged ObservableCollection
If you don't want to show all collection items at the some time.. public class QueuedObservableCollection <T> : ObservableCollection <T> { private Queue <T> queue = new Queue <T>(); private DispatcherTimer queue_timer = new...
Posted: Dec 05 2009, 04:21 PM by mentas
Filed under:
ItemsFeed
Here's my proposal to break the limitations of current data/web feeds formats Simplicity Structured/Unstructured Relational Search and Filter friendly Templating and DataBinding friendly Concepts: ItemsFeed - is a data/web format (like RSS/Atom),...
Posted: Nov 24 2009, 06:08 AM by mentas
Filed under:
NavigableDynamicItem (Part II)
A navigable version of DynamicItem . Now you can define forward/backward behaviors. NavigableDynamicItem.cs public class NavigableDynamicItem : Control { private object temp_data = null ; public NavigableDynamicItem() { this .DefaultStyleKey = typeof...
Posted: Nov 15 2009, 12:33 PM by mentas
Filed under:
NavigableDynamicItem (Part I)
A navigable version of DynamicItem . Now you can define forward/backward behaviors. Generic.xaml < Style TargetType ="local:NavigableDynamicItem"> < Setter Property ="Template"> < Setter.Value > < ControlTemplate...
Posted: Nov 15 2009, 12:32 PM by mentas
Filed under:
Ticker
You can use this panel as ItemsPanelTemplate on ItemsControl , ListBox , ... Note: For a better control over delta FPS use a Storyboard instead DispatcherTimer . public class Ticker : Canvas { public static readonly DependencyProperty DelayProperty; public...
Posted: Nov 14 2009, 09:49 PM by mentas
Filed under:
WPF/SL binding converters (Part III)
Plain text and image extraction from HTML... public class TextConverter : IValueConverter { #region IValueConverter Members public object Convert( object value, Type targetType, object parameter, CultureInfo culture) { return Regex.Replace(( string )value...
Posted: Nov 14 2009, 09:41 PM by mentas
Filed under:
WPF/SL binding converters (Part II)
XmlDataProvider (Text, Number and DateTime) sorting... public class TextSortConverter : IValueConverter { #region IValueConverter Members public object Convert( object value, Type targetType, object parameter, CultureInfo culture) { if (value != null...
Posted: Nov 14 2009, 09:40 PM by mentas
Filed under:
WPF/SL binding converters (Part I)
Number round and DateTime format... public class NumericConverter : IValueConverter { #region IValueConverter Members public object Convert( object value, Type targetType, object parameter, CultureInfo culture) { if (! string .IsNullOrEmpty(( string Read...
Posted: Nov 14 2009, 09:38 PM by mentas
Filed under:
DynamicItem
The ideia is something like "TransitionControl" concept (included in Toolkit), but using DataContext (Binding/Templating) and VisualStates. DynamicItem is a Control and must to be templated and the entering/leaving behaviors defined using the...
Posted: Nov 14 2009, 06:17 PM by mentas
Filed under:
Zoombox
Basic implementation of " Blendables Essentials Mix " concept for Silverlight. Zoombox.xaml < UserControl x : Class ="Sample.Zoombox" xmlns ="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns : x ="http...
Posted: Nov 03 2009, 01:52 PM by mentas
Filed under:
CollectionFlow
CollectionFlow is a Carousel , CoverFlow , whatever (change it properties and get what you want) for Microsoft Silverlight 3.0 . Unlike other samples, CollectionFlow inherit from ItemsControl , then you can use DataBinding / DataTemplate and change ItemsPanel...
Posted: Oct 10 2009, 03:48 PM by mentas
Filed under:
UX Guidelines
Some User eXperience guidelines. Read More...
Posted: Jun 27 2009, 05:01 PM by mentas
Filed under:
Next page »