public StaticViewer() { InitializeComponent(); ScriptableClass myScript = new ScriptableClass(); HtmlPage.RegisterScriptableObject("SL2JS", myScript); this.Loaded += StaticViewer_Loaded; this.KeyUp += StaticViewer_KeyUp; }
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; }