control is not accessible in code behind
-
Hi, I have few simple controls defined in xaml in wpf. In the code behind when I try to access this control they are coming up and also coming in VS intellisence. But during run time these controls are always null. as a result UI doesn't show. Any reasons? Thanks
-
Hi, I have few simple controls defined in xaml in wpf. In the code behind when I try to access this control they are coming up and also coming in VS intellisence. But during run time these controls are always null. as a result UI doesn't show. Any reasons? Thanks
are you calling InitializeComponent()?
-
are you calling InitializeComponent()?
-
Hi, I have few simple controls defined in xaml in wpf. In the code behind when I try to access this control they are coming up and also coming in VS intellisence. But during run time these controls are always null. as a result UI doesn't show. Any reasons? Thanks
Hi, Is the runat="server" attribute attached to the control? can you post code of atleast one control? -Manognya __________________________________________________ $ God gives what is best.Not what all you wish :)
-
Hi, Is the runat="server" attribute attached to the control? can you post code of atleast one control? -Manognya __________________________________________________ $ God gives what is best.Not what all you wish :)
manognya kota wrote:
Is the runat="server" attribute attached to the control?
Why would it be? He's using WPF, which doesn't have this attribute.
Forgive your enemies - it messes with their heads
"Mind bleach! Send me mind bleach!" - Nagy Vilmos
My blog | My articles | MoXAML PowerToys | Mole 2010 - debugging made easier - my favourite utility
-
manognya kota wrote:
Is the runat="server" attribute attached to the control?
Why would it be? He's using WPF, which doesn't have this attribute.
Forgive your enemies - it messes with their heads
"Mind bleach! Send me mind bleach!" - Nagy Vilmos
My blog | My articles | MoXAML PowerToys | Mole 2010 - debugging made easier - my favourite utility
Oops!! My mistake...Thanks for the correction.dint notice its WPF -Manognya __________________________________________________ $ God gives what is best.Not what all you wish :)
-
Then run with first chance exceptions turned on. Should tell you what the problem is.
-
Then run with first chance exceptions turned on. Should tell you what the problem is.