I have created my own UserControl "ClockControl", which I initialize through the main window's XAML.
The only problem is that I have to pass a parameter to the constructor of the clock control, and I have no clue of I how I can do that.
This works if I have no parameters:
<myControl:ClockControl></myControl:ClockControl>
But how can I pass a parameter doing this?
Here is the constructor:
public ClockControl(String city)
{
InitializeComponent();
this.initController();
......
.....
}
Thanks in advance.