I want to create a control like this:

I created view and viewmodel of this control and I added new property – “FileURL”.
I want to use this property like this:
<vm:FileSelector FileURL="{Binding Something}"/>
And now it is a problem:
My new control contains button and textbox.
I want that property “FileURL” of FileSelector contains the same value as “Text” of TextBox used inside FileSelector.
So in XAML declaration of new control i wanted to add something like that:
<UserControl x:Class="namespace.FileSelector"
...
FileURL="{Binding ElementName=txtBoxExampleName, Path=Text}">
But this operation is not allowed.
I do not know how can i change value of property “FileURL” inside FileSelector control using MVVM pattern.
Assuming that FileURL is a
DependencyPropertyin FileSelector then you would just do the following in the FileSelector.xaml: