![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
| |
| | #1 (permalink) |
| | Automatic Event Handler method for on the fly generated zammel control Hi, I am trying to Generate UI for WinFX application on the fly. Under the process I am reading a text file. File contains the Xaml code for generating a UI of Grid Container and few other UI Elements in that container. A button is also there whose Click event is set to call upButton event handler method. <tButton Name="upButton" Click="upButton_Click" Grid.Column="1" Grid.Row="0">Up</Button> If the click event is not present and I read the file as stream and pass that to XamlReader then I get a object which can be converted in UIElement and shown as a control on the original form, but if click event is present error thrown is "Must compile XAML file that specifies events" even after implementing event handler method in code behind,. I don't find any use of reading Zammel on the fly if the Event Handler Method specified in the code behind does not get executed by click event. A useful help is expected Regards, Hardik Bhilota |
My System Specs![]() |
| | #2 (permalink) |
| | Re: Automatic Event Handler method for on the fly generated zammel control Hardikbill, this group is for indigo-related questions. You would probably have more luck in: microsoft.public.windows.developer.winfx.avalon Cheers --------------------------------------------------- Mikael Rydström Software developer Sogeti Sweden Blog: mikaelrydstrom.blogspot.com Hardikbill wrote: > Hi, > I am trying to Generate UI for WinFX application on the fly. Under the > process I am reading a text file. File contains the Xaml code for > generating a UI of Grid Container and few other UI Elements in that > container. A button is also there whose Click event is set to call > upButton event handler method. > > <tButton Name="upButton" Click="upButton_Click" Grid.Column="1" > Grid.Row="0">Up</Button> > > If the click event is not present and I read the file as stream and > pass that to XamlReader then I get a object which can be converted in > UIElement and shown as a control on the original form, but if click > event is present error thrown is "Must compile XAML file that specifies > events" even after implementing event handler method in code behind,. > I don't find any use of reading Zammel on the fly if the Event > Handler Method specified in the code behind does not get executed by > click event. > A useful help is expected > > Regards, > Hardik Bhilota |
My System Specs![]() |
| | #3 (permalink) |
| | Re: Automatic Event Handler method for on the fly generated zammel control Thanks for the guidence Sprattel sprattel wrote: > Hardikbill, this group is for indigo-related questions. You would > probably have more luck in: > microsoft.public.windows.developer.winfx.avalon > > Cheers > > --------------------------------------------------- > Mikael Rydström > Software developer > Sogeti Sweden > Blog: mikaelrydstrom.blogspot.com > > > > Hardikbill wrote: > > Hi, > > I am trying to Generate UI for WinFX application on the fly. Under the > > process I am reading a text file. File contains the Xaml code for > > generating a UI of Grid Container and few other UI Elements in that > > container. A button is also there whose Click event is set to call > > upButton event handler method. > > > > <tButton Name="upButton" Click="upButton_Click" Grid.Column="1" > > Grid.Row="0">Up</Button> > > > > If the click event is not present and I read the file as stream and > > pass that to XamlReader then I get a object which can be converted in > > UIElement and shown as a control on the original form, but if click > > event is present error thrown is "Must compile XAML file that specifies > > events" even after implementing event handler method in code behind,. > > I don't find any use of reading Zammel on the fly if the Event > > Handler Method specified in the code behind does not get executed by > > click event. > > A useful help is expected > > > > Regards, > > Hardik Bhilota |
My System Specs![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Add Event Handler to dynamic DropDownList?????? | .NET General | |||
| Questions about delegate and event handler | .NET General | |||