# How change a property between 2 (.ux) Files.

**URL:** <https://forums.fusetools.com/t/how-change-a-property-between-2-ux-files/5143>\
**Category:** General\
**Created:** [October 14, 2015, 4:05pm UTC](https://forums.fusetools.com/t/how-change-a-property-between-2-ux-files/5143 "2015-10-14T16:05:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hernan\_Corrado](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/hernan_corrado/32/258_2.png) [@Hernan\_Corrado](https://forums.fusetools.com/u/Hernan_Corrado)\
**Post date:** [October 14, 2015, 4:05pm UTC](https://forums.fusetools.com/t/how-change-a-property-between-2-ux-files/5143/1 "2015-10-14T16:05:50Z")

</div>

Hi everyone,

I had a problem when I try to set a property between 2 “.ux” files, for example I want to change the property “Height” of a “Rectangle” (called “RectangleSubView”) inside the SubView.ux

Zipped Files: [https://fuseweb.azureedge.net/forum-user-uploads/2016/08/22/aMu7N2XOJDib-legacy-files-6okJNgbQczmhrb3t-bCTLXtgerASsYuAD2ZikCpNx.zip](https://s3.us-east-2.amazonaws.com/fuse-legacy-forum-assets/aMu7N2XOJDib-legacy-files-6okJNgbQczmhrb3t-bCTLXtgerASsYuAD2ZikCpNx.zip)

````auto

```ux
        <Button Text="Change in MainView (+)">

            <Clicked>
                <Set Target="RectangleMainView.Height" Increment="10"/>
            </Clicked>

        </Button>

        <Button Text="Change in MainView (-)">

            <Clicked>
                <Set Target="RectangleMainView.Height" Increment="-10"/>
            </Clicked>

        </Button>

        <Rectangle ux:Name="RectangleMainView" Width="250" Height="50" Background="#FF0000" />

        <!-- SubView Buttons Controllers -->

        <Button Text="Change in SubView (+)">
            <Clicked>
                <!-- How I must to set the "Target" to change the "Height" value -->
                <!-- <Set Target="RectangleSubView.Height" Increment="10"/> -->
            </Clicked>
        </Button>

        <Button Text="Change in SubView (-)">
            <Clicked>
                <!-- How I must to set the "Target" to change the "Height" value -->
                <!-- <Set Target="RectangleSubView.Height" Increment="-10"/> -->
            </Clicked>
        </Button>

        <!-- Start the External UX (SubView.ux) -->
        <SubView />
        <!-- End the External UX (SubView.ux) -->

````

---

<div class="post-metadata">

**Author:** ![Hernan\_Corrado](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/hernan_corrado/32/258_2.png) [@Hernan\_Corrado](https://forums.fusetools.com/u/Hernan_Corrado)\
**Post date:** [October 14, 2015, 4:13pm UTC](https://forums.fusetools.com/t/how-change-a-property-between-2-ux-files/5143/2 "2015-10-14T16:13:51Z")

</div>

This is the External UX (File SubView.ux)

````auto

```ux
        <Panel ux:Class="SubView">
            <Rectangle ux:Name="RectangleSubView" Width="250" Height="50" Background="#CCCCCC" />
        </Panel>

````

---

<div class="post-metadata">

**Author:** ![Kristian\_Hasselknipp](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/kristian_hasselknipp/32/549_2.png) [@Kristian\_Hasselknipp](https://forums.fusetools.com/u/Kristian_Hasselknipp)\
**Post date:** [October 14, 2015, 4:47pm UTC](https://forums.fusetools.com/t/how-change-a-property-between-2-ux-files/5143/3 "2015-10-14T16:47:08Z")

</div>

Hi!

If you remove Width and Height form the `Rectangle` inside `SubView` it should be sized to whatever Height you give SubView. So you can do the following:

```auto
<Panel ux:Class="SubView">
      <Rectangle Background="#CCCCCC" />
</Panel>

```

In MainView.ux

```auto
<SubView Height="50" Width="250" />

```

If you put more stuff in your SubView class, you might have to resort to resource-bindings: [https://www.fusetools.com/learn/fuse#-resource-s-and-ux-key-](https://www.fusetools.com/learn/fuse#-resource-s-and-ux-key-)
