Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
123 changes: 69 additions & 54 deletions VisualChallenge/VisualChallenge.Android/Resources/Resource.designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,26 @@
<AndroidResource Include="Resources\drawable-xxhdpi\xamagon_preview.png" />
<AndroidResource Include="Resources\drawable-xxxhdpi\xamagon_preview.png" />
</ItemGroup>
<ItemGroup />
<ItemGroup>
<AndroidResource Include="Resources\drawable\monkey1.jpg" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\VisualChallenge\VisualChallenge.csproj">
<Project>{DF343C5B-66F1-4EF5-B721-6246D8F1DC39}</Project>
<Name>VisualChallenge</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\drawable\monkey.jpg" />
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\drawable\monkey2.jpg" />
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\drawable\monkey3.jpg" />
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\drawable\monkey4.jpg" />
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath)\Xamarin\Android\Xamarin.Android.CSharp.targets" />
</Project>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions VisualChallenge/VisualChallenge.iOS/VisualChallenge.iOS.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -144,4 +144,19 @@
<Name>VisualChallenge</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<BundleResource Include="Resources\monkey.jpg" />
</ItemGroup>
<ItemGroup>
<BundleResource Include="Resources\monkey1.jpg" />
</ItemGroup>
<ItemGroup>
<BundleResource Include="Resources\monkey2.jpg" />
</ItemGroup>
<ItemGroup>
<BundleResource Include="Resources\monkey3.jpg" />
</ItemGroup>
<ItemGroup>
<BundleResource Include="Resources\monkey4.jpg" />
</ItemGroup>
</Project>
54 changes: 49 additions & 5 deletions VisualChallenge/VisualChallenge/VisualChallengePage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,61 @@
BackgroundColor="White"
Title="Visual Challenge"
>

<ContentPage.ToolbarItems>
<ToolbarItem Order="Primary" Text="Add"></ToolbarItem>
<ToolbarItem Order="Secondary" Priority="0" Text="Update"></ToolbarItem>
</ContentPage.ToolbarItems>
<!-- If you decide to change out the flexlayout leave the scroll view here
Currently there's a bug in shell that will set margins wrong if the content is not in a scrollview
-->
<ScrollView>
<FlexLayout Margin="20" Direction="Column" AlignContent="Center" JustifyContent="SpaceAround">
<StackLayout Margin="20" >

<Label Text="Start Here" FontSize="24" HorizontalTextAlignment="Center"/>
<Frame Padding="0" Visual="Material" CornerRadius="10" BorderColor="Green">
<Entry Visual="Material" Placeholder="Enter Name"></Entry>
</Frame>
<Frame Visual="Material" HeightRequest="150" WidthRequest="150" CornerRadius="5" BorderColor="Red">
<Image Source="monkey.jpg"></Image>
</Frame>
<Frame BorderColor="LightGray">
<Grid Visual="Material">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="200"/>
<RowDefinition Height="200"/>
</Grid.RowDefinitions>
<Frame Grid.Row="0" Visual="Material" Grid.Column="0" BorderColor="LightGray">
<StackLayout >
<Label Text="Monkey"></Label>
<Image Aspect="AspectFit" Source="monkey1.jpg"></Image>
</StackLayout>
</Frame>

<Button Text="Read More About Visual" Clicked="Button_Clicked" />
<Frame Grid.Row="0" Grid.Column="1" BorderColor="LightGray">
<StackLayout >
<Label Text="Monkey"></Label>
<Image Aspect="AspectFit" Source="monkey2.jpg"></Image>
</StackLayout>
</Frame>
<Frame Grid.Row="1" Grid.Column="0" BorderColor="LightGray">
<StackLayout >
<Label Text="Monkey"></Label>
<Image Aspect="AspectFit" Source="monkey3.jpg"></Image>
</StackLayout>
</Frame>

</FlexLayout>
<Frame Grid.Row="1" Grid.Column="1" BorderColor="LightGray">
<StackLayout >
<Label Text="Monkey"></Label>
<Image Aspect="AspectFit" Source="monkey4.jpg"></Image>
</StackLayout>
</Frame>
</Grid>
</Frame>

</StackLayout>
</ScrollView>
</ContentPage>
2 changes: 2 additions & 0 deletions VisualChallenge/VisualChallenge/VisualChallengePage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,7 @@ private void Button_Clicked(object sender, EventArgs e)
{
Device.OpenUri(new Uri("https://docs.microsoft.com/en-us/xamarin/xamarin-forms/user-interface/visual"));
}


}
}