ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / XAML functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
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
// -- Initialization code of DOTNET_Xaml_OK control
MyString is string = [
<Button Name="Test" Width=20>OK</Button>
]
DOTNET_Xaml_OK = MyString
 
// Value of two properties
Info("Name of control: ", XamlProperty(DOTNET_Xaml_OK, "Test", "Name"))
Info("Size of font: ", XamlProperty(DOTNET_Xaml_OK, "Test", "FontSize"))
// Error?
IF ErrorOccurred = True THEN
Error(ErrorInfo())
END
// -- Initialization code of DOTNET_Xaml_OK control
MyString is string = [
<Button Name="Test" Width=20>OK</Button>
]
DOTNET_Xaml_OK = MyString
 
// Modify a property
XamlProperty(DOTNET_Xaml_OK, "Test", "FontSize", 15)
// Error?
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 is requested.
This name is case sensitive.
<Property name>: Character string
Name of .Net property whose value is requested. See the .Net documentation for more details.
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. See the .Net documentation for more details.
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 technical support about the properties of .Net controls.
    You will find the different properties supported by the .Net controls in their own documentation.
Component: wd290obj.dll
Minimum version required
  • Version 11
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help