Creating an AddIn that is a UI with MAF

In this article it is specified how to create an addin that is a UI using MAF:
https://msdn.microsoft.com/en-us/library/bb909887%28v=vs.110%29.aspx
However, I'm unsure how to implement the addin. I assume that addin is a
UserControl (WPF)
so the code behind of that view looks:
public partial class AddInUI : UserControl
public AddInUI()
InitializeComponent();
In the article it is said that addin must derive from AddIn View, which itself derives from UserControl:
[AddInBase]
public class AddInTestView : UserControl
However when I try to change that in the addin I get an error:
public partial class AddInUI : AddInTestView
public AddInUI()
InitializeComponent();
Error 2 Partial declarations of 'AddIn.AddInUI' must not specify different base classes
The article itself is not clear. So how do I implement the addin, if this is not allowed?

If you inherit your AddInUI UserControl from the AddInTestView class in the code-behind (AddInUI.xaml.cs) you must also specify the same base class in the XAML markup (AddInUI.xaml):
<local:AddInTestView x:Class="WpfApplication24.AddInUI"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:WpfApplication1"
mc:Ignorable="d"
d:DesignHeight="300" d:DesignWidth="300">
<Grid>
</Grid>
</local:AddInTestView>
Note that "WpfApplication1" in the sample markup above refers to the namespace of the AddInTestView class:
namespace WpfApplication1
public class AddInTestView : UserControl
Please remember to close your threads by marking helpful posts as answer and then start a new thread if you have a new question.

Similar Messages

  • How do i create a report that has drill-down with class?

    How do I create a report that has drill-down levels so that I can have summary information at the top level but then view specific records at a more detailed level?

    can i know ur email address.
    this is my other one coding
    but problem is very very slow when i 1 see my output
    TABLES: proj, coep.
    *&            TYPES DECLARATION                                        *
    *TYPES: BEGIN OF tb_coep,
             wtgbtr TYPE coep-wtgbtr,
          END OF tb_coep.
    DATA : int_proj TYPE proj OCCURS 0 WITH HEADER LINE.
    DATA : int_coep TYPE coep OCCURS 0 WITH HEADER LINE.
    DATA : gd_date(10). " FIELD TO STORE OUTPUT DATE
    TYPES : BEGIN OF t_date,
              year(4)  TYPE n,
              month(2) TYPE n,
              day(2)   TYPE n,
           END OF t_date.
    *&            SELECTION-SCREEN                                         *
    SELECTION-SCREEN BEGIN OF BLOCK b01 WITH FRAME TITLE text-001.
    SELECT-OPTIONS: so_pspnr FOR proj-pspnr OBLIGATORY.
    SELECTION-SCREEN ULINE.
    SELECTION-SCREEN END OF BLOCK b01.
    *&            TOP-OF-PAGE                                              *
    *&            fetch the data for the list                              *
    SELECT * INTO int_proj FROM proj where
             pspnr in so_pspnr.
    append int_proj.
    CLEAR int_proj.
    ENDSELECT.
    SELECT * into int_coep FROM coep WHERE
             wtgbtr in so_pspnr.
    append int_coep.
    CLEAR int_coep.
    ENDSELECT.
    LOOP at int_proj.
      write : / int_proj-pspnr, int_proj-post1.
    ENDLOOP.
    LOOP at int_coep.
      write : int_coep-wtgbtr.
    ENDLOOP.
    Edited by: Dickson on Jul 10, 2009 10:53 AM

  • Can Muse be used to create a site that requires a CMS with multiple user accounts?

    Hi, I am new to Adobe Muse and I would like to understand some specific things about the software. I have been comissioned to create a gallery website which requres a cms for use with mulitple accounts for the users/ artists to display seperate profiles and submit work to. Does Muse have this functionality and if possible to answer, how would I do this? I have looked at the tutorials on Adobe for Muse but I have not seen anything related to this, only the Busines Catlalyst website management software (if indeed it is software). Are there any tutorials on this or could I please be directed to one if no direct answer can be given here as I appreciate it is quite an indepth question. Thanks..

    Wait for the new version of Muse which should be published during the first quarter of this year. I guess that in the new Muse version could be basic CMS features?
    Best Regards
    TaikaJim

  • Creating web sites that don't suck with Aperture and iWeb

    My goal was to create a web site that combined a few pages created in iWeb with Aperture web galleries. For something that should be trivial, it's actually rather difficult.
    Results:
    http://www.yank.to
    Only the LA gallery at the top uses the Aperture style; the others are legacy galleries. One thing at a time.
    Instructions:
    http://www.yank.to/Downloadsfiles/ApertureiWeb.txt
    Cheers,
    Andreas
    MacBook Pro 2.0 GHz   Mac OS X (10.4)  

    My goal was to create a web site that combined a few pages created in iWeb with Aperture web galleries. For something that should be trivial, it's actually rather difficult.
    Results:
    http://www.yank.to
    Only the LA gallery at the top uses the Aperture style; the others are legacy galleries. One thing at a time.
    Instructions:
    http://www.yank.to/Downloadsfiles/ApertureiWeb.txt
    Cheers,
    Andreas
    MacBook Pro 2.0 GHz   Mac OS X (10.4)  

  • Can I create a footer that doesn't move with a scrolling layout?

    I'm making a book that has horizontal and vertical layouts, and I'd love to make a footer that stays put while the content scrolls. Is that possible?
    ----S

    Having  taken almost an hour using my primitive Aussie download speed Broadband,  to download the 1gig plus book...and expecting some supa dupa new gizmo..... Its a great example of  using the power of iBA coupled  together with a full understanding of how to use the built in options and facilities.
    Apart from certain  things which I personally don't like ( six mini sized videos on a white page ) it is a masterclass worth downloading by anybody wanting to  have a reference work at hand. It is free and basically from what I see, its  a brochure for a company.
    The  virtical scrolling pages are...... just that and available to anybody using iBA and a LS template and wanting vertical scrolling - which I think is pointless , but hey....
    Basically, you create in LS and edit in Portrait.
    A comment in the  book was .. " I took  my staff to a beer tasting....."
    "My Staff", to me suggest the  book is a studio product
    Use the  Orientation icons top menu to see your  page in either modes.
    I suggest you  open a template and  use it as a test book.... I keep one all the time and its now full or trials and tests! OR, duplicate your  book and  play with the copy, it saves heartache when it goes wrong!
    Again my  disclaimer....  most people do not  like  turning the iPad around and as books made  with iBA are not  usable on other devices, I see no point in  having basically  duplicate  content seen in porttrait or LS.....after all, you do not keep grabbing your flatescreen TV and turning it  vertical , or expecting a cinema screen to rotate...
    Have some more fun......

  • How to create two UILoader that can be nested with each other and save the parent UILoader - as3

    Hi all,
    I am currently researching on the problem but I can't find any solution in the web.
    Here is my problem:
    I have two UILoader instance (loader_inner and loader_outer) I need to have loader_inner to be part of the loader_outer. I have also a button that will save all contents on loader_outer. Unluckily, when I trigger the save function, I only got  a white image file. I was expecting that the contents of loader_outer (with loader_inner) to be saved also.
    Note: background_1.jpg and rabbit.jpg are present in the directory. loader_outer and loader_inner where manually placed in the scene using UILoader component.
    Here is a code snippet:
    loader_inner.load(new URLRequest("background_1.jpg"));
    loader_outer.load(new URLRequest("rabbit.jpg"));
    loader_outer.addChild(loader_inner);
    var bitmapData:BitmapData = new BitmapData(loader_outer.width,loader_outer.height);
    bitmapData.draw(loader_outer);
    var jpgencoder:JPGEncoder = new JPGEncoder(100);
    var mybyte:ByteArray = jpgencoder.encode(bitmapData);
    var myfile:FileReference = new FileReference();
    myfile.save(mybyte,"test.jpg");
    My expected output should be that background_1.jpg and rabbit.jpg should be saved in an image file and must be positioned like the ones placed in the scene.
    Any ideas on this?
    Thanks ahead.

    the load method is asynchronous so you don't want to apply that draw method until both loads are complete.  ie, use a complete listener:
    loader_inner.addEventListener(Event.COMPLETE.loadcompleteF);
    loader_outer.addEventListener(Event.COMPLETE,loadcompleteF);
    var loadNum:int=0;
    loader_inner.load(new URLRequest("background_1.jpg"));
    loader_outer.load(new URLRequest("rabbit.jpg"));
    loader_outer.addChild(loader_inner);
    // you should declare these variables outside this function so there are no gc issues.
    function loadcompleteF(e:Event):void{
    loadNum++;
    if(loadNum==2){
    var bitmapData:BitmapData = new BitmapData(loader_outer.width,loader_outer.height);
    bitmapData.draw(loader_outer);
    var jpgencoder:JPGEncoder = new JPGEncoder(100);
    var mybyte:ByteArray = jpgencoder.encode(bitmapData);
    var myfile:FileReference = new FileReference();
    myfile.save(mybyte,"test.jpg");

  • SDK creating PDF files that will not print with pcl6

    We are using the PDF SDK 7.1 to create PDF files from our application on Windows. The PDF files mostly consist of PATH elements representing 2D graphics. We have customers that have trouble printing them from Acrobat on PCL6 printers, they either get a memory error, or an error that there is not enough memory.
    As a workaround, they have used Ghostscript to create the PDF files, then they have no problem printing the files. I am at a loss to see what could cause the problem. Are there tools to analyze a PDF file that could help? I tried PDF CanOpener, and it didn't help much.
    We are using PDSaveLinearized when we close the document. Any help, ideas or suggestions would be appreciated.
    Thanks,
    Keith Hafen

    What version of Acrobat is being used on what OS platform to print to what PCL6-based printer?

  • Why can't I create a package that uses a cursor with a nested record?

    I have two examples of a a stored procedure that are almost identical. The first one oracle will not create, the second works fine. The only difference is that the first example uses a nested record, where in the second example, I combined the two records
    Anyone know why or want to pehaps what I am doing wrong? - Thanks Tim
    Nested Record (which fails):
    CREATE OR REPLACE PACKAGE TestPKG AS
    TYPE permissions_rec IS RECORD
    cPermissionRead DWH_security_objpriv.permission_read_flag%TYPE,
    cPermissionWrite DWH_security_objpriv.permission_write_flag%TYPE,
    cPermissionVisible DWH_security_objpriv.permission_visible_flag%TYPE,
    cPermissionDelete DWH_security_objpriv.permission_delete_flag%TYPE,
    cPermissionExecute DWH_security_objpriv.permission_execute_flag%TYPE,
    cPermissionGrant DWH_security_objpriv.permission_grant_flag%TYPE
    TYPE privilege_rec IS RECORD
    cRoleOrUser DWH_security_objpriv.role_user_flag%TYPE,
    vcPrivilegeName DWH_security_objpriv.privilege_name%TYPE,
    rPermission permissions_rec
    TYPE privilege_data IS REF CURSOR RETURN privilege_rec;
    UserFlag CONSTANT CHAR(1) := 'U';
    PROCEDURE GetUserDefinedPriviligesSP(vcUserName IN VARCHAR2, curNamedPrivilages OUT privilege_data);
    END TestPKG;
    CREATE OR REPLACE PACKAGE BODY TestPKG IS
    PROCEDURE GetUserDefinedPriviligesSP
    vcUserName IN VARCHAR2,
    curNamedPrivilages OUT privilege_data
    AS
    BEGIN
    OPEN
    curNamedPrivilages
    FOR SELECT
    Security.role_user_flag,
    Security.privilege_name,
    Security.permission_read_flag,
    Security.permission_write_flag,
    Security.permission_visible_flag,
    Security.permission_delete_flag,
    Security.permission_execute_flag,
    Security.permission_grant_flag
    FROM
    Security, Operations
    WHERE
    Operations.username = vcUserName AND
    Security.role_user_id = Operations.userid AND
    Security.role_user_flag = UserFlag;
    END GetUserDefinedPriviligesSP;
    END TestPKG;
    Errors
    LINE/COL ERROR
    15/5 PL/SQL: SQL Statement ignored
    18/65530 PLS-00382: expression is of wrong type
    Combined Records (which builds):
    CREATE OR REPLACE PACKAGE TestPKG AS
    TYPE privilege_rec IS RECORD
    cRoleOrUser DWH_security_objpriv.role_user_flag%TYPE,
    vcPrivilegeName DWH_security_objpriv.privilege_name%TYPE,
    cPermissionRead DWH_security_objpriv.permission_read_flag%TYPE,
    cPermissionWrite DWH_security_objpriv.permission_write_flag%TYPE,
    cPermissionVisible DWH_security_objpriv.permission_visible_flag%TYPE,
    cPermissionDelete DWH_security_objpriv.permission_delete_flag%TYPE,
    cPermissionExecute DWH_security_objpriv.permission_execute_flag%TYPE,
    cPermissionGrant DWH_security_objpriv.permission_grant_flag%TYPE
    TYPE privilege_data IS REF CURSOR RETURN privilege_rec;
    UserFlag CONSTANT CHAR(1) := 'U';
    -- P r o c e d u r e s
    PROCEDURE GetUserDefinedPriviligesSP(vcUserName IN VARCHAR2, curNamedPrivilages OUT privilege_data);
    END TestPKG;
    CREATE OR REPLACE PACKAGE BODY TestPKG IS
    PROCEDURE GetUserDefinedPriviligesSP
    vcUserName IN VARCHAR2,
    curNamedPrivilages OUT privilege_data
    AS
    BEGIN
    OPEN
    curNamedPrivilages
    FOR SELECT
    Security.role_user_flag,
    Security.privilege_name,
    Security.permission_read_flag,
    Security.permission_write_flag,
    Security.permission_visible_flag,
    Security.permission_delete_flag,
    Security.permission_execute_flag,
    Security.permission_grant_flag
    FROM
    Security, Operations
    WHERE
    Operations.username = vcUserName AND
    Security.role_user_id = Operations.userid AND
    Security.role_user_flag = UserFlag;
    END GetUserDefinedPriviligesSP;
    END TestPKG;

    Perhaps I'm missing something, but I can't for the life of me see the difference between your two package bodies. If the package specification is the same, there must be some difference, but I don't see it. Could you point out the difference?
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Is it possible with Adobe Acrobat to create a PDF that has multiple usernames/passwors for read access and individualised watermarks or with any other adobe product?

    Hi,
      We're looking for a solution where a PDF can be created and distributed to multiple people - each with their own username/password to open - and also when opened created a user based water mark on the document. Is this something that can be done inside Acrobat Pro or is there a higher end product that does this?
    Thanks!

    If the list of people who and only who you want to be able to open this PDF is predefined, then you can use Certificate Encryption in Acrobat. For this method to work each of possible recipients of the encrypted PDF needs to procure a digital certificate with a private key enabled for encryption and send you the public key version of this certificate. Then you encrypt this PDF with public key certificates (there may be many of them) of all recipients you want to be able to open this PDF. Then you distribute this PDF to all recipients and each of them can then open this PDF with their private key certificates.
    You can also create PDFs with Optional Content which contains different watermarks with the selector for a watermark based on user ID or some other identification of the user. I do not know, though how to create such Optional Content using just Acrobat Pro. You may need to write a plugin to Acrobat to do that.

  • I have created an iTunes account on my current computer for my daughters ipod touch and tried connecting my ipod nano and it won't sync and says that it is associated with another iTunes library so how do I merge the two libraries?

    I have created an iTunes account on my current computer for my daughters ipod touch and tried connecting my ipod nano and it won't sync and says that it is associated with another iTunes library so how do I merge the two libraries?

    You do not merge libraries.
    iDevices sync to one and only one computer.
    If you want a single library, you manually move the content from one library to another... all content will still be associated with the Apple ID it was acquired with.

  • How Do i create a list that will show in a dropdown box with the list being pulled from another tab and not the cell data format junk?

    How Do i create a list that will show in a dropdown box with the list being pulled from another tab and not the cell data format junk?
    I currently run OS X 10.10.1
    Now i have been trying to work on this for a while now and what i want to do should be simple but its apparently not.
    Here is an example of what i want to happen.
    I will have 2 tabs: Contact | Sales
    Now Contacts will have the list of names and various information about a customer, While Sales will have one drop-down box for each Cell Row that will show the names of the person in tab contacts
    for what i am wanting to do i cant use the data format pop-up menu because the list is edited everyday several times a day.
    Now how do i do this, Excel can do this so how can numbers do it?

    Hi Shegra,
    Paste this into a applescript editor window and run it from there. In the script you may need to adjust the four properties to agree with your spreadsheet. Let me know if you have any questions.
    quinn
    Script starts:
    -- This script converts column A in one table into an alphabetized list of popups. It copies the last cell in that column. Then reverts the column to text. It then refreshes popups in column A of a data table starting with a user defined row.
    property DataEntrySheet : "Sheet 1" --name of sheet with popups to be refreshed
    property DataEntryTable : "Sales" --name of table with popups to be refreshed
    set copyRange to {}
    property PopValueSheet : "Sheet 1" --name of sheet with popup values table
    property PopValueTable : "Contacts" --name of table with popup values
    set PopStartRow to {}
    tell application "Numbers"
      set d to front document
      set ps to d's sheet PopValueSheet
      set pt to ps's table PopValueTable
      set s to d's sheet DataEntrySheet
      set t to s's table DataEntryTable
      set tf to t's filtered --this records filter setting on data Entry Table
      display dialog "Start from row #..." default answer "" with icon 1 -- with icon file "Path:to:my.icon.icns" --a Week # row
      set PopStartRow to {text returned of result}
      tell pt --convert list to alphabetized popups
      set ptRows to count rows
      set copyRange to ("A2:" & name of cell ptRows of column "A")
      set selection range to range copyRange
      set selection range's format to text
      sort by column 1 direction ascending
      set selection range's format to pop up menu
      -- popupsmade
      set selection range to cell ptRows of column 1 of pt
      set v to value of cell ptRows of pt
      end tell
      activate application "Numbers"
      tell application "System Events" to keystroke "c" using command down
      tell pt
      set selection range to range copyRange
      set selection range's format to text
      end tell
      tell t
      set filtered to false
      set tRows to count rows
      set pasteRange to ((name of cell PopStartRow of column "A") & ":" & (name of cell tRows of column "A"))
      set selection range to range pasteRange
      tell application "System Events" to keystroke "v" using command down
      set filtered to tf
      end tell
    end tell

  • Is there a way to create my own app store that I can share with employees? I'm thinking apps that we've identified as important or needed, all in one place.

    Is there a way to create my own app store that I can share with employees? I'm thinking apps that we've identified as important or needed, all in one place.

    Not exactly your own app store, but close.  Apple has an App Store Volume Purchasing Program for Business > http://www.apple.com/business/vpp/
    It allows you to purchase apps in any quantity you desire and pay using a company credit card.  You will receive a spreadsheet of redeem codes which you distribute to your emloyees.  The program guide has complete information > http://images.apple.com/business/docs/VPP_Business_Guide_US.pdf

  • HT4168 I have created an 100 page booklet in Pages, with many photographs, can I export it to ePub, and make an electronic book, because it says that "Note: The Pages document must have been created using a word processing template"?

    I have created an 100 page booklet in Pages, with many photographs, and much written word, can I export it to ePub, and make an electronic book, because it says that "Note: The Pages document must have been created using a word processing template"?....
    Basically what I want to do is publish the document into both an eDocument, and a hard copy document. What is the best way to do this?

    No Peter, this statement came right off the Apple ePub statement when outlining how to use ePub. the full context is:
    Creating ePub files with Pages
    Summary
    Learn how to create ePub files with Pages.
    Products Affected
    Pages '09
    ePub is an open ebook standard produced by the International Digital Publishing Forum. Pages ’09 lets you export your documents in ePub format for reading with iBooks on iPhone, iPad, or iPod touch.
    iBooks supports both ePub and PDF file formats, and you can export both from Pages.
    When to use ePub or PDF
    Use ePub when text is the most important part of your document, for example when you create a book, a report, a paper, a thesis, or classroom reading material.
    More details on using ePubUse PDF when layout is the most important part of your document, for example when you create a brochure, a flyer, or a manual with multiple illustrations.
    More details on using PDF
    Creating an ePub Document to Read in iBooks
    You can export any Pages word processing document to the ePub file format for reading in an ePub reader, such as the iBooks application on the iPad, iPhone, or iPod touch. Documents created in page layout templates can’t be exported to the ePub format.
    Documents exported to ePub format will look different than their Pages counterparts. If you want to get the best document fidelity between the Pages and ePub formats, style your Pages document with paragraph styles and other formatting attributes allowed in an ePub file. A sample document is provided on the Apple Support site that features styles and guidelines to help you create a Pages document that’s optimized for export to the ePub file format, which you can use as a template or a guide. To learn more about using paragraph styles in Pages, see the topics under the heading “Working with Styles” in the Pages built-in help.
    To read your ePub document in iBooks on your mobile device, you must transfer the ePub file that you create onto your device.
    To use the “ePub Best Practices” sample documentTo learn more about using the ePub format and get a better feel for how a Pages document might appear as a book in iBooks, it’s a good idea to download the “ePub Best Practices” sample document. After reading the guidelines and instructions within the document, you can use it as a template to create your own document. You can also import the styles from the sample document into a new document you create.
    Download the “ePub Best Practices” sample document at the following web address:
    http://images.apple.com/support/pages/docs/ePub_Best_Practices_EN.zip
    Do either of the following:Use the sample document as a template.Import the paragraph styles from the sample document into a new or existing Pages document.
    Export the document you create to ePub format to see how it looks in iBooks.
    Preparing an existing Pages document for export to ePub format
    Documents exported to the ePub format automatically appear with page breaks before every chapter. A table of contents is automatically generated, which allows readers to jump quickly to any chapter title, heading, or subheading in the book. In order to create a meaningful table of contents, it’s important to apply appropriate styles within your document. The ePub reader uses the paragraph styles to determine which items should appear in the table of contents for your book.
    Note: The Pages document must have been created using a word processing template.

  • I have created a form that contains fields with default text for a user to update/personalize.  Is there a way to style the text so I can quickly identify changes to default text in a field?

    I have created a form that contains fields with default text for a user to update/personalize.  Is there a way to style the text so I can quickly identify changes to default text in a field?

    George - Thanks you so much!  Actually, i'd love for the text color to be red font color.  Could you send me the script for that? And I assume I just copy and paste the script into the field properties (see screenshot)?
    thanks again!
    Seth

  • How do I compress a pdf with Create PDF so that I can attach it to e-mail?

    How do I compress a pdf with Create PDR so that I can attach it to e-mail?

    Hi, Blue Mamba.
    Your file is automatically compressed when using the CreatePDF service to convert from some other file type (e.g. Word, Excel) to PDF. For example, most PowerPoint files get compressed 50% to 90% over their original size.
    If there is a particular file you're converting to PDF using the CreatePDF service, and you are not seeing the size savings that you would like, please provide more details.
    Thanks.
    Dave

Maybe you are looking for