Skip to main content
Pergunta fechada como "Precisa de detalhes ou esclarecimentos" por Jéf Bueno, Ismael Britto, rLinhares, Caique Romero, PauloHDSousa
adicionou 3463 caracteres ao conteúdo
Fonte Link
WPfan
  • 792
  • 1
  • 12
  • 26

Aqui o XAML da MainPagel:

<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             x:Class="EbsHelpDesk.Views.MainPage"
             Title="Home">
    <ContentPage.Content>
        <ScrollView>
        <StackLayout Padding="20">
            <Label Text="Atendimentos em Aberto"
                   HorizontalOptions="Center"
                   VerticalOptions="Center"
                   FontAttributes="Bold"
                   FontSize="25"/>
                <Grid  ColumnSpacing="2">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition />
                        <ColumnDefinition />
                        <ColumnDefinition />
                        <ColumnDefinition />
                    </Grid.ColumnDefinitions>
                    <Grid.RowDefinitions/>
                    <Label Text="#" Grid.Row="0" Grid.Column="0" FontAttributes="Bold"/>
                    <ListView x:Name="coluna0" Grid.Column="0" Grid.Row="1"  SeparatorColor="White"
                SeparatorVisibility="Default"/>
                    <Label Text="Colaborador" Grid.Row="0" Grid.Column="1" FontAttributes="Bold"/>
                    <ListView x:Name="coluna1" Grid.Column="1" Grid.Row="1"  SeparatorColor="White"
                SeparatorVisibility="Default"/>
                    <Label Text="Cliente" Grid.Row="0" Grid.Column="2" FontAttributes="Bold" />
                    <ListView x:Name="coluna2" Grid.Column="2" Grid.Row="1"  SeparatorColor="White"
                SeparatorVisibility="Default"/>
                    <Label Text="Duração" Grid.Row="0" Grid.Column="3" FontAttributes="Bold"/>
                    <ListView x:Name="coluna3" Grid.Column="3" Grid.Row="1"  SeparatorColor="White"
                SeparatorVisibility="Default"/>
                </Grid>
            
                <Label Text="Minhas Tarefas"
                   HorizontalOptions="Center"
                   VerticalOptions="Center"
                   FontAttributes="Bold"
                   FontSize="25"/>
                <Label Text="Sistema:"
                   HorizontalOptions="Center"
                   VerticalOptions="Center"
                   FontSize="12"/>
                <Picker x:Name="pckSistema" Title="Selecione o sistema:">
                    <Picker.Items>
                        <x:String>CORREÇÃO DE ERRO</x:String>
                        <x:String>MELHORIA DE SISTEMA</x:String>
                        <x:String>NOVA FUNCIONALIDADE</x:String>
                        <x:String>NOVO RELATÓRIO/ETIQUETA</x:String>
                        <x:String>OBRIGAÇÕES FISCAIS</x:String>
                        <x:String>MIGRAÇÃO DE SISTEMA</x:String>
                    </Picker.Items>
                </Picker>
                <Button Text="Criar Chamado"
                    TextColor="White"
                    BackgroundColor="#008000"
                    Image="tarefa24.png"
                    />
        </StackLayout>
        </ScrollView>
    </ContentPage.Content>
</ContentPage>

Aqui o XAML da MainPagel:

