# Getting the value of an inputBox with ignoreStyle="true"

**URL:** <https://forums.fusetools.com/t/getting-the-value-of-an-inputbox-with-ignorestyle-true/4671>\
**Category:** How-to Discussions\
**Created:** [May 10, 2016, 4:16pm UTC](https://forums.fusetools.com/t/getting-the-value-of-an-inputbox-with-ignorestyle-true/4671 "2016-05-10T16:16:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![zaulin](https://avatars.discourse-cdn.com/v4/letter/z/d26b3c/32.png) [@zaulin](https://forums.fusetools.com/u/zaulin)\
**Post date:** [May 10, 2016, 4:16pm UTC](https://forums.fusetools.com/t/getting-the-value-of-an-inputbox-with-ignorestyle-true/4671/1 "2016-05-10T16:16:44Z")

</div>

Hi,

i have a class defined for my inputboxes:

```auto
<TextInput ux:Class="inputBox" IgnoreStyle="true" ClipToBounds="false" Margin="0,0,10,0" Padding="20,7,20,7" Alignment="VerticalCenter">
    <TextEdit FontSize="14"/>
    <Rectangle Layer="Background" CornerRadius="10">
        <Stroke Width="1" Brush="#7d7d7d"/>
    </Rectangle>
</TextInput>

```

that i use somewhere else:

```auto
<inputBox TextColor="#000f" Value="{myInputBoxValue}">

```

the problem i have is that as long as i define the class with IgnoreStyle=“true” i cannot access the value of the inputBox (i always get “”) and the same happens if i want to use the “ValueChanged”

What am i missing in the class to be able to get the value of my inputBox ??

Thnx

---

<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:** [May 10, 2016, 7:12pm UTC](https://forums.fusetools.com/t/getting-the-value-of-an-inputbox-with-ignorestyle-true/4671/2 "2016-05-10T19:12:57Z")

</div>

Hi!

You shouldn’t put a TextEdit inside a TextInput. The TextInput itself will do.

```auto
<TextInput ux:Class="InputBox" IgnoreStyle="true" ClipToBounds="false" Margin="0,0,10,0" Padding="20,7,20,7" Alignment="VerticalCenter" FontSize="14">
    <Rectangle Layer="Background" CornerRadius="10">
        <Stroke Width="1" Brush="#7d7d7d"/>
    </Rectangle>
</TextInput>

```

Also, the Fuse convention is to use upper-case first letter for class names.

Please let me know if this works for you.

---

<div class="post-metadata">

**Author:** ![zaulin](https://avatars.discourse-cdn.com/v4/letter/z/d26b3c/32.png) [@zaulin](https://forums.fusetools.com/u/zaulin)\
**Post date:** [May 10, 2016, 8:26pm UTC](https://forums.fusetools.com/t/getting-the-value-of-an-inputbox-with-ignorestyle-true/4671/3 "2016-05-10T20:26:09Z")

</div>

Hi,

i copy+pasted from an old file i didn’t even notice that i was using textInput instead of textEdit

that worked for me:

```auto
<TextEdit ux:Class="inputBox" ClipToBounds="false" Margin="0,0,10,0" Padding="20,7,20,7" Alignment="VerticalCenter" TextAlignment="Left" FontSize="14" > 
    <Rectangle Layer="Background" CornerRadius="10">
        <Stroke Width="1" Brush="#7d7d7d"/>
    </Rectangle>
</TextEdit>

```

i am using lower case firt letter as then it’s easier to recognise wich class are custom.
