Quantcast
Viewing all articles
Browse latest Browse all 18858

Binding ElementName over different namespaces

Hallo, I have a Slider

<Slider x:Name="OpacitySlider" VerticalAlignment="Center" Minimum="0.2" Maximum="1" Value="0.5"  FontSize="15" LargeChange="0.1"  />

 in the main application and a control inside a UserControl which I want to bind to the OpacitySlider.

<Canvas Background="LightGray" ClipToBounds="True" Opacity="{Binding ElementName=OpacitySlider,Path=Value}"  >

Is it possible to to elementbind over different namespaces? Thanks for help in advance



Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>