<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             x:Class="EbsHelpDesk.Views.MainPage"
             Title="Home">
    <ContentPage.Content>
        <ScrollView>
        <StackLayout Padding="20">
            <Label Text="Atendimentos em Aberto"
                   HorizontalOptions="Center"
                   VerticalOptions="Center"
                   FontAttributes="Bold"
                   FontSize="25"/>
                <Grid  ColumnSpacing="2">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition />
                        <ColumnDefinition />
                        <ColumnDefinition />
                        <ColumnDefinition />
                    </Grid.ColumnDefinitions>
                    <Grid.RowDefinitions/>
                    <Label Text="#" Grid.Row="0" Grid.Column="0" FontAttributes="Bold"/>
                    <ListView x:Name="coluna0" Grid.Column="0" Grid.Row="1"  SeparatorColor="White"
                SeparatorVisibility="Default"/>
                    <Label Text="Colaborador" Grid.Row="0" Grid.Column="1" FontAttributes="Bold"/>
                    <ListView x:Name="coluna1" Grid.Column="1" Grid.Row="1"  SeparatorColor="White"
                SeparatorVisibility="Default"/>
                    <Label Text="Cliente" Grid.Row="0" Grid.Column="2" FontAttributes="Bold" />
                    <ListView x:Name="coluna2" Grid.Column="2" Grid.Row="1"  SeparatorColor="White"
                SeparatorVisibility="Default"/>
                    <Label Text="Duração" Grid.Row="0" Grid.Column="3" FontAttributes="Bold"/>
                    <ListView x:Name="coluna3" Grid.Column="3" Grid.Row="1"  SeparatorColor="White"
                SeparatorVisibility="Default"/>
                </Grid>
            
                <Label Text="Minhas Tarefas"
                   HorizontalOptions="Center"
                   VerticalOptions="Center"
                   FontAttributes="Bold"
                   FontSize="25"/>
                <Label Text="Sistema:"
                   HorizontalOptions="Center"
                   VerticalOptions="Center"
                   FontSize="12"/>
                <Picker x:Name="pckSistema" Title="Selecione o sistema:">
                    <Picker.Items>
                        <x:String>CORREÇÃO DE ERRO</x:String>
                        <x:String>MELHORIA DE SISTEMA</x:String>
                        <x:String>NOVA FUNCIONALIDADE</x:String>
                        <x:String>NOVO RELATÓRIO/ETIQUETA</x:String>
                        <x:String>OBRIGAÇÕES FISCAIS</x:String>
                        <x:String>MIGRAÇÃO DE SISTEMA</x:String>
                    </Picker.Items>
                </Picker>
                <Button Text="Criar Chamado"
                    TextColor="White"
                    BackgroundColor="#008000"
                    Image="tarefa24.png"
                    />
        </StackLayout>
        </ScrollView>
    </ContentPage.Content>
</ContentPage>
<ContentPage Title="Login">
            <ScrollView>
            <StackLayout Spacing="20" Padding="20"
                         VerticalOptions="Center">
                <Image 
                VerticalOptions="Center"
                 HorizontalOptions="Center"
                Source="logo.png"/>

                <Entry x:Name="emailEntry" Placeholder="Usuário"
                       Text="{Binding Usuario}"/>
                <Entry x:Name="senhaEntry" Placeholder="Senha"
                       Text="{Binding Senha}"
                       IsPassword="true"/>

                <ActivityIndicator x:Name="waitActivityIndicator"
                                       HorizontalOptions="CenterAndExpand"
                                       VerticalOptions="CenterAndExpand">
                </ActivityIndicator>
                <Button x:Name="loginButton"
                        Text="Login" TextColor="White"
                        BackgroundColor="#800000"
                        Clicked="BtnLogin_Clicked"/>

            </StackLayout>
            </ScrollView>
        </ContentPage>
public LoginPage()
        {
            InitializeComponent();
            NavigationPage.SetHasNavigationBar(this, false);
            
        }

        protected async void BtnLogin_Clicked(object sender, EventArgs e)
        {
            

            
            App.Current.MainPage = new MainPageRoot();
        }
<ContentPage Title="Login">
            <ScrollView>
            <StackLayout Spacing="20" Padding="20"
                         VerticalOptions="Center">
                <Image 
                VerticalOptions="Center"
                 HorizontalOptions="Center"
                Source="logo.png"/>

                <Entry x:Name="emailEntry" Placeholder="Usuário"
                       Text="{Binding Usuario}"/>
                <Entry x:Name="senhaEntry" Placeholder="Senha"
                       Text="{Binding Senha}"
                       IsPassword="true"/>

                <ActivityIndicator x:Name="waitActivityIndicator"
                                       HorizontalOptions="CenterAndExpand"
                                       VerticalOptions="CenterAndExpand">
                </ActivityIndicator>
                <Button x:Name="loginButton"
                        Text="Login" TextColor="White"
                        BackgroundColor="#800000"
                        Clicked="BtnLogin_Clicked"/>

            </StackLayout>
            </ScrollView>
        </ContentPage>
public LoginPage()
        {
            InitializeComponent();
            NavigationPage.SetHasNavigationBar(this, false);
            
        }

        protected async void BtnLogin_Clicked(object sender, EventArgs e)
        {
            

            
            App.Current.MainPage = new MainPageRoot();
        }
