# Xaml error..?

**URL:** <https://forum.dynamobim.com/t/xaml-error/41496>\
**Category:** Uncategorized\
**Created:** [October 7, 2019, 7:17am UTC](https://forum.dynamobim.com/t/xaml-error/41496 "2019-10-07T07:17:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![saju\_autodesk](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/saju_autodesk/32/61838_2.png) [@saju\_autodesk](https://forum.dynamobim.com/u/saju_autodesk)\
**Post date:** [October 7, 2019, 7:17am UTC](https://forum.dynamobim.com/t/xaml-error/41496/1 "2019-10-07T07:17:58Z")

</div>

in continuation to my previous post about starting to learn WPF, I have created a small form which works fine inside VS but gives me a error through RPS Py revit .

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/d/4de809b1a05a8046b3a7d80278e79194290d8ba7.png)  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/5/4/54c415966b394b4bb6f68a33068473db591224f9.png)  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/a/e/ae1ff420396a923514a864d500136f63636ecc36.png)

Although I knew that non dynamo stuffs are not entertained in this forum, I believe this may be used inside of dynamo as well with little tweaks so request to kindly bear with this.

EDIT:  
Sorry forgot add this that It worked fine without any content after removing this line from xaml

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/a/c/aca1b921e6c6aec2bae4dc317025436b7e620f50.png)

---

<div class="post-metadata">

**Author:** ![Thomas\_Mahon](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/thomas_mahon/32/64209_2.png) [@Thomas\_Mahon](https://forum.dynamobim.com/u/Thomas_Mahon)\
**Post date:** [October 7, 2019, 7:29am UTC](https://forum.dynamobim.com/t/xaml-error/41496/2 "2019-10-07T07:29:50Z")

</div>

It might be the indentation of your code-behind which looks incorrect, specifically the button click event method and its statement body - the code itself appears to be fine.

---

<div class="post-metadata">

**Author:** ![saju\_autodesk](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/saju_autodesk/32/61838_2.png) [@saju\_autodesk](https://forum.dynamobim.com/u/saju_autodesk)\
**Post date:** [October 7, 2019, 7:39am UTC](https://forum.dynamobim.com/t/xaml-error/41496/3 "2019-10-07T07:39:20Z")

</div>

yea…! now works fine…! thanks
