the xaml edit is BACCKK BABY ! Welcome to data bidding, wait teacher for 2 question :
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
- where create game - when get back entrytest_old_branch
parent
bd7d748c7d
commit
c5027304b0
@ -1,13 +1,17 @@
|
|||||||
<?xml version="1.0" encoding="utf-8" ?>
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
<ContentView xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
<ContentView xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||||
x:Class="Qwirkle.Views.ButtonShadow">
|
x:Class="Qwirkle.Views.ButtonShadow"
|
||||||
|
x:Name="root">
|
||||||
|
|
||||||
<Border Stroke="Transparent">
|
<Border Stroke="Transparent">
|
||||||
<Button
|
<Button
|
||||||
Text="Example"
|
Text="{Binding Text, Source={x:Reference root}}"
|
||||||
Style="{StaticResource MainButton}"/>
|
Style="{StaticResource MainButton}"
|
||||||
<Border.Shadow>
|
Clicked="OnInfoClicked"/>
|
||||||
<Shadow></Shadow>
|
|
||||||
</Border.Shadow>
|
<Border.Shadow>
|
||||||
|
<Shadow></Shadow>
|
||||||
|
</Border.Shadow>
|
||||||
</Border>
|
</Border>
|
||||||
</ContentView>
|
</ContentView>
|
||||||
|
@ -1,12 +1,13 @@
|
|||||||
<?xml version="1.0" encoding="utf-8" ?>
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
<ContentView xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
<ContentView xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||||
x:Class="Qwirkle.Views.EntryPlayer">
|
x:Class="Qwirkle.Views.EntryPlayer"
|
||||||
|
x:Name="root">
|
||||||
<VerticalStackLayout Padding="10">
|
<VerticalStackLayout Padding="10">
|
||||||
<Label
|
<Label
|
||||||
Text="Players X"
|
Text="{Binding TextOn, Source={x:Reference root}}"
|
||||||
Style="{StaticResource ContentStart}"/>
|
Style="{StaticResource ContentStart}"/>
|
||||||
|
|
||||||
<Entry Text="Entry tag of player X"/>
|
<Entry Text="{Binding TextIn, Source={x:Reference root}}"/>
|
||||||
</VerticalStackLayout>
|
</VerticalStackLayout>
|
||||||
</ContentView>
|
</ContentView>
|
||||||
|
@ -1,9 +1,27 @@
|
|||||||
namespace Qwirkle.Views;
|
namespace Qwirkle.Views;
|
||||||
|
using Microsoft.Maui.Controls;
|
||||||
public partial class EntryPlayer : ContentView
|
public partial class EntryPlayer : ContentView
|
||||||
{
|
{
|
||||||
public EntryPlayer()
|
public EntryPlayer()
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static readonly BindableProperty TextInProperty =
|
||||||
|
BindableProperty.Create("TextIn", typeof(string), typeof(Button), "none");
|
||||||
|
|
||||||
|
public string TextIn
|
||||||
|
{
|
||||||
|
get => (string)GetValue(TextInProperty);
|
||||||
|
set => SetValue(TextInProperty, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static readonly BindableProperty TextOnProperty =
|
||||||
|
BindableProperty.Create("TextOn", typeof(string), typeof(Button), "none");
|
||||||
|
|
||||||
|
public string TextOn
|
||||||
|
{
|
||||||
|
get => (string)GetValue(TextOnProperty);
|
||||||
|
set => SetValue(TextOnProperty, value);
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
Reference in new issue