Created
January 30, 2020 15:36
-
-
Save grimorde/88ee1a92861f16ff34b02675bb295b2c to your computer and use it in GitHub Desktop.
Modal xaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ContentView.ControlTemplate> | |
<ControlTemplate> | |
<StackLayout | |
BackgroundColor="#4f000000" | |
HorizontalOptions="Fill" | |
VerticalOptions="Fill"> | |
<Frame | |
Margin="15,25" | |
Padding="5" | |
Style="{StaticResource ModalStyle}" | |
VerticalOptions="Center"> | |
<StackLayout> | |
<Grid> | |
<Grid.ColumnDefinitions> | |
<ColumnDefinition Width="8*" /> | |
<ColumnDefinition Width="2*" /> | |
</Grid.ColumnDefinitions> | |
<Label | |
x:Name="ModalHeaderLabel" | |
Grid.ColumnSpan="2" | |
HorizontalOptions="Center" | |
HorizontalTextAlignment="Center" | |
Style="{StaticResource HeaderLabel}" | |
Text="{Binding Source={x:Reference ModalControl}, Path=ModalHeader}" | |
VerticalOptions="Start" /> | |
<Button | |
x:Name="CloseModalBtn" | |
Grid.Column="1" | |
Clicked="CloseModalBtn_OnClicked" | |
HorizontalOptions="End" | |
Text="X" /> | |
</Grid> | |
<ContentPresenter /> | |
</StackLayout> | |
</Frame> | |
</StackLayout> | |
</ControlTemplate> | |
</ContentView.ControlTemplate> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment