PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
XamlEvent (Function)
In French: XamlEvénement
Associates a procedure written in WLanguage with an event of Xaml control.
Once XamlEvent has been run, the procedure will be run whenever the selected event is triggered.
Example
// -- Initialization code of DOTNET_Xaml_OK
MyString is string = [
<Button Name="Button1" Width="20">OK</Button>
]
DOTNET_Xaml_OK = MyString
XamlEvent(DOTNET_Xaml_OK, "Button1", "Click", MyOnClickProcedure)
// -- Procedure MyOnClickProcedure
PROCÉDURE MyOnClickProcedure
Info("The OK button was clicked")
Syntax
XamlEvent(<Xaml control> [, <Name of .Net Control>] , <Event Name> , <Procedure>)
<Xaml control>: Control name
Name of Xaml control.
<Name of .Net Control>: Optional character string (with quotes)
Name of the .Net control that will be associated with <Procedure>. If this parameter is not specified, <Procedure> will be associated with the Xaml control only.
This name is case sensitive.
<Event Name>: Character string
Name of the event associated with the Xaml control and/or with the .Net control that triggers the procedure.
<Procedure>: Character string (with or without quotes)
Name of WLanguage procedure called when the event is triggered.
This procedure must contain the number of parameters supplied by the event and it may possibly return a result (see the documentation for the .Net control).
Remarks
  • XamlEvent should be called in the initialization code of the Xaml control.
  • Important: PC SOFT provides no technical support about the operating mode of .Net controls.
    You will find the different events supported by the .Net controls in their own documentation.
Components
WINDEVReports and Queries wd230obj.dll
See also
Minimum required version
  • Version 11
This page is also available for…
Comments
Click [Add] to post a comment