This is a migrated thread and some comments may be shown as answers.

Icon Chooser data field in RadDataForm

1 Answer 87 Views
DataForm
This is a migrated thread and some comments may be shown as answers.
Bob
Top achievements
Rank 1
Bob asked on 10 Jul 2015, 01:02 PM

Hey,

 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.

 

Thanks.

BW

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 15 Jul 2015, 08:16 AM
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,
Stefan
Telerik
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
Tags
DataForm
Asked by
Bob
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or