-
Notifications
You must be signed in to change notification settings - Fork 224
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
41 changed files
with
211 additions
and
186 deletions.
There are no files selected for viewing
Empty file.
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
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
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
17 changes: 17 additions & 0 deletions
17
Mobile/Xamarin.Forms/Piano/Piano/Piano.Tizen.Mobile/Piano/Controls/Key.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
|
||
<ImageView xmlns="http://tizen.org/Tizen.NUI/2018/XAML" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | ||
xmlns:viewModels="clr-namespace:Piano.ViewModels;assembly=Piano.Tizen.Mobile" | ||
x:Class="Piano.Controls.Key" | ||
WidthSpecification="{Static LayoutParamPolicies.MatchParent}" | ||
HeightSpecification="{Static LayoutParamPolicies.MatchParent}" | ||
x:Name="Root" | ||
AdjustViewSize="true" > | ||
|
||
<ImageView.BindingContext> | ||
<viewModels:KeyViewModel SoundNumber="{Binding Source={x:Reference Name='Root'}, Path=SoundNumber}" | ||
PlaySoundCommand="{Binding Source={x:Reference Name='Root'}, Path=OnClickedCommand, Mode=OneWayToSource}" /> | ||
</ImageView.BindingContext> | ||
|
||
</ImageView> |
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
File renamed without changes.
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
22 changes: 22 additions & 0 deletions
22
Mobile/Xamarin.Forms/Piano/Piano/Piano.Tizen.Mobile/Piano/Piano.csproj
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>netcoreapp3.1</TargetFramework> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<None Remove="Controls\Key.xaml" /> | ||
<None Remove="Views\MainPage.xaml" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<EmbeddedResource Include="Controls\Key.xaml" /> | ||
<EmbeddedResource Include="Views\MainPage.xaml" /> | ||
</ItemGroup> | ||
|
||
<!-- Include Nuget Package for Xamarin building --> | ||
<ItemGroup> | ||
<PackageReference Include="Tizen.NET" Version="11.0.0.17614" /> | ||
</ItemGroup> | ||
|
||
</Project> |
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
80 changes: 80 additions & 0 deletions
80
Mobile/Xamarin.Forms/Piano/Piano/Piano.Tizen.Mobile/Piano/Views/MainPage.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
|
||
<ContentPage xmlns="http://tizen.org/Tizen.NUI/2018/XAML" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | ||
xmlns:control="clr-namespace:Piano.Controls;assembly=Piano.Tizen.Mobile" | ||
x:Class="Piano.Views.MainPage" | ||
WidthSpecification="{Static LayoutParamPolicies.MatchParent}" | ||
HeightSpecification="{Static LayoutParamPolicies.MatchParent}" > | ||
|
||
<ContentPage.XamlResources> | ||
|
||
<XamlStyle x:Key="whiteKeyStyle" TargetType="control:Key"> | ||
<Setter Property="UnPressedImageSource" Value="*Resource*/white.png" /> | ||
<Setter Property="PressedImageSource" Value="*Resource*/white_pressed.png" /> | ||
</XamlStyle> | ||
<XamlStyle x:Key="blackKeyStyle" TargetType="control:Key"> | ||
<Setter Property="UnPressedImageSource" Value="*Resource*/black.png" /> | ||
<Setter Property="PressedImageSource" Value="*Resource*/black_pressed.png" /> | ||
</XamlStyle> | ||
|
||
</ContentPage.XamlResources> | ||
|
||
<ContentPage.Content> | ||
|
||
<View WidthSpecification="{Static LayoutParamPolicies.MatchParent}" | ||
HeightSpecification="{Static LayoutParamPolicies.MatchParent}"> | ||
|
||
<View.Layout> | ||
<AbsoluteLayout /> | ||
</View.Layout> | ||
|
||
<control:Key SoundNumber="0" | ||
LayoutBounds="0.0,0.0,0.125,1.0" | ||
XamlStyle="{StaticResource whiteKeyStyle}" /> | ||
<control:Key SoundNumber="2" | ||
LayoutBounds="0.125,0.0,0.125,1.0" | ||
XamlStyle="{StaticResource whiteKeyStyle}" /> | ||
<control:Key SoundNumber="4" | ||
LayoutBounds="0.250,0.0,0.125,1.0" | ||
XamlStyle="{StaticResource whiteKeyStyle}" /> | ||
<control:Key SoundNumber="5" | ||
LayoutBounds="0.375,0.0,0.125,1.0" | ||
XamlStyle="{StaticResource whiteKeyStyle}" /> | ||
<control:Key SoundNumber="7" | ||
LayoutBounds="0.500,0.0,0.125,1.0" | ||
XamlStyle="{StaticResource whiteKeyStyle}" /> | ||
<control:Key SoundNumber="9" | ||
LayoutBounds="0.625,0.0,0.125,1.0" | ||
XamlStyle="{StaticResource whiteKeyStyle}" /> | ||
<control:Key SoundNumber="11" | ||
LayoutBounds="0.750,0.0,0.125,1.0" | ||
XamlStyle="{StaticResource whiteKeyStyle}" /> | ||
<control:Key SoundNumber="12" | ||
LayoutBounds="0.875,0.0,0.125,1.0" | ||
XamlStyle="{StaticResource whiteKeyStyle}" /> | ||
|
||
<control:Key SoundNumber="1" | ||
LayoutBounds="0.09,0,0.075,0.6694" | ||
XamlStyle="{StaticResource blackKeyStyle}" /> | ||
<control:Key SoundNumber="3" | ||
LayoutBounds="0.215,0,0.075,0.6694" | ||
XamlStyle="{StaticResource blackKeyStyle}" /> | ||
<control:Key SoundNumber="6" | ||
LayoutBounds="0.465,0,0.075,0.6694" | ||
XamlStyle="{StaticResource blackKeyStyle}" /> | ||
<control:Key SoundNumber="8" | ||
LayoutBounds="0.59,0,0.075,0.6694" | ||
XamlStyle="{StaticResource blackKeyStyle}" /> | ||
<control:Key SoundNumber="10" | ||
LayoutBounds="0.715,0,0.075,0.6694" | ||
XamlStyle="{StaticResource blackKeyStyle}" /> | ||
<control:Key SoundNumber="13" | ||
LayoutBounds="0.965,0,0.075,0.6694" | ||
XamlStyle="{StaticResource blackKeyStyle}" /> | ||
|
||
</View> | ||
|
||
</ContentPage.Content> | ||
|
||
</ContentPage> |
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
Oops, something went wrong.