Hi,
Based on my understanding, you used APP.XAML.vb to define global variable, am I right? If so, please create property in APP.XAML
Private _gloVar As String
Property gloVar() As String
Get
Return _gloVar
End Get
Set(ByVal value As String)
_gloVar = value
End Set
End Property
Then in XAML's code behind create object for APP and then get the current instance.
Dim objApp As App = App.Current
objApp.gloVar = "Value"
If you want to use this variable, you can try as following code.
Dim objApp As App = App.Current
TextBlock.Text = " values are: " + objApp.gloVar
Please check as above steps again, hope it works, if I misunderstand, please feel free to let me know and follow up with more detailed information.
Best Regards,
Jambor
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.