c# - XAML UI updates not visible in code-behind -


having same project opened in both, visual studio , blend, use former write code while edit xaml in latter.

when add ui element .xaml file , save in blend, if have file opened in visual studio too, see message external changes have been done , asking if want them take effect in opened file*. accept it, , can see changes take effect in .xaml file in visual studio.

the problem is, although new elements have been added .xaml file, i'm not able access them throug intellisense in code-behind .cs file.

for example if add following element mainpage.xaml using blend:

<button x:name="mybutton" content="button"/> 

i can see same line added page in visual studio, cannot access using name mybutton in mainpage.xaml.cs file. intellisense not working it. if write, example mybutton.content = "hello!"; red underlined, can build , run project.

rebuilding project doesn't trick, , intellisense doesn't work until save file "again" in visual studio.

i feel behavior annoying sometimes, , i'd know if normal behavior, or there wrong in configuration.

*i don't have opened in visual studio, avoid meessage being shown each modification in blend

i have check problem not issue. fine have save xaml page on have added button after accepting changes done in blend..(do control + s on xaml page 1 more time work fine)..sorry bad english..


Comments

Popular posts from this blog

javascript - DIV "hiding" when changing dropdown value -

Does Firefox offer AppleScript support to get URL of windows? -

android - How to install packaged app on Firefox for mobile? -