We will have to use 2 concepts to do this :
The difficulty is to expose binding through user control by exposing property.
Add the namespace
<Window x:Class="DatePickerCustom.Views.MainWindowView" ... xmlns:controls="clr-namespace:DatePickerCustom.Controls"> <Grid> <controls:CustomDatePicker /> </Grid> </Window>
You have to declare a dependency property in file CustomDatePicker.xaml.cs as below :
@TODO explain through a schema