I am new to XAML, so please be aware that my question may contain some misundrestanding topic.
Is it possible to link the global (in relation to the window) position of the XAML usercontrol to check if it is currently displayed on the screen? A usercontrol is inserted inside a ScrollViewer, and I'm thinking of something like:
<UserControl x:Class="Test.MessageControl" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Width="300"> <StackPanel > <Label Name="LabelTest" Content="{Binding RelativeSource={RelativeSource Self}, Path=MAGIC-GOES-HERE-Location.Y }" /> </StackPanel> </UserControl>
, "" XAML ( , , ). WPF "". , , .
: , -, CAN , . (Microsoft , .)
:, UserControl , ActualHeight , "Location.Y" UserControl, , .
, , .
<Grid> - . . - HTML. ActualWidth ActualHeight - , .
<Grid>