public FileControl(MyFilesPage page, FtpClient client, FtpListItem item, TreeViewItem viewItem) { InitializeComponent(); this.client = client; this.item = item; this.page = page; this.viewItem = viewItem; }
private void FileMenuBtn_PreviewMouseUp(object sender, MouseButtonEventArgs e) { Brush selCo = (Brush)converter.ConvertFromString("#FF3390FF"); Brush unSelCo = (Brush)converter.ConvertFromString("#FFA8B1C9"); MyFilesPage myFilesPage = new MyFilesPage(); MainFrame.Navigate(myFilesPage); DashIco.Foreground = unSelCo; FileIco.Foreground = selCo; SettIco.Foreground = unSelCo; DashTxt.Foreground = unSelCo; FileTxt.Foreground = selCo; SettTxt.Foreground = unSelCo; DashMenuBtn.Background = Brushes.Transparent; SettMenuBtn.Background = Brushes.Transparent; FileMenuBtn.Background = Brushes.White; }