Skip to content

Instantly share code, notes, and snippets.

@rdelrosario
Created June 20, 2021 13:39
Show Gist options
  • Save rdelrosario/3c97889b074222c8ae0f18a9457191af to your computer and use it in GitHub Desktop.
Save rdelrosario/3c97889b074222c8ae0f18a9457191af to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8" ?>
<rxui:ReactiveContentPage
x:Class="ReactiveToDoSample.Views.ItemPage"
xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:rxui="clr-namespace:ReactiveUI.XamForms;assembly=ReactiveUI.XamForms"
xmlns:vm="clr-namespace:ReactiveToDoSample.ViewModels"
x:TypeArguments="vm:ItemViewModel">
<rxui:ReactiveContentPage.ToolbarItems>
<ToolbarItem Command="{Binding CloseCommand}" Text="Close" />
</rxui:ReactiveContentPage.ToolbarItems>
<StackLayout>
<Label Text="Item"
FontSize="Title"
Padding="20"
HorizontalOptions="Center"/>
<Frame Style="{StaticResource CardFrameStyle}"
Margin="10"
VerticalOptions="Start">
<StackLayout
HorizontalOptions="FillAndExpand">
<Entry Placeholder="Title"
Text="{Binding Title}" />
<Button Command="{Binding SaveCommand}"
Style="{StaticResource MainButtonStyle}"
Text="Save"/>
</StackLayout>
</Frame>
</StackLayout>
</rxui:ReactiveContentPage>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment