XAP Minifier issues

Thread is closed for posting
4 posts, 0 answers
  1. DenisCL
    DenisCL avatar
    69 posts
    Member since:
    Dec 2009

    Posted 26 Nov 2010 Link to this post

    Opening a post to centralize feedback.

    First, I would like to thanks the Telerik team about this tool, which look very great for performance improvements.

    Bug :

    -> Firsts tests give me an exception about unfindable type 'ColorToBrushConverter', with a XamlParseException on InitializeComponent, when I run my SilverLight control after being minified.
    As this word didn't exist in my solution, I suppose this class is used in telerik assembly or theme (I'm using Windows7 telerik theme), and removed by the Xap minifier.


    Feature Request :

    -> Analyzing zip file containing a build output, instead of a xap file.
    For an example, an output build with
    - MyControl1.xap
    - MyControl2.xap
    - Telerik.Windows.Controls.zip

    I've two silverlight control, using the "Reduce xap size by using application library caching". Both of them are referencing controls of the telerik.windows.controls.zip
    Analyzing the whole folder enable you to take care about the library caching mechanism,
    Additionally, it enable you to parse multiple xap file in order to search in for multiple dependencies (in example, MyControl1.xap use a telerik control and MyControl2.xap use another telerik control). So the minifier can output a minified Telerik.Windows.Controls.zip, taking care for all developer controls dependencies.

    Yes this is advanced feature, but I think nothing is impossible for you :p

    Thanks for your work !
  2. Miro Miroslavov
    Admin
    Miro Miroslavov avatar
    588 posts

    Posted 29 Nov 2010 Link to this post

    Hello DenisCL,

     About the Bug, can tell me which controls you are using in your project. (You also said that you use Windows 7 theme). So I'll create simple application with those controls and check why this class removed. 
    Thank you about your feedback and feature suggestion. We are also thinking about this feature and hopefully we will do it for our next releases.

    Kind regards,
    Miro Miroslavov
    the Telerik team
    Browse the videos here>> to help you get started with RadControls for Silverlight
  3. DevCraft banner
  4. DenisCL
    DenisCL avatar
    69 posts
    Member since:
    Dec 2009

    Posted 29 Nov 2010 Link to this post

    I'm using :
    RadTreeView, HierarchicalDataTemplate
    RadTreeListView, GridViewRow, ChildTableDefinitions, TreeListViewTableDefinition, RowDetailsTemplate
    GridViewImageColumn, GridViewDataColumn
    RadExpander,
    RadToolBar
    ContainerBindingCollection
    RadDragAndDropManager, RadBusyIndicator
    RadContextMenu
    RadWrapPanel, RadDockPanel
    RadButton, RadDatePicker, RadTimePicker

    referencing :
    Telerik.Windows.Controls
    Telerik.Windows.Controls.GridView
    Telerik.Windows.Controls.Input
    Telerik.Windows.Controls.Navigation
    Telerik.Windows.Data
    Telerik.Windows.Themes.Windows7


    To avoid the issue, I've simply added an unused ColorToBrushConverter to my resources, so the component is not removed by the minifier. (I've used a similar workaround to add component used in other project but not in the main project, so I can reference a unique telerik dll, and share it with library caching)

    Regards,
  5. Miro Miroslavov
    Admin
    Miro Miroslavov avatar
    588 posts

    Posted 01 Dec 2010 Link to this post

    Hello DenisCL,

     Thank you for reporting this. It appears to be a problem in the minifier, so I've created work item for this and will be fixed soon.
    If we can be of further help, please let us know.

    Regards,
    Miro Miroslavov
    the Telerik team
    Browse the videos here>> to help you get started with RadControls for Silverlight
Back to Top