I am adding Telerik's PersistenceFramework to an exist WPF/MVVM project (WPF with MVVM). Version is 2013.1.0403. I am adding a new feature to save Window and controls' settings and reload them application is reopened. I added PersistenceManager reference using same version of 2013.1.0403.
<telerik:RadRibbonWindow x:Class="Corning.Eln.Views.AppView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:elnViews="clr-namespace:Corning.Eln.Views"
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
Background="White"
Height="600" Width="840"
Closing="RadRibbonWindow_Closing" Activated="RadRibbonWindow_Activated" telerik:PersistenceManager.StorageId="myRadRibbon">
I added following to my .xaml.cs and no error message:
using Telerik.Windows.PersistenceFramework;
using Telerik.Windows.Persistence.Storage;
...
IsolatedStorageProvider isoProvider = new IsolatedStorageProvider();
isoProvider.LoadFromStorage();
...
IsolatedStorageProvider isoProvider = new IsolatedStorageProvider();
isoProvider.SaveToStorage();
But .xaml file get error on "telerik:PersistenceManager.StorageId="myRadRibbon". The error message is "The attachable property 'StorageId' was not found in type 'PersistenceManager'.
Could anyone let me know why this happens? Can I assign telerik:PersistenceFramework.StorageId to a RadRibbonWindows?
Thanks,
Yan
<telerik:RadRibbonWindow x:Class="Corning.Eln.Views.AppView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:elnViews="clr-namespace:Corning.Eln.Views"
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
Background="White"
Height="600" Width="840"
Closing="RadRibbonWindow_Closing" Activated="RadRibbonWindow_Activated" telerik:PersistenceManager.StorageId="myRadRibbon">
I added following to my .xaml.cs and no error message:
using Telerik.Windows.PersistenceFramework;
using Telerik.Windows.Persistence.Storage;
...
IsolatedStorageProvider isoProvider = new IsolatedStorageProvider();
isoProvider.LoadFromStorage();
...
IsolatedStorageProvider isoProvider = new IsolatedStorageProvider();
isoProvider.SaveToStorage();
But .xaml file get error on "telerik:PersistenceManager.StorageId="myRadRibbon". The error message is "The attachable property 'StorageId' was not found in type 'PersistenceManager'.
Could anyone let me know why this happens? Can I assign telerik:PersistenceFramework.StorageId to a RadRibbonWindows?
Thanks,
Yan