This file contains hidden or 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
| # Xcode | |
| # | |
| # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore | |
| ## Build generated | |
| build/ | |
| DerivedData/ | |
| ## Various settings | |
| *.pbxuser |
This file contains hidden or 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
| //==================== | |
| // private Functions | |
| //==================== | |
| /// Sample Function | |
| private func sampleFunc() { | |
| print("Sample Func!") | |
| } | |
| //==================== |
This file contains hidden or 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
| <ContentPage | |
| xmlns:local="clr-namespace:MyApp;assembly=MyApp" | |
| BindingContext="{x:Static local:ViewModelLocator.LoginViewModel}"/> |
This file contains hidden or 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
| using Xamarin.Forms; | |
| namespace ScreenSize | |
| { | |
| public interface IScreenSize | |
| { | |
| /// <summary> | |
| /// 画面サイズの取得 | |
| /// </summary> | |
| /// <returns>画面サイズ</returns> |
This file contains hidden or 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
| // HUDを表示する(メッセージなし) | |
| DependencyService.Get<IProgressHud>().Show(); | |
| // HUDを表示する(メッセージあり) | |
| DependencyService.Get<IProgressHud>().Show("Loading..."); | |
| // HUDを表示する | |
| DependencyService.Get<IProgressHud>().Dismiss(); |
This file contains hidden or 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
| var mainPage = Application.Current.MainPage; |
This file contains hidden or 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
| Device.OpenUri(new Uri("https://www.xamarin.com/")); |
This file contains hidden or 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
| // 冒頭に記述することで、ファイル全体でWarningを無効化 | |
| #pragma warning disable 0618 | |
| using System; | |
| using Android.Webkit; | |
| using Android.App; | |
| namespace XFWarningDisableSample.Droid | |
| { | |
| [Activity(Label = "XFWarningDisableSample.Droid", Icon = "@drawable/icon", Theme = "@style/MyTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation)] |
This file contains hidden or 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
| using System; | |
| using Android.OS; | |
| using XFExitSample.DependencyServices; | |
| using XFExitSample.DependencyServices.Droid; | |
| using Xamarin.Forms; | |
| [assembly: Dependency(typeof(ApplicationUtil_Droid))] | |
| namespace XFExitSample.DependencyServices.Droid | |
| { |
This file contains hidden or 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
| var tabbedPage = this.Parent as TabbedPage; | |
| tabbedPage.CurrentPage = tabbedPage.Children[0]; |
NewerOlder