Summary
Executes the specified action if the element is loaded or at the loaded event if it's not loaded.
- Namespace
- MahApps
.Metro .Controls - Containing Type
- Extensions
Syntax
public static void ExecuteWhenLoaded(this FrameworkElement element, Action invokeAction)
Parameters
Name | Type | Description |
---|---|---|
element | FrameworkElement | The element where the action should be run. |
invokeAction | Action | An action that takes no parameters. |
Return Value
Type | Description |
---|---|
void |