AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Funciones WLanguage / Controles, páginas y ventanas / Funciones XAML
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
Used to find out and modify the value of a .Net property for an Xaml control or for a Carousel control.
Ejemplo
// -- 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("Control name: ", XamlProperty(DOTNET_Xaml_OK, "Test", "Name"))
Info("Font size: ", 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
Sintaxis

Finding out the value of a .Net property Ocultar los detalles

<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 Ocultar los detalles

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.
Observaciones
  • 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.
Componente: wd300obj.dll
Versión mínima requerida
  • Versión 11
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 27/03/2025

Señalar un error o enviar una sugerencia | Ayuda local