Skip to content

Commit

Permalink
[WorkingWithTriggers] fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Rustam Zaitov committed Mar 25, 2015
1 parent 92ee51b commit eea32ee
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 36 deletions.
36 changes: 11 additions & 25 deletions WorkingWithTriggers/WorkingWithTriggers.iOS/AppDelegate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,31 +10,17 @@

namespace WorkingWithTriggers
{
// The UIApplicationDelegate for the application. This class is responsible for launching the
// User Interface of the application, as well as listening (and optionally responding) to
// application events from iOS.
[Register("AppDelegate")]
public partial class AppDelegate : FormsApplicationDelegate
{
// class-level declarations
UIWindow window;

//
// This method is invoked when the application has loaded and is ready to run. In this
// method you should instantiate the window, load the UI into it and then make the window
// visible.
//
// You have 17 seconds to return from this method, or iOS will terminate your application.
//
public override bool FinishedLaunching(UIApplication app, NSDictionary options)
{
Forms.Init();

window = new UIWindow(UIScreen.MainScreen.Bounds);

// The UIApplicationDelegate for the application. This class is responsible for launching the
// User Interface of the application, as well as listening (and optionally responding) to
// application events from iOS.
[Register ("AppDelegate")]
public partial class AppDelegate : FormsApplicationDelegate
{
public override bool FinishedLaunching (UIApplication app, NSDictionary options)
{
Forms.Init ();
LoadApplication (new App ());

return base.FinishedLaunching (app, options);
}
}
}
}
}
2 changes: 2 additions & 0 deletions WorkingWithTriggers/WorkingWithTriggers.iOS/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,7 @@
</array>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>CFBundleIdentifier</key>
<string>com.xamarin.Triggers</string>
</dict>
</plist>
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
<IPhoneResourcePrefix>Resources</IPhoneResourcePrefix>
<NuGetPackageImportStamp>2a67ba64</NuGetPackageImportStamp>
<TargetFrameworkIdentifier>Xamarin.iOS</TargetFrameworkIdentifier>
<AssemblyName>WorkingWithTriggersiOS</AssemblyName>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|iPhoneSimulator' ">
<DebugSymbols>true</DebugSymbols>
Expand Down
4 changes: 2 additions & 2 deletions WorkingWithTriggers/WorkingWithTriggers/DataTriggerXaml.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@

<Label Text="Entry requires length>0 before button is enabled" FontSize="Small" />

<Entry x:Name="entry"
<Entry
Text=""
Placeholder="required field" /><!-- referenced below in DataTrigger-->

<Button x:Name="button" Text="Save"
<Button Text="Save"
FontSize="Large"
HorizontalOptions="Center">
<Button.Triggers>
Expand Down
14 changes: 6 additions & 8 deletions WorkingWithTriggers/WorkingWithTriggers/MultiTriggerXaml.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@
<!-- the Entry x:Name are referenced below in the MultiTrigger -->
<!-- tip: make sure to set the Text="" (or some other default) -->

<Entry x:Name="email"
<Entry
Text=""
Placeholder="email" />

<Entry x:Name="phone"
<Entry
Text=""
Placeholder="phone" />

<Button x:Name="button" Text="Save"
<Button Text="Save"
FontSize="Large"
HorizontalOptions="Center">
<Button.Triggers>
Expand Down Expand Up @@ -59,15 +59,13 @@
<!-- the Entry x:Name are referenced below in the MultiTrigger -->
<!-- tip: make sure to set the Text="" (or some other default) -->

<Entry x:Name="user"
Text=""
<Entry Text=""
Placeholder="user name" />

<Entry x:Name="pwd"
Text=""
<Entry Text=""
Placeholder="password" />

<Button x:Name="loginButton" Text="Login"
<Button Text="Login"
FontSize="Large"
HorizontalOptions="Center"
IsEnabled="false">
Expand Down

0 comments on commit eea32ee

Please sign in to comment.