Icon Chooser data field in RadDataForm

2 posts, 0 answers
  1. Bob
    Bob avatar
    1 posts
    Member since:
    Jul 2015

    Posted 10 Jul 2015 Link to this post


     Still kinda new to Telerik and WPF...

     How would I go about creating an Icon Chooser data field - it would contain the chosen (or existing) icon, a text field with a path to the icon/png file and a button which would open an OpenFileDialog to allow the selection of an Icon file.  This file path would then be copied to the text box which is bound to the Icon property in the ViewModel.




  2. Stefan
    Stefan avatar
    799 posts

    Posted 15 Jul 2015 Link to this post

    Hello Bob,

    For achieving this, you will need to create a couple of custom fields. You will need an Image control for the Icon, a TextBlock for displaying the icon's path and a Button for choosing an icon via OpenFileDialog. Please check the Customized Fields and Simple Way to Bind an Image Class as Source to Image Control articles, as well the Binding an Image in WPF MVVM Stackoverflow thread for further reference.

    Hope this helps.

    Best Regards,
    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 Feedback Portal and vote to affect the priority of the items
Back to Top