ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Controls, pages and windows / XAML functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
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
// -- Initialisation du champ Xaml DOTNET_Xaml_OK
MaChaîne is string = [
<Button Name="Bouton1" Width="20">OK</Button>
]
DOTNET_Xaml_OK = MaChaîne
XamlEvent(DOTNET_Xaml_OK, "Bouton1", "Click", MaProcédureSurClic)
// -- Procédure MaProcédureSurClic
PROCEDURE MaProcédureSurClic
Info("Clic sur le bouton OK")
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
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
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
  • It is recommended to call XamlEvent in the Xaml control initialization code.
  • Important: PC SOFT does not support detailed operation of .Net controls.
    You will find the different events supported by the .Net controls in their own documentation.
Component: wd300obj.dll
Minimum version required
  • Version 11
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/27/2025

Send a report | Local help