12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- using ComPDFKitViewer;
- using PDF_Master.ViewModels;
- using PDF_Master.ViewModels.PropertyPanel.ViewModular;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows;
- using System.Windows.Controls;
- using System.Windows.Data;
- using System.Windows.Documents;
- using System.Windows.Input;
- using System.Windows.Media;
- using System.Windows.Media.Imaging;
- using System.Windows.Navigation;
- using System.Windows.Shapes;
- namespace PDF_Master.Views.PropertyPanel.ViewModular
- {
-
-
-
- public partial class ViewModularContent : UserControl
- {
- private ViewModularContentViewModel viewModel = null;
- public ViewModularContent()
- {
- InitializeComponent();
- viewModel = this.DataContext as ViewModularContentViewModel;
- }
-
-
-
-
-
- private void RbtnReadMode_Click(object sender, RoutedEventArgs e)
- {
- RbtnReadMode.IsChecked = false;
- if (Window.GetWindow(this) is MainWindow window)
- {
- if (window.TabablzControl.SelectedItem is MainContent main)
- {
- if (main.ContentMain.Content is ViewContent viewContent)
- {
-
- ViewContentViewModel model = viewContent.DataContext as ViewContentViewModel;
- model.On_ReadMode();
- }
- }
- }
- }
- private void btnRotateRight_Click(object sender, RoutedEventArgs e)
- {
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- viewModel.RotateCommand.Execute((sender as Button).Tag.ToString());
- }
- }
- }
|