Skip to content

Instantly share code, notes, and snippets.

@kevingosse kevingosse/AdaptiveImage.cs Secret
Created Jan 12, 2016

What would you like to do?
namespace CustomControls
public class AdaptiveImage : ContentControl
public static readonly DependencyProperty SourceProperty = DependencyProperty.Register(
new PropertyMetadata(null, OnSourceChanged));
public AdaptiveImageSource Source
get { return this.GetValue(SourceProperty) as AdaptiveImageSource; }
set { this.SetValue(SourceProperty, value); }
private static void OnSourceChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.