4 Comments

I’ve recently started using the Telerik’s RadControls for Windows Phone. Here’s a convention for Caliburn.Micro which allows the easier usage of RadTransitionControl:

            ConventionManager.AddElementConvention<RadTransitionControl>(ContentControl.ContentProperty, "DataContext", "Loaded").GetBindableProperty =
        delegate(DependencyObject foundControl)
        {
            var element = (ContentControl)foundControl;

            var useViewModel = element.ContentTemplate == null;

            if (useViewModel)
            {
                return View.ModelProperty;
            }

            return ContentControl.ContentProperty;
        };

With this convention you can use the RadTransitionControl similar to ContentControl but with the difference that RadTransitionControl will show an effect (like fading) when the content changes. Here’s an example where the convention is used by Caliburn.Micro to automatically bind a control named Target to the ViewModel’s property:

XAML:

<telerikPrimitives:RadTransitionControl x:Name="Target" />

View model:

        public NewTargetBaseViewModel Target
        {
            get { return target; }
            set
            {
                target = value;
                NotifyOfPropertyChange(() => Target);
            }
        }

Comments

Comment by Michael Kors Sandals

Michael Kors Sandals...

This website is really a walk-by for all of the data you wished about this and didn know who to ask....

Comment by coach outlet online

coach outlet online...

I the difficulty is something that not sufficient individuals are speaking intelligently about. I am very completely satisfied that I stumbled throughout this in my search for something regarding this....

Comment by ray ban sunglasses discount

ray ban sunglasses discount...

I must test with you here. Which is not something I usually do! I enjoy reading a post that can make individuals think. Additionally, thanks for allowing me to remark!...

Comment by nike free 5.0

nike free 5.0...

Oh my goodness! an incredible article dude. Thank you Nevertheless I am experiencing challenge with ur rss . Donꊰ know why Unable to subscribe to it. Is there anybody getting similar rss problem?...