Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

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.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > Indigo

Automatic Event Handler method for on the fly generated zammel control

 
 
Thread Tools Display Modes
Old 09-15-2006   #1 (permalink)
Hardikbill
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

Old 09-16-2006   #2 (permalink)
sprattel
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


Old 09-18-2006   #3 (permalink)
Hardikbill
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








Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50