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

Fire RibbonRadioButton command on restore

2 Answers 12 Views
PersistenceFramework
This is a migrated thread and some comments may be shown as answers.
Robert
Top achievements
Rank 1
Robert asked on 17 Jun 2018, 10:55 AM

Hi,

I can persist RadRibbonRadioButton selected state fine but it does not on restore execute the bound command. I'm trying to use the persistence manager to restore the UI, and as a result, restore the view model state.

Is this possible?

Rob

2 Answers, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 20 Jun 2018, 03:13 PM
Hello Robert,

Without some code I can't tell why the command is not executed. But note that you can execute it manually - for example:
radioButton.Command.Execute(null)
Also, keep in mind that the persistence framework doesn't persists bindings. Instead it saves to concrete value of the specific property and then set it manually. This means that each binding that is explicitly set to OneWay no longer will work after the deserialization.

I hope that helps.

If you share some runnable code I could check what happens on my side and think of a solution.

Regards,
Martin Ivanov
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
0
Robert
Top achievements
Rank 1
answered on 14 Jul 2018, 07:11 AM

After leaning more about the persistence framework I think my question was silly. I have found it best to use the persistence framework for pure UI stuff and leave the domain to another persistence framework. The persistence streaming allows be save both together.

Thanks

Tags
PersistenceFramework
Asked by
Robert
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Robert
Top achievements
Rank 1
Share this question
or