コード例 #1
0
 public StaticViewer()
 {
     InitializeComponent();
     ScriptableClass myScript = new ScriptableClass();
     HtmlPage.RegisterScriptableObject("SL2JS", myScript);
     this.Loaded += StaticViewer_Loaded;
     this.KeyUp += StaticViewer_KeyUp;
 }
コード例 #2
0
 public MainPage()
 {
     InitializeComponent();
     ScriptableClass myScript = new ScriptableClass();
     HtmlPage.RegisterScriptableObject("SL2JS", myScript);
     this.Loaded += MainPage_Loaded;
     image.MouseLeftButtonDown += image_MouseLeftButtonDown;
     this.MouseWheel += MainPage_MouseWheel;
     this.viewer.Visibility = System.Windows.Visibility.Collapsed;
     this.zoomSlider.ValueChanged += ZoomSlider_OnValueChanged;
     this.btnZoomFit.Click += btnZoomFit_Click;
     App.Current.Host.Content.FullScreenChanged += Content_FullScreenChanged;
     
     
 }