<ContentPage Title="Login">
    <ScrollView>
    <StackLayout Spacing="20" Padding="20"
                 VerticalOptions="Center">
        <Image 
        VerticalOptions="Center"
         HorizontalOptions="Center"
        Source="logo.png"/>

        <Entry x:Name="emailEntry" Placeholder="Usuário"
               Text="{Binding Usuario}"/>
        <Entry x:Name="senhaEntry" Placeholder="Senha"
               Text="{Binding Senha}"
               IsPassword="true"/>

        <ActivityIndicator x:Name="waitActivityIndicator"
                               HorizontalOptions="CenterAndExpand"
                               VerticalOptions="CenterAndExpand">
        </ActivityIndicator>
        <Button x:Name="loginButton"
                Text="Login" TextColor="White"
                BackgroundColor="#800000"
                Clicked="BtnLogin_Clicked"/>

    </StackLayout>
    </ScrollView>
</ContentPage>
public LoginPage()
{
    InitializeComponent();
    NavigationPage.SetHasNavigationBar(this, false);    
}

protected async void BtnLogin_Clicked(object sender, EventArgs e)
{
    App.Current.MainPage = new MainPageRoot();
}
adicionou 1672 caracteres ao conteúdo
Fonte Link
WPfan
  • 792
  • 1
  • 12
  • 26

Meu xaml do loginPage:

<ContentPage Title="Login">
            <ScrollView>
            <StackLayout Spacing="20" Padding="20"
                         VerticalOptions="Center">
                <Image 
                VerticalOptions="Center"
                 HorizontalOptions="Center"
                Source="logo.png"/>

                <Entry x:Name="emailEntry" Placeholder="Usuário"
                       Text="{Binding Usuario}"/>
                <Entry x:Name="senhaEntry" Placeholder="Senha"
                       Text="{Binding Senha}"
                       IsPassword="true"/>

                <ActivityIndicator x:Name="waitActivityIndicator"
                                       HorizontalOptions="CenterAndExpand"
                                       VerticalOptions="CenterAndExpand">
                </ActivityIndicator>
                <Button x:Name="loginButton"
                        Text="Login" TextColor="White"
                        BackgroundColor="#800000"
                        Clicked="BtnLogin_Clicked"/>

            </StackLayout>
            </ScrollView>
        </ContentPage>

E aqui o CodeBehind:

public LoginPage()
        {
            InitializeComponent();
            NavigationPage.SetHasNavigationBar(this, false);
            
        }

        protected async void BtnLogin_Clicked(object sender, EventArgs e)
        {
            

            
            App.Current.MainPage = new MainPageRoot();
        }

Meu xaml do loginPage:

<ContentPage Title="Login">
            <ScrollView>
            <StackLayout Spacing="20" Padding="20"
                         VerticalOptions="Center">
                <Image 
                VerticalOptions="Center"
                 HorizontalOptions="Center"
                Source="logo.png"/>

                <Entry x:Name="emailEntry" Placeholder="Usuário"
                       Text="{Binding Usuario}"/>
                <Entry x:Name="senhaEntry" Placeholder="Senha"
                       Text="{Binding Senha}"
                       IsPassword="true"/>

                <ActivityIndicator x:Name="waitActivityIndicator"
                                       HorizontalOptions="CenterAndExpand"
                                       VerticalOptions="CenterAndExpand">
                </ActivityIndicator>
                <Button x:Name="loginButton"
                        Text="Login" TextColor="White"
                        BackgroundColor="#800000"
                        Clicked="BtnLogin_Clicked"/>

            </StackLayout>
            </ScrollView>
        </ContentPage>

E aqui o CodeBehind:

public LoginPage()
        {
            InitializeComponent();
            NavigationPage.SetHasNavigationBar(this, false);
            
        }

        protected async void BtnLogin_Clicked(object sender, EventArgs e)
        {
            

            
            App.Current.MainPage = new MainPageRoot();
        }
adicionou 126 caracteres ao conteúdo
Fonte Link
WPfan
  • 792
  • 1
  • 12
  • 26
Carregando
tags editadas
Link
Jéf Bueno
  • 69,8mil
  • 22
  • 134
  • 244
Carregando
Tirar o exagero
Fonte Link
Jéf Bueno
  • 69,8mil
  • 22
  • 134
  • 244
Carregando
adicionou 130 caracteres ao conteúdo
Fonte Link
WPfan
  • 792
  • 1
  • 12
  • 26
Carregando
Fonte Link
WPfan
  • 792
  • 1
  • 12
  • 26
Carregando