Changing Styles with the times (Answers and Thoughts)

I had a really good set of conversations about the issue of loading styles and new UI designs into an Avalon app. Thanks go out to Micheal Latta and Jason [MobiForm]Here’s some of the conversation and some comments I have around them.It is certanly possible to load different UI controls into a window at run-time. AVPad does this now to a degree. The real issue is going to be hooking the UI up to the code behind class(es).


This content originally appeared on Modern Web Development with Chrome and was authored by Paul Kinlan

<p>I had a really good set of conversations about the issue of loading styles and new UI designs into an Avalon app. Thanks go out to Micheal Latta and Jason [MobiForm]<p />Here's some of the conversation and some comments I have around them.<p /><blockquote class="posterous_medium_quote"><p>It is certanly possible to load different UI controls into a window at run-time. AVPad does this now to a degree. The real issue is going to be hooking the UI up to the code behind class(es). Loading XAML at runtime will not benifit from the event delegate generation and element naming that exist in the compiled code/BAML combination. If the XAML loader parses all properties and retains those as properties at run-time you could do a pass on the parse tree to hook these things up at run-time. I expect to see many applications offering this type of pluggable UI model as Avalon sinks into the developer community. --Michael</p></blockquote><p>Essentially what is being implied here is that you can load up XAML at runtime but you will have to re-hook up the properties and the events at run-time because the loader. However, I have been thinking that getting the people who change the UI to create BAML is not all of a problem really. Therefore the app will be able to load a new compiled XAML file and use the same UI class on the backend.</p><p>An example might be we design two layouts each different from each other however they both share the same code-behind class:</p><p><window class="AvalonApplication1.Window1" xmlns="http://schemas.microsoft.com/winfx/avalon/2005" x="http://schemas.microsoft.com/winfx/xaml/2005" text="AvalonApplication1"><p /><window class="AvalonApplication1.Window1" xmlns="http://schemas.microsoft.com/winfx/avalon/2005" x="http://schemas.microsoft.com/winfx/xaml/2005" text="AvalonApplication2"> </p><p>This might work, I haven't tried it yet. </p><p>I am looking into loading a <a href="http://www.kinlan.co.uk/2005/06/changing-styles-with-times.html" rel="tag">XAML</a> file that simply contains resources at runtime and then assigning them also at runtime. I will let you know of the results.</p></p>


This content originally appeared on Modern Web Development with Chrome and was authored by Paul Kinlan


Print Share Comment Cite Upload Translate Updates
APA

Paul Kinlan | Sciencx (2005-06-25T00:00:00+00:00) Changing Styles with the times (Answers and Thoughts). Retrieved from https://www.scien.cx/2005/06/25/changing-styles-with-the-times-answers-and-thoughts/

MLA
" » Changing Styles with the times (Answers and Thoughts)." Paul Kinlan | Sciencx - Saturday June 25, 2005, https://www.scien.cx/2005/06/25/changing-styles-with-the-times-answers-and-thoughts/
HARVARD
Paul Kinlan | Sciencx Saturday June 25, 2005 » Changing Styles with the times (Answers and Thoughts)., viewed ,<https://www.scien.cx/2005/06/25/changing-styles-with-the-times-answers-and-thoughts/>
VANCOUVER
Paul Kinlan | Sciencx - » Changing Styles with the times (Answers and Thoughts). [Internet]. [Accessed ]. Available from: https://www.scien.cx/2005/06/25/changing-styles-with-the-times-answers-and-thoughts/
CHICAGO
" » Changing Styles with the times (Answers and Thoughts)." Paul Kinlan | Sciencx - Accessed . https://www.scien.cx/2005/06/25/changing-styles-with-the-times-answers-and-thoughts/
IEEE
" » Changing Styles with the times (Answers and Thoughts)." Paul Kinlan | Sciencx [Online]. Available: https://www.scien.cx/2005/06/25/changing-styles-with-the-times-answers-and-thoughts/. [Accessed: ]
rf:citation
» Changing Styles with the times (Answers and Thoughts) | Paul Kinlan | Sciencx | https://www.scien.cx/2005/06/25/changing-styles-with-the-times-answers-and-thoughts/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.