Beispiel #1
0
        void Application_Startup(object sender, StartupEventArgs e)
        {
            apps.controls.Ventana2 v1 = new apps.controls.Ventana2();
            v1.Titulo = "Gran calculadora";

            var uri    = new Uri("pack://application:,,,/calculadora.png");
            var bitmap = new BitmapImage(uri);

            v1.ImagenIcono.Source  = bitmap;
            v1.ImagenIcono.Stretch = Stretch.Fill;
            v1.Icon = bitmap;

            v1.Height = 440;
            v1.Width  = 510;
            //v1.ResizeMode = ResizeMode.NoResize;
            v1.BtnRestaurar.Visibility = Visibility.Hidden;
            v1.Navegador.Navigate(new Principal());
            v1.Show();
        }
Beispiel #2
0
        private void mnuAbout_Click(object sender, RoutedEventArgs e)
        {
            apps.controls.Ventana2 v1 = new apps.controls.Ventana2();
            About ab = new About();

            v1.Height = 290;
            v1.Width  = 400;
            v1.Titulo = "Acerca de...";
            v1.BtnRestaurar.Visibility = System.Windows.Visibility.Hidden;
            v1.WindowStartupLocation   = WindowStartupLocation.CenterScreen;

            var uri    = new Uri("pack://application:,,,/calculadora.png");
            var bitmap = new BitmapImage(uri);

            v1.ImagenIcono.Source  = bitmap;
            v1.ImagenIcono.Stretch = Stretch.Fill;
            v1.Icon = bitmap;

            ab.FontFamily = apps.fonts.fontManager.getMyAppFonts().First();


            v1.Navegador.Navigate(ab);
            v1.Show();
        }