how to bind collection to custom control in wpf
I am building a custom control and I want to pass a collection to it so that control display that collection, my code is as the following : <gm:Calendar SubscriptionSource="{Binding Subscriptions}"></gm:Calendar> and in Custom control "Calendar" public static readonly DependencyProperty SubscriptionSourceProperty = DependencyProperty.Register( "SubscriptionSource", typeof(ObservableCollection<Subscription>), typeof(Calendar), new FrameworkPropertyMetadata(new ObservableCollection<Subscription>())); public ObservableCollection<Subscription> SubscriptionSource { get { return