# OnUserEvent parameters

**URL:** <https://forums.fusetools.com/t/onuserevent-parameters/5134>\
**Category:** How-to Discussions\
**Created:** [May 9, 2016, 8:58am UTC](https://forums.fusetools.com/t/onuserevent-parameters/5134 "2016-05-09T08:58:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alex\_Lokhman](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/alex_lokhman/32/362_2.png) [@Alex\_Lokhman](https://forums.fusetools.com/u/Alex_Lokhman)\
**Post date:** [May 9, 2016, 8:58am UTC](https://forums.fusetools.com/t/onuserevent-parameters/5134/1 "2016-05-09T08:58:09Z")

</div>

Hi everyone! I know we can pass event parameters with `<UserEventArg />` to JavaScript `Handler` function but how to use these parameters in UX?

I raise the event with the following:

```auto
<RaiseUserEvent Name="modalEvent">
    <UserEventArg Name="message" StringValue="Dialog Message?" />
</RaiseUserEvent>

```

And have the following `<Panel>`:

```auto
<Panel ux:InnerClass="ModalScreen" ux:Name="self" Visibility="Collapsed">
    <OnUserEvent Name="modalEvent">
        <Set self.Visibility="Visible" />
    </OnUserEvent>

    <Panel Background="Black" Opacity="0.5" />
    <StackPanel Alignment="VerticalCenter" Padding="30" Margin="50" Background="White">
        <Text TextAlignment="Center" Value="{HOW TO GET 'message' ARGUMENT?}" />
        <Button Text="OK">
            <Clicked>
                <Set self.Visibility="Collapsed" />
            </Clicked>
        </Button>

        <WhileActive>
            <BringToFront />
        </WhileActive>
    </StackPanel>
</Panel>

```

How to show `message` in the `<Text>` node of the `<Panel>` when I raise the event?

---

<div class="post-metadata">

**Author:** ![Fernando\_Lins](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/fernando_lins/32/597_2.png) [@Fernando\_Lins](https://forums.fusetools.com/u/Fernando_Lins)\
**Post date:** [June 21, 2016, 4:03am UTC](https://forums.fusetools.com/t/onuserevent-parameters/5134/2 "2016-06-21T04:03:41Z")

</div>

Any examples for this, please?
