Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
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.

Go Back   Vista Forums > Misc Newsgroups > Indigo

Vista - Automatic Event Handler method for on the fly generated zammel control

 
 
Old 09-15-2006   #1 (permalink)
Hardikbill


 
 

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


 
 

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


 
 

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 SpecsSystem Spec
 

Thread Tools


Similar Threads
Thread Forum
Add Event Handler to dynamic DropDownList?????? .NET General
Questions about delegate and event handler .NET General


Vista Forums 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 Ltd

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