![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
|
Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
br> br> |
| |||||||
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| Guest | 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 |
| | #2 (permalink) |
| Guest | 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 |
| | #3 (permalink) |
| Guest | 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 |
| |
| |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Questions about delegate and event handler | Curious | .NET General | 3 | 04-23-2008 10:26 AM |
| Make Non Microsoft mail handler the default mail handler | Eddie | Vista General | 7 | 05-29-2007 06:06 PM |
| How to specify an event handler for the GridViewColumnHeader control in C#? | wackyphill@yahoo.com | Avalon | 12 | 11-07-2006 12:37 PM |