1
I create a new project but can’t put those using as in this example below. He appears as in the other code below... Help me please =/
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Controls.Primitives;
using Windows.UI.Xaml.Data;
using Windows.UI.Xaml.Input;
using Windows.UI.Xaml.Media;
using Windows.UI.Xaml.Navigation;
using Windows.UI.Popups; // Não esqueça de adicionar este using
// The Blank Page item template is documented at http://go.microsoft.com/fwlink/? LinkId=234238
namespace App1
{
/// <summary>
/// An empty page that can be used on its own or navigated to within a Frame.
/// </summary>
public sealed partial class MainPage : Page
{
public MainPage()
{
this.InitializeComponent();
}
private async void Button_Click(object sender, Windows.UI.Xaml.RoutedEventArgs e)
{
// Aqui crio uma mensagem de dialog e a exibo.
MessageDialog dialog = new MessageDialog("Teste", "Teste Dialog");
await dialog.ShowAsync();
}
}
}
He starts like this other:
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 WpfApplication3
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
}
private void Button_Click(object sender, RoutedEventArgs e)
{
MessageBox.Show("Teste");
}
}
}
Give more information. What happens when you try to write there to put what you want? In what situation you are. If you are unable to use the editor, you will have serious problems doing anything else more complicated.
– Maniero
Just to see if I understand your doubt using the first is different from the second? If that’s it you’ve already tried to add in the second the using you need?
– David Souza
I’m starting now at C# and would like to develop a Desktop system. I’m a little confused because the tutorials say it’s for windows 8, but it’s only for this S.O.? It would run on a Windows 7?
– Emerson Moraes
@Davidsouza my project is the second code, the first is a ready example I got. I would like to start a project like the one above, to make a Desktop system. I am using S.O. Windows 7
– Emerson Moraes
@Emersonmoraes in this case you can add the classes that are these "using" if for example you need to use the link use the line and so on "using System.Linq;" if that is not the question please describe so that we can help you.
– David Souza
@Davidsouza, here’s my question. I work in a company where they have a system here, the company system has the same design as Windows 8 even I working with the pc with windows 7. I would like to know how to develop this system because the look I have here does not come out equal, the design is all different...
– Emerson Moraes