RadImageBindingPanel

Thread is closed for posting
4 posts, 0 answers
  1. 28D2C293-575D-41F3-827E-66BEF89DB4F1
    28D2C293-575D-41F3-827E-66BEF89DB4F1 avatar
    92 posts
    Member since:
    Jan 2004

    Posted 10 Feb 2010 Link to this post

    Requirements

    RadControls version

    2009.3.9.1203+

    .NET version

    3.5

    Visual Studio version

    2008

    programming language C# and VB

    PROJECT DESCRIPTION
    In building a furniture inventory system, I needed to create a control which allows the user to import an image (a photo of the item, a fabric swatch, etc.). The project uses business objects (built on CSLA.NET), so I needed it to be data-bindable as well. Most importantly, the project is build using Telerik's WinForms Controls, so it needed to be pretty. I've been tweaking this control for a while and wanted to share it with others.

    The result is RadImageBindingPanel, which inherits from RadPanel. In ReadOnly mode, the control looks more or less like a label (transparent background, no border, no control buttons). In editable mode (ReadOnly=false), the control looks more like a TextBox (border, light background, and control buttons). Images can be opened from a file or pasted from the clipboard using icon buttons.

    Attached zip file includes screen captures and the code file.

    Notes:
    • Out of the box, this fits into the basic ControlDefault theme. With some tweaking, I'm sure it would fit into any project nicely.
    • The folder, clipboard, and delete icons are not included with this code due to licensing.
  2. 907A8354-5E2E-4F69-95E6-B00F38D8C271
    907A8354-5E2E-4F69-95E6-B00F38D8C271 avatar
    1805 posts
    Member since:
    Jan 2017

    Posted 16 Feb 2010 Link to this post

    Hi Joel Kraft,

    Thank you for sharing your solution with the community.

    For the convenience of those who may be interested in it, I placed it in a sample test project. In addition, I included icons appropriate for the purposes of the buttons.

    I am updating your Telerik points for the community effort.

    Regards,
    Nikolay
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. 6DAC9D32-BDB4-422A-8D4A-482CAE4BA9BE
    6DAC9D32-BDB4-422A-8D4A-482CAE4BA9BE avatar
    2 posts
    Member since:
    Jul 2011

    Posted 02 May 2012 Link to this post

    I am trying to run this project in C# VS 2010.  How do I get around this error:

    Error 1 The type or namespace name 'RadThemeDesignerData' could not be found (are you missing a using directive or an assembly reference?) C:\...\TelerikSamples\309872_RadImageBindingPanel\RadImageBindingPanelCS\RadImageBindingPanel.cs 14 3 RadImageBindingPanelCS

    and this one:
    Error 2 The type or namespace name 'RadThemeDesignerDataAttribute' could not be found (are you missing a using directive or an assembly reference?) C:\...\TelerikSamples\309872_RadImageBindingPanel\RadImageBindingPanelCS\RadImageBindingPanel.cs 14 3 RadImageBindingPanelCS

    Google finds nothing matching RadPanelThemeDesignerData.
     
  4. 390E3918-8CB9-43C1-8251-44213CAECA77
    390E3918-8CB9-43C1-8251-44213CAECA77 avatar
    2333 posts
    Member since:
    Dec 2016

    Posted 07 May 2012 Link to this post

    Hi Dirk,

    This attribute was used in old versions of the Visual Style Builder tool. Currently, it is no longer in use, thus it is no longer part of our code base. You can simply comment the described line of code and everything will work correctly, if you are using the latest version of our controls.

    Should you have any further questions, do not hesitate to ask.
     
    Regards,
    Jack
    the Telerik team
    RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
Back to Top

This Code Library is part of the product documentation and subject to the respective product license agreement.