Hello,
Welcome to Microsoft Q&A.
If you want to bind the properties in the current page and make dynamic changes, you need to let the class inherit the INotifyPropertyChanged interface and configure the properties. In this way, when the properties are modified, the UI will be notified to change.
Xaml
<RelativePanel x:Name="messagebox" CornerRadius="6,6,6,6" BorderThickness="3,3,3,3" RelativePanel.AlignHorizontalCenterWithPanel="True"
RelativePanel.AlignVerticalCenterWithPanel="True" Width="250" Height="120" BorderBrush="CornflowerBlue" Opacity="0">
<RelativePanel.Projection>
<PlaneProjection RotationX= "{x:Bind Xplane, Mode=OneWay}"/>
</RelativePanel.Projection>
</RelativePanel>
Xaml.vb
Public NotInheritable Partial Class RelativePanelPage
Inherits Page
Implements INotifyPropertyChanged
Private _xplane As Double
Public Property Xplane As Double
Get
Return _xplane
End Get
Set(ByVal value As Double)
_xplane = value
OnPropertyChanged("Xplane")
End Set
End Property
Private timermessage As DispatcherTimer = New DispatcherTimer()
Public Sub New()
Me.InitializeComponent()
Xplane = 30
timermessage.Interval = TimeSpan.FromMilliseconds(234)
timermessage.Tick += AddressOf Time_Tick
timermessage.Start()
End Sub
Private Sub Time_Tick(ByVal sender As Object, ByVal e As Object)
Xplane += 1
If Xplane > 90 Then timermessage.[Stop]()
End Sub
Public Event PropertyChanged As PropertyChangedEventHandler
Public Sub OnPropertyChanged( ByVal Optional propertyName As String)
PropertyChanged?.Invoke(Me, New PropertyChangedEventArgs(propertyName))
End Sub
End Class
Thanks.