예제 #1
0
 public static void UnpinItem_Click(object sender, RoutedEventArgs e)
 {
     if (rightClickedItem.Path.Equals(App.AppSettings.RecycleBinPath, StringComparison.OrdinalIgnoreCase))
     {
         AppSettings.PinRecycleBinToSideBar = false;
     }
     else
     {
         SidebarPinned.RemoveItem(rightClickedItem.Path.ToString());
     }
 }
예제 #2
0
 public static void UnpinItem_Click(object sender, RoutedEventArgs e)
 {
     SidebarPinned.RemoveItem(rightClickedItem.Path.ToString());
 }