Parameters
- item
- The item to be updated in the favorites collection.
var itemFolder = ItemFactory.Instance.Create(@"d:\data"); // is the folder item already a favorite? var fav = FavoritesManager.Current.GetFavorite(itemFolder); if (fav != null) { if (fav.IsAddedToAllNewProjects) FavoritesManager.Current.ClearIsAddedToAllNewProjects(fav.Item); else FavoritesManager.Current.SetIsAddedToAllNewProjects(fav.Item); }
Target Platforms: Windows 11, Windows 10, Windows 8.1