gene
2 years ago
9 changed files with 133 additions and 16 deletions
-
19CircleViewerMaui/Activity.xaml
-
14CircleViewerMaui/Activity.xaml.cs
-
16CircleViewerMaui/AppShell.xaml
-
6CircleViewerMaui/CircleViewerMaui.csproj
-
11CircleViewerMaui/MainPage.xaml.cs
-
28CircleViewerMaui/Popups/NewInvite.xaml
-
23CircleViewerMaui/Popups/NewInvite.xaml.cs
-
8CircleViewerMaui/UserGroups.xaml
-
24CircleViewerMaui/UserGroups.xaml.cs
@ -0,0 +1,19 @@ |
|||
<?xml version="1.0" encoding="UTF-8" ?> |
|||
<ContentPage |
|||
x:Class="CircleViewerMaui.Activity" |
|||
xmlns="http://schemas.microsoft.com/dotnet/2021/maui" |
|||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" |
|||
xmlns:d="http://schemas.microsoft.com/dotnet/2021/maui/design" |
|||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
|||
xmlns:local="clr-namespace:CircleViewerMaui" |
|||
mc:Ignorable="d"> |
|||
<ContentPage.Content> |
|||
<Grid> |
|||
<Label |
|||
HorizontalOptions="Center" |
|||
Text="Welcome to .NET MAUI!!!" |
|||
TextColor="Purple" |
|||
VerticalOptions="Center"/> |
|||
</Grid> |
|||
</ContentPage.Content> |
|||
</ContentPage> |
@ -0,0 +1,14 @@ |
|||
using CommunityToolkit.Maui.Views; |
|||
using System.ComponentModel; |
|||
using CircleViewerMaui.Popups; |
|||
|
|||
namespace CircleViewerMaui |
|||
{ |
|||
public partial class Activity : ContentPage |
|||
{ |
|||
public Activity() |
|||
{ |
|||
InitializeComponent(); |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,28 @@ |
|||
<?xml version="1.0" encoding="UTF-8" ?> |
|||
<toolkit:Popup xmlns="http://schemas.microsoft.com/dotnet/2021/maui" |
|||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" |
|||
xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit" |
|||
x:Class="CircleViewerMaui.Popups.NewInvite" |
|||
Size="300,100"> |
|||
|
|||
|
|||
<VerticalStackLayout VerticalOptions="Center"> |
|||
<Grid Margin="10,10,10,10"> |
|||
<Grid.RowDefinitions> |
|||
<RowDefinition Height="*" /> |
|||
<RowDefinition Height="*" /> |
|||
<RowDefinition Height="*" /> |
|||
</Grid.RowDefinitions> |
|||
<Grid.ColumnDefinitions> |
|||
<ColumnDefinition Width="*" /> |
|||
<ColumnDefinition Width="*" /> |
|||
</Grid.ColumnDefinitions> |
|||
<Label Grid.Row="0" Grid.Column ="0" Text="Invite code:" TextColor="Purple" HorizontalTextAlignment="End" /> |
|||
<Label Grid.Row="0" Grid.Column ="1" x:Name="lblInviteCode" Text="" TextColor="Purple" HorizontalTextAlignment="Center"/> |
|||
<Label Grid.Row="1" Grid.Column ="0" Text="Authorization code:" TextColor="Purple" HorizontalTextAlignment="End" /> |
|||
<Label Grid.Row="1" Grid.Column ="1" x:Name="lblAuthCode" Text="" TextColor="Purple" HorizontalTextAlignment="Center"/> |
|||
<Button Grid.Row="2" Grid.ColumnSpan="2" Text="OK" Clicked="OnOKButtonClicked" HorizontalOptions="Center" /> |
|||
</Grid> |
|||
</VerticalStackLayout> |
|||
|
|||
</toolkit:Popup> |
@ -0,0 +1,23 @@ |
|||
using CommunityToolkit.Maui.Views; |
|||
|
|||
namespace CircleViewerMaui.Popups |
|||
{ |
|||
public partial class NewInvite : Popup |
|||
{ |
|||
string _inviteCode; |
|||
private string _authCode; |
|||
public NewInvite(string inviteCode, string authCode) |
|||
{ |
|||
_inviteCode = inviteCode; |
|||
_authCode = authCode; |
|||
InitializeComponent(); |
|||
lblInviteCode.Text = _inviteCode; |
|||
lblAuthCode.Text = _authCode; |
|||
} |
|||
|
|||
private void OnOKButtonClicked(object sender, EventArgs e) |
|||
{ |
|||
Close(); |
|||
} |
|||
} |
|||
} |
Write
Preview
Loading…
Cancel
Save
Reference in new issue