Binding not working

Mar 23, 2014 at 11:32 AM
Due to my project nature I need to use {Binding} in the XAML to set the correct URL and URI for the Adv xml files.

I've discovered how ADRotator is built this does not works. The binding info is never stored in the internal variables.
Coordinator
Mar 23, 2014 at 12:54 PM
Could you elaborate on that?
All the external properties in the control use dependency properties to expose them to binding and I've not had any issue in the past with them.

If you feel there is a need for a change, then connect to the V2 GitHub repository and submit a change for review ad we'll include it.
https://github.com/Adrotator/AdrotatorV2
Mar 24, 2014 at 9:19 AM
Edited Mar 24, 2014 at 9:32 AM
It's quite simple, create a viewModel for Adv properties with a field dynamicAd and then bind the SettingsURL property to such ViewModel
                                <adRotator:AdRotatorControl x:Name="adControl"
                                DefaultSettingsFileUri="AdData/defaultAdSettings.xml"
                                SettingsUrl="{Binding dynamicAd}"
                                SlidingAdDirection="None"
                                Width="480"
                                Height="80">
This binding will not work. SettingsURL property in the code will always remain empty.

M