Skip to content
| Marketplace
Sign in
Visual Studio>Tools>Build Dynamic User Interfaces in WPF with EasyScript
Build Dynamic User Interfaces in WPF with EasyScript

Build Dynamic User Interfaces in WPF with EasyScript

brettg.perth

|
1,628 clicks
| (0) | Free Trial
EasyScript is a .NET scripting tool which you can use in your .NET programs for any scripting need. But you can also use it much like T4, PHP or Classic ASP to generate portions of your WPF or Silverlight pages dynamically at runtime.
Get Started

EasyScript is a .NET scripting tool which you can use in your .NET programs for any scripting need.  But you can also use it much like T4, PHP or Classic ASP to generate portions of your WPF or Silverlight pages dynamically at runtime.  Your page becomes a template in which XAML and script code are mixed and run by EasyScript to generate your final page.

The main use of this method is for when you have a situation where you need to generate an unknown number of controls, for example for a query result of some sort.  We encounter this situation all the time with websites anytime a query returns multiple results (e.g. a Google or eBay search), and its no different with everyday business programming.  You can pass in .NET objects as parameters to the scripting context and use them directly in the script template as needed to generate your page.  For example, you can pass in a DataTable parameter to use to generate a number of Hyperlink controls on the page using a loop.  You run the script when its time to show the Page or Window, assigning the output of the script to the Content property of the Window.  The cool thing is, you still use the Visual Studio or Blend page editor to create and maintain your pages.  The key is you embed the script using XML comments (<!-- -->) so it doesn't interfere with the the XAML page editor.

EasyScript is also great for generating any XML documents.  See the webpage and try the sample download to see how cool it really is (www.eztools-software.com).

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft