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
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.
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