Welcome to Windows Presentation Foundation (WPF)
Top Tasks :

WPF Team Bloggers

Browse by Tags

All Tags » .net 3.5 » XamlPadX   (RSS)

  • Creating Addins for XamlPadX

    I got a few queries after releasing XamlPadX v3 regarding creating addins for the tool. So here is a small post on it. :) Create a customControlLibrary project. Add a reference to the AddInView dll present in the XamlPadX folder which is located in the program files folder. Also add a reference to the 3.5 System.Addin dll. Now in the xaml file change the UserControl Tag into AddInAddInView < f:AddInAddInView x:Class = " customaddin.UserControl1 " xmlns = " http://schemas.microsoft.com/winfx/2006/xaml/presentation " xmlns:x = " http://schemas.microsoft.com/winfx/2006/xaml " xmlns:f = " http://foo " Height = " 200 " Width = " 200 " > < Grid > < Rectangle Fill = " red " Height = " 100 " Width = " 100 " /> </ Grid > </ f:AddInAddInView > the namespace is exposed as http://foo/ in the AddInView.dll :) Now for the code behind [ AddIn ( "MyAddin" , Description= "This is my addin" , Publisher= "MS" , Version= "1.0.0.0" )] public partial class UserControl1 : AddInViews. Read More...
  • XamlPadX V3.0

    So I finally got some time to upgrade XamlPadX... One of the things that I really wanted to add was the plugin support and here you have it. So now users can create their own addins which will plug into xamlpadX. Addin developers can use 3 functionalities of XamlPadX: void ChangeAppBackground( String str); String textBoxContents { get ; set ; } //this is the content in the xaml textbox int TextBoxCaretIndex //this is the caret index in the xaml textbox The color pallette is now included as an addin - so on installation we already have one plugin ready. All selected addins are included in the menu. To create a new addin, all you need is to create a control which extends AddInAddInView shown below ColorPallette : AddInViews. AddInAddInView You could override the SendSignal call which is made by XamlPadX on first displaying the addin... Bear in mind that the addins will work only with .NET 3.5 installed...Even if you dont have it, we catch the exception but allow running the app. The addin Read More...

Copyright © 2006 Microsoft Corporation. All Rights Reserved. | Terms of Use | Privacy Statement | Contact Us