PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
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
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 (with quotes)
Name of .Net control whose property is requested.
This name is case sensitive.
<Property name>: Character string (with quotes)
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 (with quotes)
Name of .Net control whose property will be modified.
This name is case sensitive.
<Property name>: Character string (with quotes)
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
  • The ErrorOccurred variable is set to True if an error occurred.
  • 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 : wd240obj.dll
Minimum version required
  • Version 11
This page is also available for…
Comments
Click [Add] to post a comment