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
XamlProperty (Function)
In french: XamlPropriété
Used to find out and modify the value of a .Net property for an Xaml control or for a Carousel control.
Example
// -- Code d'initialisation du champ Xaml DOTNET_Xaml_OK
MaChaîne is string = [
<Button Name="Test" Width=20>OK</Button>
]
DOTNET_Xaml_OK = MaChaîne

// Valeur de deux propriétés
Info("Nom du contrôle : ", XamlProperty(DOTNET_Xaml_OK, "Test", "Name"))
Info("Taille de la police : ", XamlProperty(DOTNET_Xaml_OK, "Test", "FontSize"))
// Erreur ?
IF ErrorOccurred = True THEN
	Error(ErrorInfo())
END
// -- Code d'initialisation du champ Xaml DOTNET_Xaml_OK
MaChaîne is string = [
<Button Name="Test" Width=20>OK</Button>
]
DOTNET_Xaml_OK = MaChaîne

// Modification d'une propriété
XamlProperty(DOTNET_Xaml_OK, "Test", "FontSize", 15)
// Erreur ?
IF ErrorOccurred = True THEN
	Error(ErrorInfo())
END
Syntax

Finding out the value of a .Net property Hide the details

<Result> = XamlProperty(<Xaml control> , <Name of .Net control> , <Property name>)
<Result>: Type depending on the specified property
Value of specified property.
<Xaml control>: Control name
Name of Xaml control.
<Name of .Net control>: Character string
Name of .Net control whose property you want to get.
This name is case sensitive.
<Property name>: Character string
Name of .Net property whose value you want to get. For more details, see the .Net documentation.
This name is case sensitive.

Modifying the value of a .Net property Hide the details

XamlProperty(<Xaml control> , <Name of .Net control> , <Property name> , <New value>)
<Xaml control>: Control name
Name of Xaml control.
<Name of .Net control>: Character string
Name of .Net control whose property will be modified.
This name is case sensitive.
<Property name>: Character string
Name of the .Net property to modify. For more details, see the .Net documentation.
This name is case sensitive.
<New value>: Type depending on the specified property
New value for the specified property.
Remarks
  • If an error occurs, the ErrorOccurred variable is set to True.
  • Important: PC SOFT provides no support for detailed .Net control properties.
    You will find the different properties 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