diff --git a/ContentControls/AppDelegate.cs b/ContentControls/AppDelegate.cs deleted file mode 100644 index 111fca5b4..000000000 --- a/ContentControls/AppDelegate.cs +++ /dev/null @@ -1,34 +0,0 @@ -using System; -using MonoTouch.UIKit; -using MonoTouch.Foundation; -using Example_ContentControls.Screens; - -namespace Example_ContentControls -{ - [Register("AppDelegate")] - public class AppDelegate : UIApplicationDelegate - { - #region -= declarations and properties =- - - protected UIWindow window; - protected Screens.iPhone.Tabs.TabBarController iPhoneTabs; - - #endregion - - public override bool FinishedLaunching (UIApplication app, NSDictionary options) - { - // create our window - window = new UIWindow (UIScreen.MainScreen.Bounds); - window.MakeKeyAndVisible (); - - // create the tab controller - iPhoneTabs = new Screens.iPhone.Tabs.TabBarController(); - - // load the tab controller onto the window - window.RootViewController = iPhoneTabs; - - // - return true; - } - } -} diff --git a/ContentControls/Application.cs b/ContentControls/Application.cs deleted file mode 100644 index fc6e1a6af..000000000 --- a/ContentControls/Application.cs +++ /dev/null @@ -1,20 +0,0 @@ -using System; -using MonoTouch.UIKit; - -namespace Example_ContentControls -{ - public class Application// : UIApplication - { - public static void Main (string[] args) - { - try - { - UIApplication.Main (args, null, "AppDelegate"); - } - catch (Exception e) - { - Console.WriteLine (e.ToString ()); - } - } - } -} diff --git a/ContentControls/Content/Home.html b/ContentControls/Content/Home.html deleted file mode 100644 index 440ab9ace..000000000 --- a/ContentControls/Content/Home.html +++ /dev/null @@ -1,13 +0,0 @@ - - - My Sample Content - - - -

My iPhone Content

-
- - - \ No newline at end of file diff --git a/ContentControls/Content/Images/Image_Seedlings.png b/ContentControls/Content/Images/Image_Seedlings.png deleted file mode 100644 index a6eacb8d9..000000000 Binary files a/ContentControls/Content/Images/Image_Seedlings.png and /dev/null differ diff --git a/ContentControls/Content/InteractivePages/Home.html b/ContentControls/Content/InteractivePages/Home.html deleted file mode 100644 index 8d78f755e..000000000 --- a/ContentControls/Content/InteractivePages/Home.html +++ /dev/null @@ -1,21 +0,0 @@ - - - My Sample Content - - - - -

My iPhone Content

-
- - - \ No newline at end of file diff --git a/ContentControls/Content/InteractivePages/SubPage1.html b/ContentControls/Content/InteractivePages/SubPage1.html deleted file mode 100644 index fa89a089b..000000000 --- a/ContentControls/Content/InteractivePages/SubPage1.html +++ /dev/null @@ -1,15 +0,0 @@ - - - - - -

Sub Page 1!

- Wow, how cool is it that we're displaying HTML - content on the iPhone? Pretty cool, it means - we could put all kinds of content on here, like - books, papers, etc. :) -

- - << back - - \ No newline at end of file diff --git a/ContentControls/Content/Style/main.css b/ContentControls/Content/Style/main.css deleted file mode 100644 index adf1bdf88..000000000 --- a/ContentControls/Content/Style/main.css +++ /dev/null @@ -1,25 +0,0 @@ -body -{ - background-color: #636363; - font-family: "HelveticaNeue-Light", "Helvetica Neue Light", - "Helvetica Neue", sans-serif; - font-weight: 100; - color: white; -} - -h1 -{ - font-size: 30pt; - text-align: center; - font-weight: 100; -} - -a:link, a:visited -{ - color: white; - text-decoration: none; -} -li -{ - color: white; -} \ No newline at end of file diff --git a/ContentControls/Content/SubPage1.html b/ContentControls/Content/SubPage1.html deleted file mode 100644 index fa89a089b..000000000 --- a/ContentControls/Content/SubPage1.html +++ /dev/null @@ -1,15 +0,0 @@ - - - - - -

Sub Page 1!

- Wow, how cool is it that we're displaying HTML - content on the iPhone? Pretty cool, it means - we could put all kinds of content on here, like - books, papers, etc. :) -

- - << back - - \ No newline at end of file diff --git a/ContentControls/Content/WordList.txt b/ContentControls/Content/WordList.txt deleted file mode 100644 index 0aa212580..000000000 --- a/ContentControls/Content/WordList.txt +++ /dev/null @@ -1,852 +0,0 @@ -a -able -about -account -acid -across -act -addition -adjustment -advertisement -after -again -against -agreement -air -all -almost -among -amount -amusement -and -angle -angry -animal -answer -ant -any -apparatus -apple -approval -arch -argument -arm -army -art -as -at -attack -attempt -attention -attraction -authority -automatic -awake -baby -back -bad -bag -balance -ball -band -base -basin -basket -bath -be -beautiful -because -bed -bee -before -behaviour -belief -bell -bent -berry -between -bird -birth -bit -bite -bitter -black -blade -blood -blow -blue -board -boat -body -boiling -bone -book -boot -bottle -box -boy -brain -brake -branch -brass -bread -breath -brick -bridge -bright -broken -brother -brown -brush -bucket -building -bulb -burn -burst -business -but -butter -button -by -cake -camera -canvas -card -care -carriage -cart -cat -cause -certain -chain -chalk -chance -change -cheap -cheese -chemical -chest -chief -chin -church -circle -clean -clear -clock -cloth -cloud -coal -coat -cold -collar -colour -comb -come -comfort -committee -common -company -comparison -competition -complete -complex -condition -connection -conscious -control -cook -copper -copy -cord -cork -cotton -cough -country -cover -cow -crack -credit -crime -cruel -crush -cry -cup -cup -current -curtain -curve -cushion -damage -danger -dark -daughter -day -dead -dear -death -debt -decision -deep -degree -delicate -dependent -design -desire -destruction -detail -development -different -digestion -direction -dirty -discovery -discussion -disease -disgust -distance -distribution -division -do -dog -door -doubt -down -drain -drawer -dress -drink -driving -drop -dry -dust -ear -early -earth -east -edge -education -effect -egg -elastic -electric -end -engine -enough -equal -error -even -event -ever -every -example -exchange -existence -expansion -experience -expert -eye -face -fact -fall -false -family -far -farm -fat -father -fear -feather -feeble -feeling -female -fertile -fiction -field -fight -finger -fire -first -fish -fixed -flag -flame -flat -flight -floor -flower -fly -fold -food -foolish -foot -for -force -fork -form -forward -fowl -frame -free -frequent -friend -from -front -fruit -full -future -garden -general -get -girl -give -glass -glove -go -goat -gold -good -government -grain -grass -great -green -grey -grip -group -growth -guide -gun -hair -hammer -hand -hanging -happy -harbour -hard -harmony -hat -hate -have -he -head -healthy -hear -hearing -heart -heat -help -high -history -hole -hollow -hook -hope -horn -horse -hospital -hour -house -how -humour -I -ice -idea -if -ill -important -impulse -in -increase -industry -ink -insect -instrument -insurance -interest -invention -iron -island -jelly -jewel -join -journey -judge -jump -keep -kettle -key -kick -kind -kiss -knee -knife -knot -knowledge -land -language -last -late -laugh -law -lead -leaf -learning -leather -left -leg -let -letter -level -library -lift -light -like -limit -line -linen -lip -liquid -list -little -living -lock -long -look -loose -loss -loud -love -low -machine -make -male -man -manager -map -mark -market -married -mass -match -material -may -meal -measure -meat -medical -meeting -memory -metal -middle -military -milk -mind -mine -minute -mist -mixed -money -monkey -month -moon -morning -mother -motion -mountain -mouth -move -much -muscle -music -nail -name -narrow -nation -natural -near -necessary -neck -need -needle -nerve -net -new -news -night -no -noise -normal -north -nose -not -note -now -number -nut -observation -of -off -offer -office -oil -old -on -only -open -operation -opinion -opposite -or -orange -order -organization -ornament -other -out -oven -over -owner -page -pain -paint -paper -parallel -parcel -part -past -paste -payment -peace -pen -pencil -person -physical -picture -pig -pin -pipe -place -plane -plant -plate -play -please -pleasure -plough -pocket -point -poison -polish -political -poor -porter -position -possible -pot -potato -powder -power -present -price -print -prison -private -probable -process -produce -profit -property -prose -protest -public -pull -pump -punishment -purpose -push -put -quality -question -quick -quiet -quite -rail -rain -range -rat -rate -ray -reaction -reading -ready -reason -receipt -record -red -regret -regular -relation -religion -representative -request -respect -responsible -rest -reward -rhythm -rice -right -ring -river -road -rod -roll -roof -room -root -rough -round -rub -rule -run -sad -safe -sail -salt -same -sand -say -scale -school -science -scissors -screw -sea -seat -second -secret -secretary -see -seed -seem -selection -self -send -sense -separate -serious -servant -sex -shade -shake -shame -sharp -sheep -shelf -ship -shirt -shock -shoe -short -shut -side -sign -silk -silver -simple -sister -size -skin - -skirt -sky -sleep -slip -slope -slow -small -smash -smell -smile -smoke -smooth -snake -sneeze -snow -so -soap -society -sock -soft -solid -some - -son -song -sort -sound -soup -south -space -spade -special -sponge -spoon -spring -square -stage -stamp -star -start -statement -station -steam -steel -stem -step -stick -sticky -stiff -still -stitch -stocking -stomach -stone -stop -store -story -straight -strange -street -stretch -strong -structure -substance -such -sudden -sugar -suggestion -summer -sun -support -surprise -sweet -swim -system -table -tail -take -talk -tall -taste -tax -teaching -tendency -test -than -that -the -then -theory -there -thick -thin -thing -this -thought -thread -throat -through -through -thumb -thunder -ticket -tight -till -time -tin -tired -to -toe -together -tomorrow -tongue -tooth -top -touch -town -trade -train -transport -tray -tree -trick -trouble -trousers -true -turn -twist -umbrella -under -unit -up -use -value -verse -very -vessel -view -violent -voice -waiting -walk -wall -war -warm -wash -waste -watch -water -wave -wax -way -weather -week -weight -well -west -wet -wheel -when -where -while -whip -whistle -white -who -why -wide -will -wind -window -wine -wing -winter -wire -wise -with -woman -wood -wool -word -work -worm -wound -writing -wrong -year -yellow -yes -yesterday -you -young \ No newline at end of file diff --git a/ContentControls/ContentControls.csproj b/ContentControls/ContentControls.csproj deleted file mode 100644 index a7045b032..000000000 --- a/ContentControls/ContentControls.csproj +++ /dev/null @@ -1,204 +0,0 @@ - - - - Debug - iPhoneSimulator - 9.0.21022 - 2.0 - {946043B8-8B2E-44D5-93A7-D66E9FB33180} - {6BC8ED88-2882-458C-8E55-DFD12B67127B};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - Exe - Example_ContentControls - Example_ContentControls - - - True - full - False - bin\iPhoneSimulator\Debug - DEBUG - prompt - 4 - True - False - None - - false - - - none - False - bin\iPhoneSimulator\Release - prompt - 4 - False - None - - false - - - True - full - False - bin\iPhone\Debug - DEBUG - prompt - 4 - True - False - iPhone Developer - - false - - - none - False - bin\iPhone\Release - prompt - 4 - False - iPhone Developer - - false - - - - - - - - - - - - - BrowsersHome.xib - - - BrowsersHome.xib - - - SearchScreen.xib - - - SearchScreen.xib - - - WebBrowser.xib - - - WebBrowser.xib - - - LocalBrowser.xib - - - LocalBrowser.xib - - - - CustomizableTabScreen.xib - - - CustomizableTabScreen.xib - - - CustomizingNavBarScreen.xib - - - CustomizingNavBarScreen.xib - - - InteractiveBrowser.xib - - - InteractiveBrowser.xib - - - BasicMapScreen.xib - - - BasicMapScreen.xib - - - MapsHome.xib - - - MapsHome.xib - - - AnnotatedMapScreen.xib - - - AnnotatedMapScreen.xib - - - MapWithOverlayScreen.xib - - - MapWithOverlayScreen.xib - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/ContentControls/ContentControls.sln b/ContentControls/ContentControls.sln deleted file mode 100644 index 052a23a6d..000000000 --- a/ContentControls/ContentControls.sln +++ /dev/null @@ -1,26 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 11.00 -# Visual Studio 2010 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ContentControls", "ContentControls.csproj", "{946043B8-8B2E-44D5-93A7-D66E9FB33180}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|iPhoneSimulator = Debug|iPhoneSimulator - Release|iPhoneSimulator = Release|iPhoneSimulator - Debug|iPhone = Debug|iPhone - Release|iPhone = Release|iPhone - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {946043B8-8B2E-44D5-93A7-D66E9FB33180}.Debug|iPhone.ActiveCfg = Debug|iPhone - {946043B8-8B2E-44D5-93A7-D66E9FB33180}.Debug|iPhone.Build.0 = Debug|iPhone - {946043B8-8B2E-44D5-93A7-D66E9FB33180}.Debug|iPhoneSimulator.ActiveCfg = Debug|iPhoneSimulator - {946043B8-8B2E-44D5-93A7-D66E9FB33180}.Debug|iPhoneSimulator.Build.0 = Debug|iPhoneSimulator - {946043B8-8B2E-44D5-93A7-D66E9FB33180}.Release|iPhone.ActiveCfg = Release|iPhone - {946043B8-8B2E-44D5-93A7-D66E9FB33180}.Release|iPhone.Build.0 = Release|iPhone - {946043B8-8B2E-44D5-93A7-D66E9FB33180}.Release|iPhoneSimulator.ActiveCfg = Release|iPhoneSimulator - {946043B8-8B2E-44D5-93A7-D66E9FB33180}.Release|iPhoneSimulator.Build.0 = Release|iPhoneSimulator - EndGlobalSection - GlobalSection(MonoDevelopProperties) = preSolution - StartupItem = ContentControls\ContentControls.csproj - EndGlobalSection -EndGlobal diff --git a/ContentControls/Info.plist b/ContentControls/Info.plist deleted file mode 100644 index 7f614206a..000000000 --- a/ContentControls/Info.plist +++ /dev/null @@ -1,25 +0,0 @@ - - - - - CFBundleDisplayName - Content Ctrls - CFBundleIconFiles - - Resources/icon-57.png - Resources/icon-114.png - Resources/icon-72.png - Resources/icon-144.png - Resources/icon-29.png - Resources/icon-58.png - Resources/icon-50.png - Resources/icon-100.png - - MinimumOSVersion - 3.0 - UIDeviceFamily - - 1 - - - diff --git a/ContentControls/Metadata.xml b/ContentControls/Metadata.xml deleted file mode 100644 index a5125e37c..000000000 --- a/ContentControls/Metadata.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - 167dc2bb-abca-4dc6-b6db-af97a040b57b - false - Intermediate - User Interface - diff --git a/ContentControls/README.md b/ContentControls/README.md deleted file mode 100644 index 3d883961b..000000000 --- a/ContentControls/README.md +++ /dev/null @@ -1,35 +0,0 @@ -Content Controls -================ - -Illustrates simple and advanced usage of the following content -controls: Web View, Map View, Search Controller, Navigation Bar, -and Tab Bar Controller. - -Web View - Contains a simple web browser built around the Web -View control. Illustrates how to load URLs, hook into events, -perform browsing functions, etc. Also has a web view view that -loads HTML content from a local directory. Additionally, shows -how to interact with content in the web view by executing JavaScript -and listening for specially formed URLs, in order to execute code -outside of the browser. - -Maps - Illustrates how to display a map using the map view. Includes -traditional map, satellite, and hybrid layers. Also shows how to add -annotations and overlays to the map, as well as calculate the distance -to particular locations from the map center. - -Search - Illustrates how to use the search bar and listen for events to -provide real-time search results as the search text changes. - -Navigation Bar - Illustrates how to customize the navigation bar by -adding buttons, changing the color, making it transparent, and event -adding a toolbar at the bottom of the view. - -Tab Bar Controller - Illustrates adding items to the tab bar controller -as well as allowing it to be edited/customized by rearranging tab items -and adding/removing them. - -Authors -------- - -Bryan Costanich diff --git a/ContentControls/Resources/Default-568h@2x.png b/ContentControls/Resources/Default-568h@2x.png deleted file mode 100644 index b3f66780c..000000000 Binary files a/ContentControls/Resources/Default-568h@2x.png and /dev/null differ diff --git a/ContentControls/Resources/Default-Landscape@2x~ipad.png b/ContentControls/Resources/Default-Landscape@2x~ipad.png deleted file mode 100644 index 13cd433d9..000000000 Binary files a/ContentControls/Resources/Default-Landscape@2x~ipad.png and /dev/null differ diff --git a/ContentControls/Resources/Default-Landscape~ipad.png b/ContentControls/Resources/Default-Landscape~ipad.png deleted file mode 100644 index 18532e3b9..000000000 Binary files a/ContentControls/Resources/Default-Landscape~ipad.png and /dev/null differ diff --git a/ContentControls/Resources/Default-Portrait@2x~ipad.png b/ContentControls/Resources/Default-Portrait@2x~ipad.png deleted file mode 100644 index becc2fe1c..000000000 Binary files a/ContentControls/Resources/Default-Portrait@2x~ipad.png and /dev/null differ diff --git a/ContentControls/Resources/Default-Portrait~ipad.png b/ContentControls/Resources/Default-Portrait~ipad.png deleted file mode 100644 index 1bc6fa7f3..000000000 Binary files a/ContentControls/Resources/Default-Portrait~ipad.png and /dev/null differ diff --git a/ContentControls/Resources/Default.png b/ContentControls/Resources/Default.png deleted file mode 100644 index 7ad63b043..000000000 Binary files a/ContentControls/Resources/Default.png and /dev/null differ diff --git a/ContentControls/Resources/Default@2x.png b/ContentControls/Resources/Default@2x.png deleted file mode 100644 index 8d59426f3..000000000 Binary files a/ContentControls/Resources/Default@2x.png and /dev/null differ diff --git a/ContentControls/Resources/iTunesArtwork.png b/ContentControls/Resources/iTunesArtwork.png deleted file mode 100644 index 0baf12237..000000000 Binary files a/ContentControls/Resources/iTunesArtwork.png and /dev/null differ diff --git a/ContentControls/Resources/iTunesArtwork@2x.png b/ContentControls/Resources/iTunesArtwork@2x.png deleted file mode 100644 index 85346748c..000000000 Binary files a/ContentControls/Resources/iTunesArtwork@2x.png and /dev/null differ diff --git a/ContentControls/Resources/icon-100.png b/ContentControls/Resources/icon-100.png deleted file mode 100644 index 13a7b3c4a..000000000 Binary files a/ContentControls/Resources/icon-100.png and /dev/null differ diff --git a/ContentControls/Resources/icon-114.png b/ContentControls/Resources/icon-114.png deleted file mode 100644 index 7a29a3749..000000000 Binary files a/ContentControls/Resources/icon-114.png and /dev/null differ diff --git a/ContentControls/Resources/icon-144.png b/ContentControls/Resources/icon-144.png deleted file mode 100644 index 0e17a295d..000000000 Binary files a/ContentControls/Resources/icon-144.png and /dev/null differ diff --git a/ContentControls/Resources/icon-29.png b/ContentControls/Resources/icon-29.png deleted file mode 100644 index 9cbe18993..000000000 Binary files a/ContentControls/Resources/icon-29.png and /dev/null differ diff --git a/ContentControls/Resources/icon-50.png b/ContentControls/Resources/icon-50.png deleted file mode 100644 index 7199467b7..000000000 Binary files a/ContentControls/Resources/icon-50.png and /dev/null differ diff --git a/ContentControls/Resources/icon-57.png b/ContentControls/Resources/icon-57.png deleted file mode 100644 index af8016ccb..000000000 Binary files a/ContentControls/Resources/icon-57.png and /dev/null differ diff --git a/ContentControls/Resources/icon-58.png b/ContentControls/Resources/icon-58.png deleted file mode 100644 index e33ac58c6..000000000 Binary files a/ContentControls/Resources/icon-58.png and /dev/null differ diff --git a/ContentControls/Resources/icon-72.png b/ContentControls/Resources/icon-72.png deleted file mode 100644 index 0efca0711..000000000 Binary files a/ContentControls/Resources/icon-72.png and /dev/null differ diff --git a/ContentControls/Screens/iPhone/Browsers/BrowsersHome.xib b/ContentControls/Screens/iPhone/Browsers/BrowsersHome.xib deleted file mode 100644 index b9d99aa71..000000000 --- a/ContentControls/Screens/iPhone/Browsers/BrowsersHome.xib +++ /dev/null @@ -1,327 +0,0 @@ - - - - 768 - 10F569 - 788 - 1038.29 - 461.00 - - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - 117 - - - YES - - - - YES - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - YES - - YES - - - YES - - - - YES - - IBFilesOwner - IBCocoaTouchFramework - - - IBFirstResponder - IBCocoaTouchFramework - - - - 292 - - YES - - - 295 - {{20, 20}, {280, 37}} - - NO - IBCocoaTouchFramework - 0 - 0 - - Helvetica-Bold - 15 - 16 - - 1 - Web Browser - - 3 - MQA - - - 1 - MC4xOTYwNzg0MzQ2IDAuMzA5ODAzOTMyOSAwLjUyMTU2ODY1NgA - - - 3 - MC41AA - - - - - 295 - {{20, 65}, {280, 37}} - - NO - IBCocoaTouchFramework - 0 - 0 - - 1 - Local Content Browser - - - 1 - MC4xOTYwNzg0MzQ2IDAuMzA5ODAzOTMyOSAwLjUyMTU2ODY1NgA - - - - - - 295 - {{20, 110}, {280, 37}} - - NO - IBCocoaTouchFramework - 0 - 0 - - 1 - Interacting with the Web View - - - 1 - MC4xOTYwNzg0MzQ2IDAuMzA5ODAzOTMyOSAwLjUyMTU2ODY1NgA - - - - - {320, 416} - - - 3 - MQA - - 2 - - - - - NO - - IBCocoaTouchFramework - - - - - YES - - - view - - - - 7 - - - - btnLocalBrowser - - - - 10 - - - - btnWebBrowser - - - - 11 - - - - btnInteractivity - - - - 13 - - - - - YES - - 0 - - - - - - 1 - - - YES - - - - - - - - -1 - - - File's Owner - - - -2 - - - - - 8 - - - - - 9 - - - - - 12 - - - - - - - YES - - YES - -1.CustomClassName - -2.CustomClassName - 1.IBEditorWindowLastContentRect - 1.IBPluginDependency - 12.IBPluginDependency - 8.IBPluginDependency - 9.IBPluginDependency - - - YES - BrowsersHome - UIResponder - {{357, 275}, {320, 480}} - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - - YES - - - YES - - - - - YES - - - YES - - - - 13 - - - - YES - - BrowsersHome - - YES - - YES - btnInteractivity - btnLocalBrowser - btnWebBrowser - view - - - YES - id - id - id - id - - - - YES - - YES - btnInteractivity - btnLocalBrowser - btnWebBrowser - view - - - YES - - btnInteractivity - id - - - btnLocalBrowser - id - - - btnWebBrowser - id - - - view - id - - - - - IBUserSource - - - - - - 0 - IBCocoaTouchFramework - - com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS - - - - com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3 - - - YES - - 3 - 117 - - diff --git a/ContentControls/Screens/iPhone/Browsers/BrowsersHome.xib.cs b/ContentControls/Screens/iPhone/Browsers/BrowsersHome.xib.cs deleted file mode 100644 index 8a037e0ce..000000000 --- a/ContentControls/Screens/iPhone/Browsers/BrowsersHome.xib.cs +++ /dev/null @@ -1,68 +0,0 @@ - -using System; -using System.Collections.Generic; -using System.Linq; -using MonoTouch.Foundation; -using MonoTouch.UIKit; - -namespace Example_ContentControls.Screens.iPhone.Browsers -{ - public partial class BrowsersHome : UIViewController - { - #region Constructors - - // The IntPtr and initWithCoder constructors are required for items that need - // to be able to be created from a xib rather than from managed code - - public BrowsersHome (IntPtr handle) : base(handle) - { - Initialize (); - } - - [Export("initWithCoder:")] - public BrowsersHome (NSCoder coder) : base(coder) - { - Initialize (); - } - - public BrowsersHome () : base("BrowsersHome", null) - { - Initialize (); - } - - void Initialize () - { - } - - #endregion - - public override void ViewDidLoad () - { - base.ViewDidLoad (); - - this.NavigationItem.Title = "UIWebView Examples"; - - // on web browser button click, load the web browser page - this.btnWebBrowser.TouchUpInside += (s, e) => { - this.NavigationController.PushViewController(new WebBrowser(), true); - }; - - // on local browser button click, load the local browser page - this.btnLocalBrowser.TouchUpInside += (s, e) => { - this.NavigationController.PushViewController(new LocalBrowser(), true); - }; - - // interacting with the web view - this.btnInteractivity.TouchUpInside += (s, e) => { - this.NavigationController.PushViewController(new InteractiveBrowser(), true); - }; - } - - public override bool ShouldAutorotateToInterfaceOrientation (UIInterfaceOrientation toInterfaceOrientation) - { - return true; - } - - } -} - diff --git a/ContentControls/Screens/iPhone/Browsers/BrowsersHome.xib.designer.cs b/ContentControls/Screens/iPhone/Browsers/BrowsersHome.xib.designer.cs deleted file mode 100644 index 42e9af129..000000000 --- a/ContentControls/Screens/iPhone/Browsers/BrowsersHome.xib.designer.cs +++ /dev/null @@ -1,75 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Mono Runtime Version: 2.0.50727.1433 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -namespace Example_ContentControls.Screens.iPhone.Browsers { - - - // Base type probably should be MonoTouch.UIKit.UIViewController or subclass - [MonoTouch.Foundation.Register("BrowsersHome")] - public partial class BrowsersHome { - - private MonoTouch.UIKit.UIView __mt_view; - - private MonoTouch.UIKit.UIButton __mt_btnLocalBrowser; - - private MonoTouch.UIKit.UIButton __mt_btnWebBrowser; - - private MonoTouch.UIKit.UIButton __mt_btnInteractivity; - - #pragma warning disable 0169 - [MonoTouch.Foundation.Connect("view")] - private MonoTouch.UIKit.UIView view { - get { - this.__mt_view = ((MonoTouch.UIKit.UIView)(this.GetNativeField("view"))); - return this.__mt_view; - } - set { - this.__mt_view = value; - this.SetNativeField("view", value); - } - } - - [MonoTouch.Foundation.Connect("btnLocalBrowser")] - private MonoTouch.UIKit.UIButton btnLocalBrowser { - get { - this.__mt_btnLocalBrowser = ((MonoTouch.UIKit.UIButton)(this.GetNativeField("btnLocalBrowser"))); - return this.__mt_btnLocalBrowser; - } - set { - this.__mt_btnLocalBrowser = value; - this.SetNativeField("btnLocalBrowser", value); - } - } - - [MonoTouch.Foundation.Connect("btnWebBrowser")] - private MonoTouch.UIKit.UIButton btnWebBrowser { - get { - this.__mt_btnWebBrowser = ((MonoTouch.UIKit.UIButton)(this.GetNativeField("btnWebBrowser"))); - return this.__mt_btnWebBrowser; - } - set { - this.__mt_btnWebBrowser = value; - this.SetNativeField("btnWebBrowser", value); - } - } - - [MonoTouch.Foundation.Connect("btnInteractivity")] - private MonoTouch.UIKit.UIButton btnInteractivity { - get { - this.__mt_btnInteractivity = ((MonoTouch.UIKit.UIButton)(this.GetNativeField("btnInteractivity"))); - return this.__mt_btnInteractivity; - } - set { - this.__mt_btnInteractivity = value; - this.SetNativeField("btnInteractivity", value); - } - } - } -} diff --git a/ContentControls/Screens/iPhone/Browsers/InteractiveBrowser.xib b/ContentControls/Screens/iPhone/Browsers/InteractiveBrowser.xib deleted file mode 100644 index 56eea6189..000000000 --- a/ContentControls/Screens/iPhone/Browsers/InteractiveBrowser.xib +++ /dev/null @@ -1,280 +0,0 @@ - - - - 768 - 10F569 - 788 - 1038.29 - 461.00 - - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - 117 - - - YES - - - - YES - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - YES - - YES - - - YES - - - - YES - - IBFilesOwner - IBCocoaTouchFramework - - - IBFirstResponder - IBCocoaTouchFramework - - - - 292 - - YES - - - 274 - {320, 309} - - - 1 - MSAxIDEAA - - IBCocoaTouchFramework - 1 - YES - - - - 264 - {{20, 317}, {280, 37}} - - NO - IBCocoaTouchFramework - 0 - 0 - - Helvetica-Bold - 15 - 16 - - 1 - Run Script - - 3 - MQA - - - 1 - MC4xOTYwNzg0MzQ2IDAuMzA5ODAzOTMyOSAwLjUyMTU2ODY1NgA - - - 3 - MC41AA - - - - {320, 367} - - - 3 - MQA - - 2 - - - - - NO - - - IBCocoaTouchFramework - - - - - YES - - - view - - - - 7 - - - - btnRunScript - - - - 10 - - - - webMain - - - - 11 - - - - - YES - - 0 - - - - - - 1 - - - YES - - - - - - - -1 - - - File's Owner - - - -2 - - - - - 8 - - - - - 9 - - - - - - - YES - - YES - -1.CustomClassName - -2.CustomClassName - 1.IBEditorWindowLastContentRect - 1.IBPluginDependency - 8.IBPluginDependency - 9.IBPluginDependency - - - YES - InteractiveBrowser - UIResponder - {{461, 346}, {320, 480}} - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - - YES - - - YES - - - - - YES - - - YES - - - - 11 - - - - YES - - InteractiveBrowser - - YES - - YES - btnRunScript - view - webMain - - - YES - id - id - id - - - - YES - - YES - btnRunScript - view - webMain - - - YES - - btnRunScript - id - - - view - id - - - webMain - id - - - - - IBUserSource - - - - - - 0 - IBCocoaTouchFramework - - com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS - - - - com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3 - - - YES - - 3 - 117 - - diff --git a/ContentControls/Screens/iPhone/Browsers/InteractiveBrowser.xib.cs b/ContentControls/Screens/iPhone/Browsers/InteractiveBrowser.xib.cs deleted file mode 100644 index 2dac251ff..000000000 --- a/ContentControls/Screens/iPhone/Browsers/InteractiveBrowser.xib.cs +++ /dev/null @@ -1,84 +0,0 @@ - -using System; -using System.Collections.Generic; -using System.Linq; -using MonoTouch.Foundation; -using MonoTouch.UIKit; - -namespace Example_ContentControls.Screens.iPhone.Browsers -{ - public partial class InteractiveBrowser : UIViewController - { - #region Constructors - - // The IntPtr and initWithCoder constructors are required for items that need - // to be able to be created from a xib rather than from managed code - - public InteractiveBrowser (IntPtr handle) : base(handle) - { - Initialize (); - } - - [Export("initWithCoder:")] - public InteractiveBrowser (NSCoder coder) : base(coder) - { - Initialize (); - } - - public InteractiveBrowser () : base("InteractiveBrowser", null) - { - Initialize (); - } - - void Initialize () - { - } - - #endregion - - public override void ViewDidLoad () - { - base.ViewDidLoad (); - - this.btnRunScript.TouchUpInside += (s, e) => { - this.webMain.EvaluateJavascript ("RunAction();"); - }; - - this.Title = "Interactivity"; - - // can load the request directly - string homePageUrl = NSBundle.MainBundle.BundlePath + "/Content/InteractivePages/Home.html"; - this.webMain.LoadRequest (new NSUrlRequest (new NSUrl (homePageUrl, false))); - - this.webMain.ShouldStartLoad += this.HandleStartLoad; - } - - /// - /// In order to listen to events, we need to handle the ShouldStartLoad event. If - /// it's an event that we want to handle ourselves, rather than having the web view - /// do it, we need to return false, so that the navigation doesn't happen. in this - /// particular case we are checking for links that have //LOCAL/Action='whateverAction' - /// - public bool HandleStartLoad (UIWebView webView, NSUrlRequest request, - UIWebViewNavigationType navigationType) - { - Console.WriteLine (navigationType.ToString ()); - - // first, we check to see if it's a link - if (navigationType == UIWebViewNavigationType.LinkClicked) { - - // next, we check to see if it's a link with //LOCAL in it. - // note: up to iOS 5.1.1 the URL would start with "file://LOCAL" but later releases returns "file://local" - const string prefix = "file://local"; - if (String.Compare (request.Url.RelativeString, 0, prefix, 0, prefix.Length, StringComparison.InvariantCultureIgnoreCase) == 0) { - new UIAlertView ("Action!", "You clicked an action.", null, "OK", null).Show(); - // return false so that the browser doesn't try to navigate - return false; - } - } - // if we got here, it's not a link we want to handle - return true; - } - } -} - diff --git a/ContentControls/Screens/iPhone/Browsers/InteractiveBrowser.xib.designer.cs b/ContentControls/Screens/iPhone/Browsers/InteractiveBrowser.xib.designer.cs deleted file mode 100644 index 04f7938ff..000000000 --- a/ContentControls/Screens/iPhone/Browsers/InteractiveBrowser.xib.designer.cs +++ /dev/null @@ -1,61 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Mono Runtime Version: 2.0.50727.1433 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -namespace Example_ContentControls.Screens.iPhone.Browsers { - - - // Base type probably should be MonoTouch.UIKit.UIViewController or subclass - [MonoTouch.Foundation.Register("InteractiveBrowser")] - public partial class InteractiveBrowser { - - private MonoTouch.UIKit.UIView __mt_view; - - private MonoTouch.UIKit.UIButton __mt_btnRunScript; - - private MonoTouch.UIKit.UIWebView __mt_webMain; - - #pragma warning disable 0169 - [MonoTouch.Foundation.Connect("view")] - private MonoTouch.UIKit.UIView view { - get { - this.__mt_view = ((MonoTouch.UIKit.UIView)(this.GetNativeField("view"))); - return this.__mt_view; - } - set { - this.__mt_view = value; - this.SetNativeField("view", value); - } - } - - [MonoTouch.Foundation.Connect("btnRunScript")] - private MonoTouch.UIKit.UIButton btnRunScript { - get { - this.__mt_btnRunScript = ((MonoTouch.UIKit.UIButton)(this.GetNativeField("btnRunScript"))); - return this.__mt_btnRunScript; - } - set { - this.__mt_btnRunScript = value; - this.SetNativeField("btnRunScript", value); - } - } - - [MonoTouch.Foundation.Connect("webMain")] - private MonoTouch.UIKit.UIWebView webMain { - get { - this.__mt_webMain = ((MonoTouch.UIKit.UIWebView)(this.GetNativeField("webMain"))); - return this.__mt_webMain; - } - set { - this.__mt_webMain = value; - this.SetNativeField("webMain", value); - } - } - } -} diff --git a/ContentControls/Screens/iPhone/Browsers/LocalBrowser.xib b/ContentControls/Screens/iPhone/Browsers/LocalBrowser.xib deleted file mode 100644 index 09fa32d83..000000000 --- a/ContentControls/Screens/iPhone/Browsers/LocalBrowser.xib +++ /dev/null @@ -1,227 +0,0 @@ - - - - 768 - 10F569 - 788 - 1038.29 - 461.00 - - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - 117 - - - YES - - - - YES - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - YES - - YES - - - YES - - - - YES - - IBFilesOwner - IBCocoaTouchFramework - - - IBFirstResponder - IBCocoaTouchFramework - - - - 292 - - YES - - - 274 - {320, 416} - - - 1 - MSAxIDEAA - - IBCocoaTouchFramework - 1 - YES - - - {320, 416} - - - 3 - MQA - - 2 - - - - - NO - - IBCocoaTouchFramework - - - - - YES - - - view - - - - 7 - - - - webMain - - - - 9 - - - - - YES - - 0 - - - - - - 1 - - - YES - - - - - - -1 - - - File's Owner - - - -2 - - - - - 8 - - - - - - - YES - - YES - -1.CustomClassName - -2.CustomClassName - 1.IBEditorWindowLastContentRect - 1.IBPluginDependency - 8.IBPluginDependency - - - YES - LocalBrowser - UIResponder - {{357, 275}, {320, 480}} - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - - YES - - - YES - - - - - YES - - - YES - - - - 9 - - - - YES - - LocalBrowser - - YES - - YES - view - webMain - - - YES - id - id - - - - YES - - YES - view - webMain - - - YES - - view - id - - - webMain - id - - - - - IBUserSource - - - - - - 0 - IBCocoaTouchFramework - - com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS - - - - com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3 - - - YES - - 3 - 117 - - diff --git a/ContentControls/Screens/iPhone/Browsers/LocalBrowser.xib.cs b/ContentControls/Screens/iPhone/Browsers/LocalBrowser.xib.cs deleted file mode 100644 index 657fef68a..000000000 --- a/ContentControls/Screens/iPhone/Browsers/LocalBrowser.xib.cs +++ /dev/null @@ -1,64 +0,0 @@ - -using System; -using System.Collections.Generic; -using System.Linq; -using MonoTouch.Foundation; -using MonoTouch.UIKit; - -namespace Example_ContentControls.Screens.iPhone.Browsers -{ - public partial class LocalBrowser : UIViewController - { - #region Constructors - - // The IntPtr and initWithCoder constructors are required for items that need - // to be able to be created from a xib rather than from managed code - - public LocalBrowser (IntPtr handle) : base(handle) - { - Initialize (); - } - - [Export("initWithCoder:")] - public LocalBrowser (NSCoder coder) : base(coder) - { - Initialize (); - } - - public LocalBrowser () : base("LocalBrowser", null) - { - Initialize (); - } - - void Initialize () - { - } - - #endregion - - - public override void ViewDidLoad () - { - base.ViewDidLoad (); - - this.Title = "My Content"; - - // can load the request directly - string homePageUrl = NSBundle.MainBundle.BundlePath + "/Content/Home.html"; - this.webMain.LoadRequest (new NSUrlRequest (new NSUrl (homePageUrl, false))); - - // can also manually create html - string contentDirectoryPath = NSBundle.MainBundle.BundlePath + "/Content/"; - this.webMain.LoadHtmlString ("Click Me", new NSUrl (contentDirectoryPath, true)); - - } - - public override bool ShouldAutorotateToInterfaceOrientation (UIInterfaceOrientation toInterfaceOrientation) - { - return true; - } - - - } -} - diff --git a/ContentControls/Screens/iPhone/Browsers/LocalBrowser.xib.designer.cs b/ContentControls/Screens/iPhone/Browsers/LocalBrowser.xib.designer.cs deleted file mode 100644 index afce346b7..000000000 --- a/ContentControls/Screens/iPhone/Browsers/LocalBrowser.xib.designer.cs +++ /dev/null @@ -1,47 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Mono Runtime Version: 2.0.50727.1433 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -namespace Example_ContentControls.Screens.iPhone.Browsers { - - - // Base type probably should be MonoTouch.UIKit.UIViewController or subclass - [MonoTouch.Foundation.Register("LocalBrowser")] - public partial class LocalBrowser { - - private MonoTouch.UIKit.UIView __mt_view; - - private MonoTouch.UIKit.UIWebView __mt_webMain; - - #pragma warning disable 0169 - [MonoTouch.Foundation.Connect("view")] - private MonoTouch.UIKit.UIView view { - get { - this.__mt_view = ((MonoTouch.UIKit.UIView)(this.GetNativeField("view"))); - return this.__mt_view; - } - set { - this.__mt_view = value; - this.SetNativeField("view", value); - } - } - - [MonoTouch.Foundation.Connect("webMain")] - private MonoTouch.UIKit.UIWebView webMain { - get { - this.__mt_webMain = ((MonoTouch.UIKit.UIWebView)(this.GetNativeField("webMain"))); - return this.__mt_webMain; - } - set { - this.__mt_webMain = value; - this.SetNativeField("webMain", value); - } - } - } -} diff --git a/ContentControls/Screens/iPhone/Browsers/WebBrowser.xib b/ContentControls/Screens/iPhone/Browsers/WebBrowser.xib deleted file mode 100644 index 47c314a44..000000000 --- a/ContentControls/Screens/iPhone/Browsers/WebBrowser.xib +++ /dev/null @@ -1,493 +0,0 @@ - - - - 768 - 10F569 - 788 - 1038.29 - 461.00 - - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - 117 - - - YES - - - - YES - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - YES - - YES - - - YES - - - - YES - - IBFilesOwner - IBCocoaTouchFramework - - - IBFirstResponder - IBCocoaTouchFramework - - - - 292 - - YES - - - 292 - {{7, 5}, {32, 30}} - - NO - NO - IBCocoaTouchFramework - 0 - 0 - - Helvetica-Bold - 15 - 16 - - 1 - < - - 3 - MQA - - - 1 - MC4xOTYwNzg0MyAwLjMwOTgwMzkzIDAuNTIxNTY4NjYAA - - - 3 - MC41AA - - - - - 289 - {{249, 5}, {36, 30}} - - NO - NO - IBCocoaTouchFramework - 0 - 0 - - 1 - go - - - 1 - MC4xOTYwNzg0MyAwLjMwOTgwMzkzIDAuNTIxNTY4NjYAA - - - - - - 292 - {{41, 5}, {33, 30}} - - NO - NO - IBCocoaTouchFramework - 0 - 0 - - 1 - > - - - 1 - MC4xOTYwNzg0MyAwLjMwOTgwMzkzIDAuNTIxNTY4NjYAA - - - - - - 274 - {{0, 43}, {327, 373}} - - - 1 - MSAxIDEAA - - YES - YES - IBCocoaTouchFramework - 1 - YES - - - - 289 - {{288, 5}, {26, 30}} - - NO - NO - IBCocoaTouchFramework - 0 - 0 - - 1 - x - - - 1 - MC4xOTYwNzg0MyAwLjMwOTgwMzkzIDAuNTIxNTY4NjYAA - - - - - - -2147483359 - {{288, 51}, {20, 20}} - - NO - NO - NO - IBCocoaTouchFramework - 2 - - - - 290 - {{77, 5}, {169, 31}} - - NO - NO - IBCocoaTouchFramework - 0 - - 3 - - 3 - MAA - - 2 - - - YES - YES - 17 - - 3 - 1 - IBCocoaTouchFramework - - - - {320, 416} - - - 3 - MQA - - - - - NO - - IBCocoaTouchFramework - - - - - YES - - - view - - - - 7 - - - - btnBack - - - - 15 - - - - btnForward - - - - 16 - - - - btnGo - - - - 17 - - - - btnStop - - - - 18 - - - - txtAddress - - - - 20 - - - - webMain - - - - 21 - - - - imgBusy - - - - 22 - - - - - YES - - 0 - - - - - - 1 - - - YES - - - - - - - - - - - - -1 - - - File's Owner - - - -2 - - - - - 8 - - - - - 9 - - - - - 10 - - - - - 11 - - - - - 12 - - - - - 13 - - - - - 14 - - - - - - - YES - - YES - -1.CustomClassName - -2.CustomClassName - 1.IBEditorWindowLastContentRect - 1.IBPluginDependency - 10.IBPluginDependency - 11.IBPluginDependency - 12.IBPluginDependency - 13.IBPluginDependency - 14.IBPluginDependency - 8.IBPluginDependency - 9.IBPluginDependency - - - YES - WebBrowser - UIResponder - {{395, 348}, {320, 480}} - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - - YES - - - YES - - - - - YES - - - YES - - - - 22 - - - - YES - - WebBrowser - - YES - - YES - btnBack - btnForward - btnGo - btnStop - imgBusy - txtAddress - view - webMain - - - YES - id - id - id - id - id - id - id - id - - - - YES - - YES - btnBack - btnForward - btnGo - btnStop - imgBusy - txtAddress - view - webMain - - - YES - - btnBack - id - - - btnForward - id - - - btnGo - id - - - btnStop - id - - - imgBusy - id - - - txtAddress - id - - - view - id - - - webMain - id - - - - - IBUserSource - - - - - - 0 - IBCocoaTouchFramework - - com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS - - - - com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3 - - - YES - - 3 - 117 - - diff --git a/ContentControls/Screens/iPhone/Browsers/WebBrowser.xib.cs b/ContentControls/Screens/iPhone/Browsers/WebBrowser.xib.cs deleted file mode 100644 index 8048f3471..000000000 --- a/ContentControls/Screens/iPhone/Browsers/WebBrowser.xib.cs +++ /dev/null @@ -1,126 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using MonoTouch.Foundation; -using MonoTouch.UIKit; - -namespace Example_ContentControls.Screens.iPhone.Browsers -{ - public partial class WebBrowser : UIViewController - { - #region Constructors - - // The IntPtr and initWithCoder constructors are required for items that need - // to be able to be created from a xib rather than from managed code - - public WebBrowser (IntPtr handle) : base(handle) - { - Initialize (); - } - - [Export("initWithCoder:")] - public WebBrowser (NSCoder coder) : base(coder) - { - Initialize (); - } - - public WebBrowser () : base("WebBrowser", null) - { - Initialize (); - } - - void Initialize () - { - } - - #endregion - - public override void ViewDidLoad () - { - base.ViewDidLoad (); - - // set the title - Title = "Browser"; - - // wire up event handlers - btnBack.TouchUpInside += (s, e) => { if (webMain.CanGoBack) { webMain.GoBack (); } }; - btnForward.TouchUpInside += (s, e) => { if (webMain.CanGoForward) { webMain.GoForward (); } }; - btnStop.TouchUpInside += (s, e) => { webMain.StopLoading (); }; - btnGo.TouchUpInside += (s, e) => { NavigateToUrl (); }; - txtAddress.ShouldReturn += HandleEditingDone; - webMain.LoadStarted += LoadStarted; - webMain.LoadFinished += LoadingFinished; - webMain.LoadError += LoadError; - - // disable our buttons to start - btnBack.Enabled = false; - btnForward.Enabled = false; - btnStop.Enabled = false; - - // navigate to google - txtAddress.Text = "google.com"; - NavigateToUrl (); - - } - - protected void NavigateToUrl () - { - string url = txtAddress.Text; - - // make sure it's prefixed with either https:// or http:// - if (!(url.StartsWith ("http://") || url.StartsWith ("https://"))) - url = "http://" + url; - - webMain.LoadRequest (new NSUrlRequest (new NSUrl (url))); - } - - protected void SetBackAndForwardEnable () - { - btnBack.Enabled = webMain.CanGoBack; - btnForward.Enabled = webMain.CanGoForward; - } - - #region event handlers - - protected bool HandleEditingDone (UITextField textBox) - { - textBox.ResignFirstResponder (); - NavigateToUrl (); - return true; - } - - public void LoadStarted (object source, EventArgs e) - { - btnStop.Enabled = true; - SetBackAndForwardEnable (); - imgBusy.StartAnimating (); - } - - public void LoadingFinished (object source, EventArgs e) - { - SetBackAndForwardEnable (); - btnStop.Enabled = false; - imgBusy.StopAnimating (); - } - - public void LoadError (object sender, UIWebErrorArgs e) - { - imgBusy.StopAnimating (); - btnStop.Enabled = false; - SetBackAndForwardEnable (); - // show the error - UIAlertView alert = new UIAlertView ("Browse Error", - "Web page failed to load: " + e.Error.ToString (), - null, "OK", null); - alert.Show (); - } - - #endregion - - public override bool ShouldAutorotateToInterfaceOrientation (UIInterfaceOrientation toInterfaceOrientation) - { - return true; - } - } -} - diff --git a/ContentControls/Screens/iPhone/Browsers/WebBrowser.xib.designer.cs b/ContentControls/Screens/iPhone/Browsers/WebBrowser.xib.designer.cs deleted file mode 100644 index 086900099..000000000 --- a/ContentControls/Screens/iPhone/Browsers/WebBrowser.xib.designer.cs +++ /dev/null @@ -1,131 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Mono Runtime Version: 2.0.50727.1433 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -namespace Example_ContentControls.Screens.iPhone.Browsers { - - - // Base type probably should be MonoTouch.UIKit.UIViewController or subclass - [MonoTouch.Foundation.Register("WebBrowser")] - public partial class WebBrowser { - - private MonoTouch.UIKit.UIView __mt_view; - - private MonoTouch.UIKit.UIButton __mt_btnBack; - - private MonoTouch.UIKit.UIButton __mt_btnForward; - - private MonoTouch.UIKit.UIButton __mt_btnGo; - - private MonoTouch.UIKit.UIButton __mt_btnStop; - - private MonoTouch.UIKit.UITextField __mt_txtAddress; - - private MonoTouch.UIKit.UIWebView __mt_webMain; - - private MonoTouch.UIKit.UIActivityIndicatorView __mt_imgBusy; - - #pragma warning disable 0169 - [MonoTouch.Foundation.Connect("view")] - private MonoTouch.UIKit.UIView view { - get { - this.__mt_view = ((MonoTouch.UIKit.UIView)(this.GetNativeField("view"))); - return this.__mt_view; - } - set { - this.__mt_view = value; - this.SetNativeField("view", value); - } - } - - [MonoTouch.Foundation.Connect("btnBack")] - private MonoTouch.UIKit.UIButton btnBack { - get { - this.__mt_btnBack = ((MonoTouch.UIKit.UIButton)(this.GetNativeField("btnBack"))); - return this.__mt_btnBack; - } - set { - this.__mt_btnBack = value; - this.SetNativeField("btnBack", value); - } - } - - [MonoTouch.Foundation.Connect("btnForward")] - private MonoTouch.UIKit.UIButton btnForward { - get { - this.__mt_btnForward = ((MonoTouch.UIKit.UIButton)(this.GetNativeField("btnForward"))); - return this.__mt_btnForward; - } - set { - this.__mt_btnForward = value; - this.SetNativeField("btnForward", value); - } - } - - [MonoTouch.Foundation.Connect("btnGo")] - private MonoTouch.UIKit.UIButton btnGo { - get { - this.__mt_btnGo = ((MonoTouch.UIKit.UIButton)(this.GetNativeField("btnGo"))); - return this.__mt_btnGo; - } - set { - this.__mt_btnGo = value; - this.SetNativeField("btnGo", value); - } - } - - [MonoTouch.Foundation.Connect("btnStop")] - private MonoTouch.UIKit.UIButton btnStop { - get { - this.__mt_btnStop = ((MonoTouch.UIKit.UIButton)(this.GetNativeField("btnStop"))); - return this.__mt_btnStop; - } - set { - this.__mt_btnStop = value; - this.SetNativeField("btnStop", value); - } - } - - [MonoTouch.Foundation.Connect("txtAddress")] - private MonoTouch.UIKit.UITextField txtAddress { - get { - this.__mt_txtAddress = ((MonoTouch.UIKit.UITextField)(this.GetNativeField("txtAddress"))); - return this.__mt_txtAddress; - } - set { - this.__mt_txtAddress = value; - this.SetNativeField("txtAddress", value); - } - } - - [MonoTouch.Foundation.Connect("webMain")] - private MonoTouch.UIKit.UIWebView webMain { - get { - this.__mt_webMain = ((MonoTouch.UIKit.UIWebView)(this.GetNativeField("webMain"))); - return this.__mt_webMain; - } - set { - this.__mt_webMain = value; - this.SetNativeField("webMain", value); - } - } - - [MonoTouch.Foundation.Connect("imgBusy")] - private MonoTouch.UIKit.UIActivityIndicatorView imgBusy { - get { - this.__mt_imgBusy = ((MonoTouch.UIKit.UIActivityIndicatorView)(this.GetNativeField("imgBusy"))); - return this.__mt_imgBusy; - } - set { - this.__mt_imgBusy = value; - this.SetNativeField("imgBusy", value); - } - } - } -} diff --git a/ContentControls/Screens/iPhone/CustomizingNavBar/CustomizingNavBarScreen.xib b/ContentControls/Screens/iPhone/CustomizingNavBar/CustomizingNavBarScreen.xib deleted file mode 100644 index ddc94a5aa..000000000 --- a/ContentControls/Screens/iPhone/CustomizingNavBar/CustomizingNavBarScreen.xib +++ /dev/null @@ -1,429 +0,0 @@ - - - - 768 - 10F569 - 788 - 1038.29 - 461.00 - - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - 117 - - - YES - - - - YES - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - YES - - YES - - - YES - - - - YES - - IBFilesOwner - IBCocoaTouchFramework - - - IBFirstResponder - IBCocoaTouchFramework - - - - 292 - - YES - - - 292 - {{20, 20}, {280, 37}} - - NO - IBCocoaTouchFramework - 0 - 0 - - Helvetica-Bold - 15 - 16 - - 1 - Show/Hide Right Button - - 3 - MQA - - - 1 - MC4xOTYwNzg0MzQ2IDAuMzA5ODAzOTMyOSAwLjUyMTU2ODY1NgA - - - 3 - MC41AA - - - - - 292 - {{20, 65}, {280, 37}} - - NO - IBCocoaTouchFramework - 0 - 0 - - 1 - Change BarStyle - - - 1 - MC4xOTYwNzg0MzQ2IDAuMzA5ODAzOTMyOSAwLjUyMTU2ODY1NgA - - - - - - 292 - {{20, 155}, {280, 37}} - - NO - IBCocoaTouchFramework - 0 - 0 - - 1 - Change TintColor - - - 1 - MC4xOTYwNzg0MzQ2IDAuMzA5ODAzOTMyOSAwLjUyMTU2ODY1NgA - - - - - - 292 - {{20, 200}, {280, 37}} - - NO - IBCocoaTouchFramework - 0 - 0 - - 1 - Show Toolbar - - - 1 - MC4xOTYwNzg0MzQ2IDAuMzA5ODAzOTMyOSAwLjUyMTU2ODY1NgA - - - - - - 292 - {{20, 119}, {109, 21}} - - NO - YES - 7 - NO - IBCocoaTouchFramework - Transparent: - - 1 - MCAwIDAAA - - - 1 - 10 - - - - 292 - {{207, 116}, {94, 27}} - - NO - IBCocoaTouchFramework - 0 - 0 - - - {320, 416} - - - 3 - MQA - - 2 - - - - - NO - - IBCocoaTouchFramework - - - - - YES - - - view - - - - 7 - - - - btnChangeBarStyle - - - - 14 - - - - btnChangeTintColor - - - - 15 - - - - btnShowHideRightButton - - - - 17 - - - - swchTransparent - - - - 19 - - - - btnShowToolbar - - - - 21 - - - - - YES - - 0 - - - - - - 1 - - - YES - - - - - - - - - - - -1 - - - File's Owner - - - -2 - - - - - 8 - - - - - 9 - - - - - 11 - - - - - 13 - - - - - 18 - - - - - 20 - - - - - - - YES - - YES - -1.CustomClassName - -2.CustomClassName - 1.IBEditorWindowLastContentRect - 1.IBPluginDependency - 11.IBPluginDependency - 13.IBPluginDependency - 18.IBPluginDependency - 20.IBPluginDependency - 8.IBPluginDependency - 9.IBPluginDependency - - - YES - CustomizingNavBarScreen - UIResponder - {{519, 376}, {320, 480}} - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - - YES - - - YES - - - - - YES - - - YES - - - - 21 - - - - YES - - CustomizingNavBarScreen - - YES - - YES - btnChangeBarStyle - btnChangeTintColor - btnShowHideRightButton - btnShowToolbar - swchTransparent - view - - - YES - id - id - id - id - id - id - - - - YES - - YES - btnChangeBarStyle - btnChangeTintColor - btnShowHideRightButton - btnShowToolbar - swchTransparent - view - - - YES - - btnChangeBarStyle - id - - - btnChangeTintColor - id - - - btnShowHideRightButton - id - - - btnShowToolbar - id - - - swchTransparent - id - - - view - id - - - - - IBUserSource - - - - - - 0 - IBCocoaTouchFramework - - com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS - - - - com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3 - - - YES - - 3 - 117 - - diff --git a/ContentControls/Screens/iPhone/CustomizingNavBar/CustomizingNavBarScreen.xib.cs b/ContentControls/Screens/iPhone/CustomizingNavBar/CustomizingNavBarScreen.xib.cs deleted file mode 100644 index 3b6251b06..000000000 --- a/ContentControls/Screens/iPhone/CustomizingNavBar/CustomizingNavBarScreen.xib.cs +++ /dev/null @@ -1,93 +0,0 @@ - -using System; -using System.Collections.Generic; -using System.Linq; -using MonoTouch.Foundation; -using MonoTouch.UIKit; - -namespace Example_ContentControls.Screens.iPhone.CustomizingNavBar -{ - public partial class CustomizingNavBarScreen : UIViewController - { - #region Constructors - - // The IntPtr and initWithCoder constructors are required for items that need - // to be able to be created from a xib rather than from managed code - - public CustomizingNavBarScreen (IntPtr handle) : base(handle) - { - Initialize (); - } - - [Export("initWithCoder:")] - public CustomizingNavBarScreen (NSCoder coder) : base(coder) - { - Initialize (); - } - - public CustomizingNavBarScreen () : base("CustomizingNavBarScreen", null) - { - Initialize (); - } - - void Initialize () - { - } - - #endregion - - public override void ViewDidLoad () - { - base.ViewDidLoad (); - - NavigationItem.Title = "Customizing Nav Bar"; - - // toggle the navigation bar transparency - swchTransparent.ValueChanged += (s, e) => { - NavigationController.NavigationBar.Translucent = swchTransparent.On; - }; - - // change the navigation bar color (toggles between default and red) - btnChangeTintColor.TouchUpInside += (s, e) => { - - // if it's red, reset it by setting it to null - if(NavigationController.NavigationBar.TintColor == UIColor.Red) - NavigationController.NavigationBar.TintColor = null; - // otherwise, make it red - else - NavigationController.NavigationBar.TintColor = UIColor.Red; - }; - - // toggle the bar style between black and default - btnChangeBarStyle.TouchUpInside += (s, e) => { - if(NavigationController.NavigationBar.BarStyle == UIBarStyle.Default) - NavigationController.NavigationBar.BarStyle = UIBarStyle.Black; - else - NavigationController.NavigationBar.BarStyle = UIBarStyle.Default; - }; - - // show/hide the right bar button item - btnShowHideRightButton.TouchUpInside += (s, e) => { - if (NavigationItem.RightBarButtonItem == null) - NavigationItem.SetRightBarButtonItem (new UIBarButtonItem(UIBarButtonSystemItem.Action, null), true); - else - NavigationItem.SetRightBarButtonItem (null, true); - }; - - // setup the toolbar items. the navigation controller gets the items from the controller - // because they're specific to each controller on the stack, hence 'SetToolbarItems' rather - // than NavigationController.Toolbar.SetToolbarItems - SetToolbarItems (new UIBarButtonItem[] { - new UIBarButtonItem(UIBarButtonSystemItem.Refresh), - new UIBarButtonItem(UIBarButtonSystemItem.FlexibleSpace) { Width = 50 }, - new UIBarButtonItem(UIBarButtonSystemItem.Pause) - }, false); - - // toggle the display of the toolbar - btnShowToolbar.TouchUpInside += (s, e) => { - NavigationController.ToolbarHidden = !NavigationController.ToolbarHidden; - }; - } - } -} - diff --git a/ContentControls/Screens/iPhone/CustomizingNavBar/CustomizingNavBarScreen.xib.designer.cs b/ContentControls/Screens/iPhone/CustomizingNavBar/CustomizingNavBarScreen.xib.designer.cs deleted file mode 100644 index 8dd227785..000000000 --- a/ContentControls/Screens/iPhone/CustomizingNavBar/CustomizingNavBarScreen.xib.designer.cs +++ /dev/null @@ -1,103 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Mono Runtime Version: 2.0.50727.1433 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -namespace Example_ContentControls.Screens.iPhone.CustomizingNavBar { - - - // Base type probably should be MonoTouch.UIKit.UIViewController or subclass - [MonoTouch.Foundation.Register("CustomizingNavBarScreen")] - public partial class CustomizingNavBarScreen { - - private MonoTouch.UIKit.UIView __mt_view; - - private MonoTouch.UIKit.UIButton __mt_btnChangeBarStyle; - - private MonoTouch.UIKit.UIButton __mt_btnChangeTintColor; - - private MonoTouch.UIKit.UIButton __mt_btnShowHideRightButton; - - private MonoTouch.UIKit.UISwitch __mt_swchTransparent; - - private MonoTouch.UIKit.UIButton __mt_btnShowToolbar; - - #pragma warning disable 0169 - [MonoTouch.Foundation.Connect("view")] - private MonoTouch.UIKit.UIView view { - get { - this.__mt_view = ((MonoTouch.UIKit.UIView)(this.GetNativeField("view"))); - return this.__mt_view; - } - set { - this.__mt_view = value; - this.SetNativeField("view", value); - } - } - - [MonoTouch.Foundation.Connect("btnChangeBarStyle")] - private MonoTouch.UIKit.UIButton btnChangeBarStyle { - get { - this.__mt_btnChangeBarStyle = ((MonoTouch.UIKit.UIButton)(this.GetNativeField("btnChangeBarStyle"))); - return this.__mt_btnChangeBarStyle; - } - set { - this.__mt_btnChangeBarStyle = value; - this.SetNativeField("btnChangeBarStyle", value); - } - } - - [MonoTouch.Foundation.Connect("btnChangeTintColor")] - private MonoTouch.UIKit.UIButton btnChangeTintColor { - get { - this.__mt_btnChangeTintColor = ((MonoTouch.UIKit.UIButton)(this.GetNativeField("btnChangeTintColor"))); - return this.__mt_btnChangeTintColor; - } - set { - this.__mt_btnChangeTintColor = value; - this.SetNativeField("btnChangeTintColor", value); - } - } - - [MonoTouch.Foundation.Connect("btnShowHideRightButton")] - private MonoTouch.UIKit.UIButton btnShowHideRightButton { - get { - this.__mt_btnShowHideRightButton = ((MonoTouch.UIKit.UIButton)(this.GetNativeField("btnShowHideRightButton"))); - return this.__mt_btnShowHideRightButton; - } - set { - this.__mt_btnShowHideRightButton = value; - this.SetNativeField("btnShowHideRightButton", value); - } - } - - [MonoTouch.Foundation.Connect("swchTransparent")] - private MonoTouch.UIKit.UISwitch swchTransparent { - get { - this.__mt_swchTransparent = ((MonoTouch.UIKit.UISwitch)(this.GetNativeField("swchTransparent"))); - return this.__mt_swchTransparent; - } - set { - this.__mt_swchTransparent = value; - this.SetNativeField("swchTransparent", value); - } - } - - [MonoTouch.Foundation.Connect("btnShowToolbar")] - private MonoTouch.UIKit.UIButton btnShowToolbar { - get { - this.__mt_btnShowToolbar = ((MonoTouch.UIKit.UIButton)(this.GetNativeField("btnShowToolbar"))); - return this.__mt_btnShowToolbar; - } - set { - this.__mt_btnShowToolbar = value; - this.SetNativeField("btnShowToolbar", value); - } - } - } -} diff --git a/ContentControls/Screens/iPhone/Extra Screens/CustomizableTabScreen.xib b/ContentControls/Screens/iPhone/Extra Screens/CustomizableTabScreen.xib deleted file mode 100644 index cf06bfa70..000000000 --- a/ContentControls/Screens/iPhone/Extra Screens/CustomizableTabScreen.xib +++ /dev/null @@ -1,239 +0,0 @@ - - - - 768 - 10F569 - 788 - 1038.29 - 461.00 - - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - 117 - - - YES - - - - YES - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - YES - - YES - - - YES - - - - YES - - IBFilesOwner - IBCocoaTouchFramework - - - IBFirstResponder - IBCocoaTouchFramework - - - - 292 - - YES - - - 274 - {{71, 98}, {177, 157}} - - NO - YES - 7 - NO - IBCocoaTouchFramework - # - - Helvetica - 72 - 16 - - - 2 - MC40NjY2NjY2OTg1IDAuMzYwNzg0MzIyIDAuMjU4ODIzNTQzOAA - - - 1 - 10 - 1 - - - {320, 416} - - - 3 - MQA - - 2 - - - - - NO - - IBCocoaTouchFramework - - - - - YES - - - view - - - - 7 - - - - lblNumber - - - - 9 - - - - - YES - - 0 - - - - - - 1 - - - YES - - - - - - -1 - - - File's Owner - - - -2 - - - - - 8 - - - - - - - YES - - YES - -1.CustomClassName - -2.CustomClassName - 1.IBEditorWindowLastContentRect - 1.IBPluginDependency - 8.IBPluginDependency - - - YES - CustomizableTabScreen - UIResponder - {{494, 376}, {320, 480}} - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - - YES - - - YES - - - - - YES - - - YES - - - - 9 - - - - YES - - CustomizableTabScreen - - YES - - YES - lblNumber - view - - - YES - id - id - - - - YES - - YES - lblNumber - view - - - YES - - lblNumber - id - - - view - id - - - - - IBUserSource - - - - - - 0 - IBCocoaTouchFramework - - com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS - - - - com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3 - - - YES - - 3 - 117 - - diff --git a/ContentControls/Screens/iPhone/Extra Screens/CustomizableTabScreen.xib.cs b/ContentControls/Screens/iPhone/Extra Screens/CustomizableTabScreen.xib.cs deleted file mode 100644 index 888f763db..000000000 --- a/ContentControls/Screens/iPhone/Extra Screens/CustomizableTabScreen.xib.cs +++ /dev/null @@ -1,51 +0,0 @@ - -using System; -using System.Collections.Generic; -using System.Linq; -using MonoTouch.Foundation; -using MonoTouch.UIKit; - -namespace Example_ContentControls.Screens.iPhone.ExtraScreens -{ - public partial class CustomizableTabScreen : UIViewController - { - public string Number - { - get { return this.lblNumber.Text; } - set - { - this.lblNumber.Text = value; - this.Title = value; - } - } - - #region Constructors - - // The IntPtr and initWithCoder constructors are required for items that need - // to be able to be created from a xib rather than from managed code - - public CustomizableTabScreen (IntPtr handle) : base(handle) - { - Initialize (); - } - - [Export("initWithCoder:")] - public CustomizableTabScreen (NSCoder coder) : base(coder) - { - Initialize (); - } - - public CustomizableTabScreen ()// : base("CustomizableTabScreen", null) - { - NibBundle.LoadNib("CustomizableTabScreen", this, null); - Initialize (); - } - - void Initialize () - { - } - - #endregion - } -} - diff --git a/ContentControls/Screens/iPhone/Extra Screens/CustomizableTabScreen.xib.designer.cs b/ContentControls/Screens/iPhone/Extra Screens/CustomizableTabScreen.xib.designer.cs deleted file mode 100644 index 2fb1ffc85..000000000 --- a/ContentControls/Screens/iPhone/Extra Screens/CustomizableTabScreen.xib.designer.cs +++ /dev/null @@ -1,47 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Mono Runtime Version: 2.0.50727.1433 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -namespace Example_ContentControls.Screens.iPhone.ExtraScreens { - - - // Base type probably should be MonoTouch.UIKit.UIViewController or subclass - [MonoTouch.Foundation.Register("CustomizableTabScreen")] - public partial class CustomizableTabScreen { - - private MonoTouch.UIKit.UIView __mt_view; - - private MonoTouch.UIKit.UILabel __mt_lblNumber; - - #pragma warning disable 0169 - [MonoTouch.Foundation.Connect("view")] - private MonoTouch.UIKit.UIView view { - get { - this.__mt_view = ((MonoTouch.UIKit.UIView)(this.GetNativeField("view"))); - return this.__mt_view; - } - set { - this.__mt_view = value; - this.SetNativeField("view", value); - } - } - - [MonoTouch.Foundation.Connect("lblNumber")] - private MonoTouch.UIKit.UILabel lblNumber { - get { - this.__mt_lblNumber = ((MonoTouch.UIKit.UILabel)(this.GetNativeField("lblNumber"))); - return this.__mt_lblNumber; - } - set { - this.__mt_lblNumber = value; - this.SetNativeField("lblNumber", value); - } - } - } -} diff --git a/ContentControls/Screens/iPhone/Maps/AnnotatedMapScreen.xib b/ContentControls/Screens/iPhone/Maps/AnnotatedMapScreen.xib deleted file mode 100644 index 0826a0752..000000000 --- a/ContentControls/Screens/iPhone/Maps/AnnotatedMapScreen.xib +++ /dev/null @@ -1,224 +0,0 @@ - - - - 768 - 10F569 - 788 - 1038.29 - 461.00 - - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - 117 - - - YES - - - - YES - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - YES - - YES - - - YES - - - - YES - - IBFilesOwner - IBCocoaTouchFramework - - - IBFirstResponder - IBCocoaTouchFramework - - - - 292 - - YES - - - 274 - {320, 367} - - YES - YES - IBCocoaTouchFramework - - - {320, 367} - - - 3 - MQA - - 2 - - - - - NO - - - IBCocoaTouchFramework - - - - - YES - - - view - - - - 7 - - - - mapMain - - - - 9 - - - - - YES - - 0 - - - - - - 1 - - - YES - - - - - - -1 - - - File's Owner - - - -2 - - - - - 8 - - - - - - - YES - - YES - -1.CustomClassName - -2.CustomClassName - 1.IBEditorWindowLastContentRect - 1.IBPluginDependency - 8.IBPluginDependency - - - YES - AnnotatedMapScreen - UIResponder - {{436, 376}, {320, 480}} - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - - YES - - - YES - - - - - YES - - - YES - - - - 9 - - - - YES - - AnnotatedMapScreen - - YES - - YES - mapMain - view - - - YES - id - id - - - - YES - - YES - mapMain - view - - - YES - - mapMain - id - - - view - id - - - - - IBUserSource - - - - - - 0 - IBCocoaTouchFramework - - com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS - - - - com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3 - - - YES - - 3 - 117 - - diff --git a/ContentControls/Screens/iPhone/Maps/AnnotatedMapScreen.xib.cs b/ContentControls/Screens/iPhone/Maps/AnnotatedMapScreen.xib.cs deleted file mode 100644 index 5db6e09e7..000000000 --- a/ContentControls/Screens/iPhone/Maps/AnnotatedMapScreen.xib.cs +++ /dev/null @@ -1,192 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using MonoTouch.Foundation; -using MonoTouch.UIKit; -using MonoTouch.CoreLocation; -using MonoTouch.MapKit; - -namespace Example_ContentControls.Screens.iPhone.Maps -{ - public partial class AnnotatedMapScreen : UIViewController - { - #region Constructors - - // The IntPtr and initWithCoder constructors are required for items that need - // to be able to be created from a xib rather than from managed code - - public AnnotatedMapScreen (IntPtr handle) : base(handle) - { - Initialize (); - } - - [Export("initWithCoder:")] - public AnnotatedMapScreen (NSCoder coder) : base(coder) - { - Initialize (); - } - - public AnnotatedMapScreen () : base("AnnotatedMapScreen", null) - { - Initialize (); - } - - void Initialize () - { - } - - #endregion - - public override void ViewDidLoad () - { - base.ViewDidLoad (); - - Title = "Highland Park, Los Angeles"; - - // create our location and zoom for los angeles - CLLocationCoordinate2D coords = new CLLocationCoordinate2D (34.120, -118.188); - MKCoordinateSpan span = new MKCoordinateSpan(MilesToLatitudeDegrees (20), MilesToLongitudeDegrees (20, coords.Latitude)); - - // set the coords and zoom on the map - mapMain.Region = new MKCoordinateRegion (coords, span); - - // set our delegate. we don't actually need a delegate if we want to just drop a pin - // on there, but if we want to specify anything custom, we do - mapMain.Delegate = new MapDelegate(); - - // add a basic annotation - mapMain.AddAnnotation (new BasicMapAnnotation (new CLLocationCoordinate2D (34.120, -118.188), "Los Angeles", "City of Demons")); - - // can use this as well. -// mapMain.AddAnnotationObject( -// new BasicMapAnnotationProto() { Coordinate = new CLLocationCoordinate2D(34.120, -118.188), Title = "Los Angeles", Subtitle = "City of Demons" } -// ); - } - - // The map delegate is much like the table delegate. - protected class MapDelegate : MKMapViewDelegate - { - protected string annotationIdentifier = "BasicAnnotation"; - UIButton detailButton; // need class-level ref to avoid GC - - /// - /// This is very much like the GetCell method on the table delegate - /// - public override MKAnnotationView GetViewForAnnotation (MKMapView mapView, NSObject annotation) - { - // try and dequeue the annotation view - MKAnnotationView annotationView = mapView.DequeueReusableAnnotation(annotationIdentifier); - - // if we couldn't dequeue one, create a new one - if (annotationView == null) - annotationView = new MKPinAnnotationView(annotation, annotationIdentifier); - else // if we did dequeue one for reuse, assign the annotation to it - annotationView.Annotation = annotation; - - // configure our annotation view properties - annotationView.CanShowCallout = true; - (annotationView as MKPinAnnotationView).AnimatesDrop = true; - (annotationView as MKPinAnnotationView).PinColor = MKPinAnnotationColor.Green; - annotationView.Selected = true; - - // you can add an accessory view, in this case, we'll add a button on the right, and an image on the left - detailButton = UIButton.FromType(UIButtonType.DetailDisclosure); - detailButton.TouchUpInside += (s, e) => { - var c = (annotation as MKAnnotation).Coordinate; - new UIAlertView("Annotation Clicked", "You clicked on " + - c.Latitude.ToString() + ", " + - c.Longitude.ToString() , null, "OK", null).Show(); - }; - annotationView.RightCalloutAccessoryView = detailButton; - annotationView.LeftCalloutAccessoryView = new UIImageView(UIImage.FromBundle("icon-29.png")); - - return annotationView; - } - - // as an optimization, you should override this method to add or remove annotations as the - // map zooms in or out. - public override void RegionChanged (MKMapView mapView, bool animated) {} - } - - // This errors with unrecognized selector error. - // TODO: is this fixed now?? - // TODO: yes, but the better question is, do we support opt-in selector - // invoking for properties yet? - protected class BasicMapAnnotationProto : NSObject - { - [Export ("coordinate")] - public CLLocationCoordinate2D GetCoordinate () - { return Coordinate; } - - [Export ("title")] - public string GetTitle () - { return Title; } - - [Export ("subtitle")] - public string GetSubtitle () - { return Subtitle; } - - public CLLocationCoordinate2D Coordinate { get; set; } - public string Title { get; set; } - public string Subtitle { get; set; } - } - - // MonoTouch doesn't provide even a basic map annotation base class, so this can - // serve as one. - protected class BasicMapAnnotation : MKAnnotation - { - /// - /// The location of the annotation - /// - public override CLLocationCoordinate2D Coordinate { get; set; } - - /// - /// The title text - /// - public override string Title - { get { return title; } } - protected string title; - - /// - /// The subtitle text - /// - public override string Subtitle - { get { return subtitle; } } - protected string subtitle; - - public BasicMapAnnotation (CLLocationCoordinate2D coordinate, string title, string subTitle) - : base() - { - this.Coordinate = coordinate; - this.title = title; - this.subtitle = subTitle; - } - } - - /// - /// Converts miles to latitude degrees - /// - public double MilesToLatitudeDegrees(double miles) - { - double earthRadius = 3960.0; - double radiansToDegrees = 180.0/Math.PI; - return (miles/earthRadius) * radiansToDegrees; - } - - /// - /// Converts miles to longitudinal degrees at a specified latitude - /// - public double MilesToLongitudeDegrees(double miles, double atLatitude) - { - double earthRadius = 3960.0; - double degreesToRadians = Math.PI/180.0; - double radiansToDegrees = 180.0/Math.PI; - - // derive the earth's radius at that point in latitude - double radiusAtLatitude = earthRadius * Math.Cos(atLatitude * degreesToRadians); - return (miles / radiusAtLatitude) * radiansToDegrees; - } - - } -} - diff --git a/ContentControls/Screens/iPhone/Maps/AnnotatedMapScreen.xib.designer.cs b/ContentControls/Screens/iPhone/Maps/AnnotatedMapScreen.xib.designer.cs deleted file mode 100644 index e86fce445..000000000 --- a/ContentControls/Screens/iPhone/Maps/AnnotatedMapScreen.xib.designer.cs +++ /dev/null @@ -1,47 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Mono Runtime Version: 2.0.50727.1433 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -namespace Example_ContentControls.Screens.iPhone.Maps { - - - // Base type probably should be MonoTouch.UIKit.UIViewController or subclass - [MonoTouch.Foundation.Register("AnnotatedMapScreen")] - public partial class AnnotatedMapScreen { - - private MonoTouch.UIKit.UIView __mt_view; - - private MonoTouch.MapKit.MKMapView __mt_mapMain; - - #pragma warning disable 0169 - [MonoTouch.Foundation.Connect("view")] - private MonoTouch.UIKit.UIView view { - get { - this.__mt_view = ((MonoTouch.UIKit.UIView)(this.GetNativeField("view"))); - return this.__mt_view; - } - set { - this.__mt_view = value; - this.SetNativeField("view", value); - } - } - - [MonoTouch.Foundation.Connect("mapMain")] - private MonoTouch.MapKit.MKMapView mapMain { - get { - this.__mt_mapMain = ((MonoTouch.MapKit.MKMapView)(this.GetNativeField("mapMain"))); - return this.__mt_mapMain; - } - set { - this.__mt_mapMain = value; - this.SetNativeField("mapMain", value); - } - } - } -} diff --git a/ContentControls/Screens/iPhone/Maps/BasicMapScreen.xib b/ContentControls/Screens/iPhone/Maps/BasicMapScreen.xib deleted file mode 100644 index fb7de1088..000000000 --- a/ContentControls/Screens/iPhone/Maps/BasicMapScreen.xib +++ /dev/null @@ -1,288 +0,0 @@ - - - - 768 - 10F569 - 788 - 1038.29 - 461.00 - - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - 117 - - - YES - - - - YES - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - YES - - YES - - - YES - - - - YES - - IBFilesOwner - IBCocoaTouchFramework - - - IBFirstResponder - IBCocoaTouchFramework - - - - 292 - - YES - - - 274 - {320, 367} - - YES - YES - IBCocoaTouchFramework - - - - 266 - {{20, 318}, {280, 30}} - - NO - IBCocoaTouchFramework - 2 - 3 - 0 - - YES - Map - Satellite - Hybrid - - - YES - - - - - - YES - - - - - - YES - {0, 0} - {0, 0} - {0, 0} - - - YES - - - - - - - {320, 367} - - - 3 - MQA - - 2 - - - - - NO - - - IBCocoaTouchFramework - - - - - YES - - - view - - - - 7 - - - - mapMain - - - - 9 - - - - sgmtMapType - - - - 11 - - - - - YES - - 0 - - - - - - 1 - - - YES - - - - - - - -1 - - - File's Owner - - - -2 - - - - - 8 - - - - - 10 - - - - - - - YES - - YES - -1.CustomClassName - -2.CustomClassName - 1.IBEditorWindowLastContentRect - 1.IBPluginDependency - 10.IBPluginDependency - 8.IBPluginDependency - - - YES - BasicMapScreen - UIResponder - {{399, 658}, {320, 480}} - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - - YES - - - YES - - - - - YES - - - YES - - - - 11 - - - - YES - - BasicMapScreen - - YES - - YES - mapMain - sgmtMapType - view - - - YES - id - id - id - - - - YES - - YES - mapMain - sgmtMapType - view - - - YES - - mapMain - id - - - sgmtMapType - id - - - view - id - - - - - IBUserSource - - - - - - 0 - IBCocoaTouchFramework - - com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS - - - - com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3 - - - YES - - 3 - 117 - - diff --git a/ContentControls/Screens/iPhone/Maps/BasicMapScreen.xib.cs b/ContentControls/Screens/iPhone/Maps/BasicMapScreen.xib.cs deleted file mode 100644 index abe6d6b0b..000000000 --- a/ContentControls/Screens/iPhone/Maps/BasicMapScreen.xib.cs +++ /dev/null @@ -1,103 +0,0 @@ - -using System; -using System.Collections.Generic; -using System.Linq; -using MonoTouch.Foundation; -using MonoTouch.UIKit; -using MonoTouch.CoreLocation; -using MonoTouch.MapKit; - -namespace Example_ContentControls.Screens.iPhone.Maps -{ - public partial class BasicMapScreen : UIViewController - { - #region Constructors - - // The IntPtr and initWithCoder constructors are required for items that need - // to be able to be created from a xib rather than from managed code - - public BasicMapScreen (IntPtr handle) : base(handle) - { - Initialize (); - } - - [Export("initWithCoder:")] - public BasicMapScreen (NSCoder coder) : base(coder) - { - Initialize (); - } - - public BasicMapScreen () : base("BasicMapScreen", null) - { - Initialize (); - } - - void Initialize () - { - } - - #endregion - - public override void ViewDidLoad () - { - base.ViewDidLoad (); - - Title = "Map of Paris!"; - - // create our location and zoom for paris - CLLocationCoordinate2D coords = new CLLocationCoordinate2D(48.857, 2.351); - MKCoordinateSpan span = new MKCoordinateSpan(MilesToLatitudeDegrees(20), MilesToLongitudeDegrees(20, coords.Latitude)); - - // set the coords and zoom on the map - mapMain.Region = new MKCoordinateRegion(coords, span); - - // to animate to a location, then call SetRegion: - //mapMain.SetRegion(coords, true); - - // to show the device location: - //mapMain.ShowsUserLocation = true; - - // change the map type based on what's selected in the segment control - sgmtMapType.ValueChanged += (s, e) => { - - switch(sgmtMapType.SelectedSegment) { - - case 0: - mapMain.MapType = MKMapType.Standard; - break; - case 1: - mapMain.MapType = MKMapType.Satellite; - break; - case 2: - mapMain.MapType = MKMapType.Hybrid; - break; - } - }; - } - - /// - /// Converts miles to latitude degrees - /// - public double MilesToLatitudeDegrees(double miles) - { - double earthRadius = 3960.0; - double radiansToDegrees = 180.0/Math.PI; - return (miles/earthRadius) * radiansToDegrees; - } - - /// - /// Converts miles to longitudinal degrees at a specified latitude - /// - public double MilesToLongitudeDegrees(double miles, double atLatitude) - { - double earthRadius = 3960.0; - double degreesToRadians = Math.PI/180.0; - double radiansToDegrees = 180.0/Math.PI; - - // derive the earth's radius at that point in latitude - double radiusAtLatitude = earthRadius * Math.Cos(atLatitude * degreesToRadians); - return (miles / radiusAtLatitude) * radiansToDegrees; - } - } -} - diff --git a/ContentControls/Screens/iPhone/Maps/BasicMapScreen.xib.designer.cs b/ContentControls/Screens/iPhone/Maps/BasicMapScreen.xib.designer.cs deleted file mode 100644 index 4b4307909..000000000 --- a/ContentControls/Screens/iPhone/Maps/BasicMapScreen.xib.designer.cs +++ /dev/null @@ -1,61 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Mono Runtime Version: 2.0.50727.1433 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -namespace Example_ContentControls.Screens.iPhone.Maps { - - - // Base type probably should be MonoTouch.UIKit.UIViewController or subclass - [MonoTouch.Foundation.Register("BasicMapScreen")] - public partial class BasicMapScreen { - - private MonoTouch.UIKit.UIView __mt_view; - - private MonoTouch.MapKit.MKMapView __mt_mapMain; - - private MonoTouch.UIKit.UISegmentedControl __mt_sgmtMapType; - - #pragma warning disable 0169 - [MonoTouch.Foundation.Connect("view")] - private MonoTouch.UIKit.UIView view { - get { - this.__mt_view = ((MonoTouch.UIKit.UIView)(this.GetNativeField("view"))); - return this.__mt_view; - } - set { - this.__mt_view = value; - this.SetNativeField("view", value); - } - } - - [MonoTouch.Foundation.Connect("mapMain")] - private MonoTouch.MapKit.MKMapView mapMain { - get { - this.__mt_mapMain = ((MonoTouch.MapKit.MKMapView)(this.GetNativeField("mapMain"))); - return this.__mt_mapMain; - } - set { - this.__mt_mapMain = value; - this.SetNativeField("mapMain", value); - } - } - - [MonoTouch.Foundation.Connect("sgmtMapType")] - private MonoTouch.UIKit.UISegmentedControl sgmtMapType { - get { - this.__mt_sgmtMapType = ((MonoTouch.UIKit.UISegmentedControl)(this.GetNativeField("sgmtMapType"))); - return this.__mt_sgmtMapType; - } - set { - this.__mt_sgmtMapType = value; - this.SetNativeField("sgmtMapType", value); - } - } - } -} diff --git a/ContentControls/Screens/iPhone/Maps/MapWithOverlayScreen.xib b/ContentControls/Screens/iPhone/Maps/MapWithOverlayScreen.xib deleted file mode 100644 index a79a5a00a..000000000 --- a/ContentControls/Screens/iPhone/Maps/MapWithOverlayScreen.xib +++ /dev/null @@ -1,221 +0,0 @@ - - - - 768 - 10F569 - 788 - 1038.29 - 461.00 - - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - 117 - - - YES - - - - YES - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - YES - - YES - - - YES - - - - YES - - IBFilesOwner - IBCocoaTouchFramework - - - IBFirstResponder - IBCocoaTouchFramework - - - - 292 - - YES - - - 274 - {320, 367} - - YES - YES - IBCocoaTouchFramework - - - {320, 367} - - - 3 - MQA - - - - NO - - - IBCocoaTouchFramework - - - - - YES - - - view - - - - 7 - - - - mapMain - - - - 9 - - - - - YES - - 0 - - - - - - 1 - - - YES - - - - - - -1 - - - File's Owner - - - -2 - - - - - 8 - - - - - - - YES - - YES - -1.CustomClassName - -2.CustomClassName - 1.IBEditorWindowLastContentRect - 1.IBPluginDependency - 8.IBPluginDependency - - - YES - MapWithOverlayScreen - UIResponder - {{437, 673}, {320, 480}} - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - - YES - - - YES - - - - - YES - - - YES - - - - 9 - - - - YES - - MapWithOverlayScreen - - YES - - YES - mapMain - view - - - YES - id - id - - - - YES - - YES - mapMain - view - - - YES - - mapMain - id - - - view - id - - - - - IBUserSource - - - - - - 0 - IBCocoaTouchFramework - - com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS - - - - com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3 - - - YES - - 3 - 117 - - diff --git a/ContentControls/Screens/iPhone/Maps/MapWithOverlayScreen.xib.cs b/ContentControls/Screens/iPhone/Maps/MapWithOverlayScreen.xib.cs deleted file mode 100644 index 5e6e06954..000000000 --- a/ContentControls/Screens/iPhone/Maps/MapWithOverlayScreen.xib.cs +++ /dev/null @@ -1,133 +0,0 @@ - -using System; -using System.Collections.Generic; -using System.Linq; -using MonoTouch.Foundation; -using MonoTouch.UIKit; -using MonoTouch.MapKit; -using MonoTouch.CoreLocation; - -namespace Example_ContentControls.Screens.iPhone.Maps -{ - public partial class MapWithOverlayScreen : UIViewController - { - MKCircle _circleOverlay = null; - MKCircleView _circleView = null; - - #region Constructors - - // The IntPtr and initWithCoder constructors are required for items that need - // to be able to be created from a xib rather than from managed code - - public MapWithOverlayScreen (IntPtr handle) : base(handle) - { - Initialize (); - } - - [Export("initWithCoder:")] - public MapWithOverlayScreen (NSCoder coder) : base(coder) - { - Initialize (); - } - - public MapWithOverlayScreen () : base("MapWithOverlayScreen", null) - { - Initialize (); - } - - void Initialize () - { - } - - #endregion - - public override void ViewDidLoad () - { - base.ViewDidLoad (); - - this.Title = "Pyramids of Giza"; - - // create our location and zoom for the pyramids. - CLLocationCoordinate2D coords = new CLLocationCoordinate2D(29.976111, 31.132778); - MKCoordinateSpan span = new MKCoordinateSpan(MilesToLatitudeDegrees(.75), MilesToLongitudeDegrees(.75, coords.Latitude)); - - // set the coords and zoom on the map - this.mapMain.Region = new MKCoordinateRegion(coords, span); - - // show the sat view. - this.mapMain.MapType = MKMapType.Satellite; - - // add an overlay with the coords - this._circleOverlay = MKCircle.Circle(coords, 200); - this.mapMain.AddOverlay(this._circleOverlay); - - // set our delegate. - //this.mapMain.Delegate = new MapDelegate(); - - //-- OR -- - //- override the GetVIewForOverlay directly, in which case we don't need a delegate - this.mapMain.GetViewForOverlay += (m, o) => { - if(this._circleView == null) - { - this._circleView = new MKCircleView(this._circleOverlay); - this._circleView.FillColor = UIColor.Blue; - this._circleView.Alpha = 0.5f; - } - return this._circleView; - }; - } - - /// - /// The map delegate is much like the table delegate. - /// - protected class MapDelegate : MKMapViewDelegate - { - protected MKCircle _circle = null; - protected MKCircleView _circleView = null; - - public MapDelegate(MKCircle circle, MKCircleView circleView) - { - this._circle = circle; - this._circleView = circleView; - } - - public override MKOverlayView GetViewForOverlay(MKMapView mapView, NSObject overlay) - { - if ((_circle != null) && (_circleView == null)) - { - _circleView = new MKCircleView(_circle); - _circleView.FillColor = UIColor.Blue; - _circleView.Alpha = 0.5f; - } - return _circleView; - } - - } - - /// - /// Converts miles to latitude degrees - /// - public double MilesToLatitudeDegrees(double miles) - { - double earthRadius = 3960.0; - double radiansToDegrees = 180.0/Math.PI; - return (miles/earthRadius) * radiansToDegrees; - } - - /// - /// Converts miles to longitudinal degrees at a specified latitude - /// - public double MilesToLongitudeDegrees(double miles, double atLatitude) - { - double earthRadius = 3960.0; - double degreesToRadians = Math.PI/180.0; - double radiansToDegrees = 180.0/Math.PI; - - // derive the earth's radius at that point in latitude - double radiusAtLatitude = earthRadius * Math.Cos(atLatitude * degreesToRadians); - return (miles / radiusAtLatitude) * radiansToDegrees; - } - - } -} - diff --git a/ContentControls/Screens/iPhone/Maps/MapWithOverlayScreen.xib.designer.cs b/ContentControls/Screens/iPhone/Maps/MapWithOverlayScreen.xib.designer.cs deleted file mode 100644 index 90586949f..000000000 --- a/ContentControls/Screens/iPhone/Maps/MapWithOverlayScreen.xib.designer.cs +++ /dev/null @@ -1,47 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Mono Runtime Version: 2.0.50727.1433 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -namespace Example_ContentControls.Screens.iPhone.Maps { - - - // Base type probably should be MonoTouch.UIKit.UIViewController or subclass - [MonoTouch.Foundation.Register("MapWithOverlayScreen")] - public partial class MapWithOverlayScreen { - - private MonoTouch.UIKit.UIView __mt_view; - - private MonoTouch.MapKit.MKMapView __mt_mapMain; - - #pragma warning disable 0169 - [MonoTouch.Foundation.Connect("view")] - private MonoTouch.UIKit.UIView view { - get { - this.__mt_view = ((MonoTouch.UIKit.UIView)(this.GetNativeField("view"))); - return this.__mt_view; - } - set { - this.__mt_view = value; - this.SetNativeField("view", value); - } - } - - [MonoTouch.Foundation.Connect("mapMain")] - private MonoTouch.MapKit.MKMapView mapMain { - get { - this.__mt_mapMain = ((MonoTouch.MapKit.MKMapView)(this.GetNativeField("mapMain"))); - return this.__mt_mapMain; - } - set { - this.__mt_mapMain = value; - this.SetNativeField("mapMain", value); - } - } - } -} diff --git a/ContentControls/Screens/iPhone/Maps/MapsHome.xib b/ContentControls/Screens/iPhone/Maps/MapsHome.xib deleted file mode 100644 index 5794abb95..000000000 --- a/ContentControls/Screens/iPhone/Maps/MapsHome.xib +++ /dev/null @@ -1,328 +0,0 @@ - - - - 768 - 10F569 - 788 - 1038.29 - 461.00 - - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - 117 - - - YES - - - - YES - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - YES - - YES - - - YES - - - - YES - - IBFilesOwner - IBCocoaTouchFramework - - - IBFirstResponder - IBCocoaTouchFramework - - - - 292 - - YES - - - 292 - {{20, 20}, {280, 37}} - - NO - IBCocoaTouchFramework - 0 - 0 - - Helvetica-Bold - 15 - 16 - - 1 - Basic Map - - 3 - MQA - - - 1 - MC4xOTYwNzg0MzQ2IDAuMzA5ODAzOTMyOSAwLjUyMTU2ODY1NgA - - - 3 - MC41AA - - - - - 292 - {{20, 65}, {280, 37}} - - NO - IBCocoaTouchFramework - 0 - 0 - - 1 - Map with Annotations - - - 1 - MC4xOTYwNzg0MzQ2IDAuMzA5ODAzOTMyOSAwLjUyMTU2ODY1NgA - - - - - - 292 - {{20, 110}, {280, 37}} - - NO - IBCocoaTouchFramework - 0 - 0 - - 1 - Map with Overlay - - - 1 - MC4xOTYwNzg0MzQ2IDAuMzA5ODAzOTMyOSAwLjUyMTU2ODY1NgA - - - - - {320, 367} - - - 3 - MQA - - 2 - - - - - NO - - - IBCocoaTouchFramework - - - - - YES - - - view - - - - 7 - - - - btnBasicMap - - - - 10 - - - - btnMapWithOverlay - - - - 11 - - - - btnMapWithAnnotations - - - - 13 - - - - - YES - - 0 - - - - - - 1 - - - YES - - - - - - - - -1 - - - File's Owner - - - -2 - - - - - 8 - - - - - 9 - - - - - 12 - - - - - - - YES - - YES - -1.CustomClassName - -2.CustomClassName - 1.IBEditorWindowLastContentRect - 1.IBPluginDependency - 12.IBPluginDependency - 8.IBPluginDependency - 9.IBPluginDependency - - - YES - MapsHome - UIResponder - {{363, 376}, {320, 480}} - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - - YES - - - YES - - - - - YES - - - YES - - - - 13 - - - - YES - - MapsHome - - YES - - YES - btnBasicMap - btnMapWithAnnotations - btnMapWithOverlay - view - - - YES - id - id - id - id - - - - YES - - YES - btnBasicMap - btnMapWithAnnotations - btnMapWithOverlay - view - - - YES - - btnBasicMap - id - - - btnMapWithAnnotations - id - - - btnMapWithOverlay - id - - - view - id - - - - - IBUserSource - - - - - - 0 - IBCocoaTouchFramework - - com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS - - - - com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3 - - - YES - - 3 - 117 - - diff --git a/ContentControls/Screens/iPhone/Maps/MapsHome.xib.cs b/ContentControls/Screens/iPhone/Maps/MapsHome.xib.cs deleted file mode 100644 index ee1db217e..000000000 --- a/ContentControls/Screens/iPhone/Maps/MapsHome.xib.cs +++ /dev/null @@ -1,69 +0,0 @@ - -using System; -using System.Collections.Generic; -using System.Linq; -using MonoTouch.Foundation; -using MonoTouch.UIKit; - -namespace Example_ContentControls.Screens.iPhone.Maps -{ - public partial class MapsHome : UIViewController - { - BasicMapScreen basicMaps = null; - AnnotatedMapScreen mapWithAnnotations = null; - MapWithOverlayScreen mapWithOverlay = null; - - #region Constructors - - // The IntPtr and initWithCoder constructors are required for items that need - // to be able to be created from a xib rather than from managed code - - public MapsHome (IntPtr handle) : base(handle) - { - Initialize (); - } - - [Export("initWithCoder:")] - public MapsHome (NSCoder coder) : base(coder) - { - Initialize (); - } - - public MapsHome () : base("MapsHome", null) - { - Initialize (); - } - - void Initialize () - { - } - - #endregion - - public override void ViewDidLoad () - { - base.ViewDidLoad (); - - this.Title = "Maps"; - - this.btnBasicMap.TouchUpInside += (s, e) => { - if(basicMaps == null) - basicMaps = new BasicMapScreen(); - this.NavigationController.PushViewController(basicMaps, true); - }; - - this.btnMapWithAnnotations.TouchUpInside += (s, e) => { - if(mapWithAnnotations == null) - mapWithAnnotations = new AnnotatedMapScreen(); - this.NavigationController.PushViewController(mapWithAnnotations, true); - }; - - this.btnMapWithOverlay.TouchUpInside += (s, e) => { - if(mapWithOverlay == null) - mapWithOverlay = new MapWithOverlayScreen(); - this.NavigationController.PushViewController(mapWithOverlay, true); - }; - } - } -} - diff --git a/ContentControls/Screens/iPhone/Maps/MapsHome.xib.designer.cs b/ContentControls/Screens/iPhone/Maps/MapsHome.xib.designer.cs deleted file mode 100644 index 8056d54e3..000000000 --- a/ContentControls/Screens/iPhone/Maps/MapsHome.xib.designer.cs +++ /dev/null @@ -1,75 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Mono Runtime Version: 2.0.50727.1433 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -namespace Example_ContentControls.Screens.iPhone.Maps { - - - // Base type probably should be MonoTouch.UIKit.UIViewController or subclass - [MonoTouch.Foundation.Register("MapsHome")] - public partial class MapsHome { - - private MonoTouch.UIKit.UIView __mt_view; - - private MonoTouch.UIKit.UIButton __mt_btnBasicMap; - - private MonoTouch.UIKit.UIButton __mt_btnMapWithOverlay; - - private MonoTouch.UIKit.UIButton __mt_btnMapWithAnnotations; - - #pragma warning disable 0169 - [MonoTouch.Foundation.Connect("view")] - private MonoTouch.UIKit.UIView view { - get { - this.__mt_view = ((MonoTouch.UIKit.UIView)(this.GetNativeField("view"))); - return this.__mt_view; - } - set { - this.__mt_view = value; - this.SetNativeField("view", value); - } - } - - [MonoTouch.Foundation.Connect("btnBasicMap")] - private MonoTouch.UIKit.UIButton btnBasicMap { - get { - this.__mt_btnBasicMap = ((MonoTouch.UIKit.UIButton)(this.GetNativeField("btnBasicMap"))); - return this.__mt_btnBasicMap; - } - set { - this.__mt_btnBasicMap = value; - this.SetNativeField("btnBasicMap", value); - } - } - - [MonoTouch.Foundation.Connect("btnMapWithOverlay")] - private MonoTouch.UIKit.UIButton btnMapWithOverlay { - get { - this.__mt_btnMapWithOverlay = ((MonoTouch.UIKit.UIButton)(this.GetNativeField("btnMapWithOverlay"))); - return this.__mt_btnMapWithOverlay; - } - set { - this.__mt_btnMapWithOverlay = value; - this.SetNativeField("btnMapWithOverlay", value); - } - } - - [MonoTouch.Foundation.Connect("btnMapWithAnnotations")] - private MonoTouch.UIKit.UIButton btnMapWithAnnotations { - get { - this.__mt_btnMapWithAnnotations = ((MonoTouch.UIKit.UIButton)(this.GetNativeField("btnMapWithAnnotations"))); - return this.__mt_btnMapWithAnnotations; - } - set { - this.__mt_btnMapWithAnnotations = value; - this.SetNativeField("btnMapWithAnnotations", value); - } - } - } -} diff --git a/ContentControls/Screens/iPhone/Search/SearchScreen.xib b/ContentControls/Screens/iPhone/Search/SearchScreen.xib deleted file mode 100644 index 7c0c69f5f..000000000 --- a/ContentControls/Screens/iPhone/Search/SearchScreen.xib +++ /dev/null @@ -1,267 +0,0 @@ - - - - 768 - 10F569 - 788 - 1038.29 - 461.00 - - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - 117 - - - YES - - - - YES - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - YES - - YES - - - YES - - - - YES - - IBFilesOwner - IBCocoaTouchFramework - - - IBFirstResponder - IBCocoaTouchFramework - - - - 292 - - YES - - - 274 - {{0, 44}, {320, 372}} - - - 3 - MQA - - YES - IBCocoaTouchFramework - YES - 1 - 0 - YES - 44 - 22 - 22 - - - - 290 - {320, 44} - - 3 - IBCocoaTouchFramework - - IBCocoaTouchFramework - - - - {320, 416} - - - 3 - MQA - - 2 - - - - - NO - - IBCocoaTouchFramework - - - - - YES - - - view - - - - 7 - - - - srchMain - - - - 9 - - - - tblMain - - - - 11 - - - - - YES - - 0 - - - - - - 1 - - - YES - - - - - - - -1 - - - File's Owner - - - -2 - - - - - 8 - - - - - 10 - - - - - - - YES - - YES - -1.CustomClassName - -2.CustomClassName - 1.IBEditorWindowLastContentRect - 1.IBPluginDependency - 10.IBPluginDependency - 8.IBPluginDependency - - - YES - SearchScreen - UIResponder - {{533, 376}, {320, 480}} - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - - YES - - - YES - - - - - YES - - - YES - - - - 11 - - - - YES - - SearchScreen - - YES - - YES - srchMain - tblMain - view - - - YES - id - id - id - - - - YES - - YES - srchMain - tblMain - view - - - YES - - srchMain - id - - - tblMain - id - - - view - id - - - - - IBUserSource - - - - - - 0 - IBCocoaTouchFramework - - com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS - - - - com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3 - - - YES - - 3 - 117 - - diff --git a/ContentControls/Screens/iPhone/Search/SearchScreen.xib.cs b/ContentControls/Screens/iPhone/Search/SearchScreen.xib.cs deleted file mode 100644 index 35eb3694a..000000000 --- a/ContentControls/Screens/iPhone/Search/SearchScreen.xib.cs +++ /dev/null @@ -1,149 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using MonoTouch.Foundation; -using MonoTouch.UIKit; -using System.IO; - -namespace Example_ContentControls.Screens.iPhone.Search -{ - public partial class SearchScreen : UIViewController - { - /// - /// the dictionary that will hold our words - /// - List dictionary = null; - - /// - /// The table source that will hold our matches - /// - WordsTableSource tableSource = null; - - #region Constructors - - // The IntPtr and initWithCoder constructors are required for items that need - // to be able to be created from a xib rather than from managed code - - public SearchScreen (IntPtr handle) : base(handle) - { - Initialize (); - } - - [Export("initWithCoder:")] - public SearchScreen (NSCoder coder) : base(coder) - { - Initialize (); - } - - public SearchScreen () : base("SearchScreen", null) - { - Initialize (); - } - - void Initialize () - { - } - - #endregion - - public override void ViewDidLoad () - { - base.ViewDidLoad (); - - NavigationItem.Title = "Search Bar Example"; - - // load our dictonary words - LoadWords(); - - // create our table source and bind it to the table - tableSource = new WordsTableSource(); - tblMain.Source = tableSource; - - // wire up the search button clicked handler to hide the keyboard - srchMain.SearchButtonClicked += (s, e) => { srchMain.ResignFirstResponder(); }; - - // refine the search results every time the text changes - srchMain.TextChanged += (s, e) => { RefineSearchItems(); }; - } - - /// - /// This loads our dictionary of words into our _dictionary object. - /// - protected void LoadWords() - { - dictionary = File.ReadAllLines("Content/WordList.txt").ToList(); - } - - /// - /// is called when the text in the search box text changes. i use some simple - /// LINQ to refine the word list in our table source - /// - protected void RefineSearchItems() - { - // select our words - tableSource.Words = dictionary - .Where(w => w.Contains(srchMain.Text)).ToList(); - - // refresh the table - tblMain.ReloadData(); - - } - - /// - /// A simple table source that displays a list of strings - /// - protected class WordsTableSource : UITableViewSource - { - protected string cellIdentifier = "wordsCell"; - - /// - /// The words to display in the table - /// - public List Words - { - get { return words; } - set { words = value; } - } - protected List words = new List(); - - /// - /// called by the table to determine how many rows to create, in our case, it's the number - /// of words. - /// - public override int RowsInSection (UITableView tableview, int section) - { - return words.Count; - } - - /// - /// called by the table to determine how many sections to create, in this case, we just have one - /// - public override int NumberOfSections (UITableView tableView) - { - return 1; - } - - /// - /// called by the table to generate the cell to display. in this case, it's very simple - /// and just displays the word. - /// - public override UITableViewCell GetCell (UITableView tableView, NSIndexPath indexPath) - { - // declare vars - UITableViewCell cell = tableView.DequeueReusableCell (cellIdentifier); - string word = words[indexPath.Row]; - - // if there are no cells to reuse, create a new one - if (cell == null) - cell = new UITableViewCell (UITableViewCellStyle.Default, cellIdentifier); - - // set the item text - cell.TextLabel.Text = word; - - return cell; - } - } - - } -} - diff --git a/ContentControls/Screens/iPhone/Search/SearchScreen.xib.designer.cs b/ContentControls/Screens/iPhone/Search/SearchScreen.xib.designer.cs deleted file mode 100644 index f55dbed66..000000000 --- a/ContentControls/Screens/iPhone/Search/SearchScreen.xib.designer.cs +++ /dev/null @@ -1,61 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Mono Runtime Version: 2.0.50727.1433 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -namespace Example_ContentControls.Screens.iPhone.Search { - - - // Base type probably should be MonoTouch.UIKit.UIViewController or subclass - [MonoTouch.Foundation.Register("SearchScreen")] - public partial class SearchScreen { - - private MonoTouch.UIKit.UIView __mt_view; - - private MonoTouch.UIKit.UISearchBar __mt_srchMain; - - private MonoTouch.UIKit.UITableView __mt_tblMain; - - #pragma warning disable 0169 - [MonoTouch.Foundation.Connect("view")] - private MonoTouch.UIKit.UIView view { - get { - this.__mt_view = ((MonoTouch.UIKit.UIView)(this.GetNativeField("view"))); - return this.__mt_view; - } - set { - this.__mt_view = value; - this.SetNativeField("view", value); - } - } - - [MonoTouch.Foundation.Connect("srchMain")] - private MonoTouch.UIKit.UISearchBar srchMain { - get { - this.__mt_srchMain = ((MonoTouch.UIKit.UISearchBar)(this.GetNativeField("srchMain"))); - return this.__mt_srchMain; - } - set { - this.__mt_srchMain = value; - this.SetNativeField("srchMain", value); - } - } - - [MonoTouch.Foundation.Connect("tblMain")] - private MonoTouch.UIKit.UITableView tblMain { - get { - this.__mt_tblMain = ((MonoTouch.UIKit.UITableView)(this.GetNativeField("tblMain"))); - return this.__mt_tblMain; - } - set { - this.__mt_tblMain = value; - this.SetNativeField("tblMain", value); - } - } - } -} diff --git a/ContentControls/Screens/iPhone/Tabs/TabBarController.cs b/ContentControls/Screens/iPhone/Tabs/TabBarController.cs deleted file mode 100644 index 43140d8a7..000000000 --- a/ContentControls/Screens/iPhone/Tabs/TabBarController.cs +++ /dev/null @@ -1,97 +0,0 @@ -using System; -using MonoTouch.UIKit; - -namespace Example_ContentControls.Screens.iPhone.Tabs -{ - public class TabBarController : UITabBarController - { - // screens - UINavigationController browsersTabNavController; - Browsers.BrowsersHome browsersHome; - Search.SearchScreen searchScreen; - UINavigationController mapsTabNavController; - Maps.MapsHome mapsHome; - UINavigationController customizeNavBarNavController; - CustomizingNavBar.CustomizingNavBarScreen customizingNavBarScreen; - - /// - /// - /// - public override void ViewDidLoad () - { - base.ViewDidLoad (); - - // browsers tab - // in this case, we create a navigation controller and then add our screen - // to that - browsersTabNavController = new UINavigationController(); - browsersTabNavController.TabBarItem = new UITabBarItem(); - browsersTabNavController.TabBarItem.Title = "Browsers"; - browsersHome = new Browsers.BrowsersHome(); - browsersTabNavController.PushViewController(browsersHome, false); - - // maps tab - mapsTabNavController = new UINavigationController(); - mapsTabNavController.TabBarItem = new UITabBarItem(); - mapsTabNavController.TabBarItem.Title = "Maps"; - mapsHome = new Maps.MapsHome(); - mapsTabNavController.PushViewController(mapsHome, false); - - // search - searchScreen = new Search.SearchScreen(); - searchScreen.TabBarItem = new UITabBarItem(UITabBarSystemItem.Search, 1); - - // custom nav bar - customizeNavBarNavController = new UINavigationController(); - customizeNavBarNavController.TabBarItem = new UITabBarItem(); - customizeNavBarNavController.TabBarItem.Title = "Nav"; - customizingNavBarScreen = new CustomizingNavBar.CustomizingNavBarScreen(); - customizeNavBarNavController.PushViewController(customizingNavBarScreen, false); - - // set a badge, just for fun - customizeNavBarNavController.TabBarItem.BadgeValue = "3"; - - - // create our array of controllers - var viewControllers = new UIViewController[] { - browsersTabNavController, - mapsTabNavController, - searchScreen, - customizeNavBarNavController, - new ExtraScreens.CustomizableTabScreen() { Number = "1" }, - new ExtraScreens.CustomizableTabScreen() { Number = "2" }, - new ExtraScreens.CustomizableTabScreen() { Number = "3" }, - new ExtraScreens.CustomizableTabScreen() { Number = "4" }, - new ExtraScreens.CustomizableTabScreen() { Number = "5" } - }; - - // create an array of customizable controllers from just the - // ones we want to customize. - var customizableControllers = new UIViewController[] { - viewControllers[2], - viewControllers[3], - viewControllers[4], - viewControllers[5], - viewControllers[6] - }; - - // attach the view controllers - this.ViewControllers = viewControllers; - - // tell the tab bar which controllers are allowed to customize. if we - // don't set this, it assumes all controllers are customizable. - CustomizableViewControllers = customizableControllers; - - // set our selected item - SelectedViewController = browsersTabNavController; - - } - - public override bool ShouldAutorotateToInterfaceOrientation (UIInterfaceOrientation toInterfaceOrientation) - { - return true; - } - - } -} - diff --git a/ContentControls/Screenshots/01.png b/ContentControls/Screenshots/01.png deleted file mode 100644 index 0f409fffa..000000000 Binary files a/ContentControls/Screenshots/01.png and /dev/null differ diff --git a/ContentControls/Screenshots/02.png b/ContentControls/Screenshots/02.png deleted file mode 100644 index 0a105e462..000000000 Binary files a/ContentControls/Screenshots/02.png and /dev/null differ diff --git a/ContentControls/Screenshots/03.png b/ContentControls/Screenshots/03.png deleted file mode 100644 index 79b676735..000000000 Binary files a/ContentControls/Screenshots/03.png and /dev/null differ diff --git a/ContentControls/Screenshots/04.png b/ContentControls/Screenshots/04.png deleted file mode 100644 index 36cd71d90..000000000 Binary files a/ContentControls/Screenshots/04.png and /dev/null differ diff --git a/ContentControls/Screenshots/05.png b/ContentControls/Screenshots/05.png deleted file mode 100644 index b166aac85..000000000 Binary files a/ContentControls/Screenshots/05.png and /dev/null differ diff --git a/ContentControls/Screenshots/06.png b/ContentControls/Screenshots/06.png deleted file mode 100644 index 05bb11fd4..000000000 Binary files a/ContentControls/Screenshots/06.png and /dev/null differ diff --git a/ContentControls/Screenshots/07.png b/ContentControls/Screenshots/07.png deleted file mode 100644 index 8c00a9984..000000000 Binary files a/ContentControls/Screenshots/07.png and /dev/null differ diff --git a/ContentControls/Screenshots/08.png b/ContentControls/Screenshots/08.png deleted file mode 100644 index 8c0535950..000000000 Binary files a/ContentControls/Screenshots/08.png and /dev/null differ diff --git a/ContentControls/Screenshots/09.png b/ContentControls/Screenshots/09.png deleted file mode 100644 index c912d4c8d..000000000 Binary files a/ContentControls/Screenshots/09.png and /dev/null differ diff --git a/ContentControls/Screenshots/10.png b/ContentControls/Screenshots/10.png deleted file mode 100644 index d2f0d9b56..000000000 Binary files a/ContentControls/Screenshots/10.png and /dev/null differ diff --git a/ContentControls/Screenshots/11.png b/ContentControls/Screenshots/11.png deleted file mode 100644 index 9a1182fe1..000000000 Binary files a/ContentControls/Screenshots/11.png and /dev/null differ diff --git a/ContentControls/movedto.md b/ContentControls/movedto.md new file mode 100644 index 000000000..a3a8e5ce1 --- /dev/null +++ b/ContentControls/movedto.md @@ -0,0 +1 @@ +https://github.com/xamarin/mobile-samples/tree/master/ContentControls \ No newline at end of file diff --git a/StandardControls/Metadata.xml b/StandardControls/Metadata.xml deleted file mode 100644 index 92adef613..000000000 --- a/StandardControls/Metadata.xml +++ /dev/null @@ -1 +0,0 @@ - a8e9b255-60d9-49cc-a547-46170ba5c531 false Intermediate UIKit \ No newline at end of file diff --git a/StandardControls/README.md b/StandardControls/README.md deleted file mode 100644 index be63689b5..000000000 --- a/StandardControls/README.md +++ /dev/null @@ -1,22 +0,0 @@ -Standard Controls -================= -This example application illustrates how to use a number of standard controls including: -* Action Sheet -* Activity Spinner -* Alert View -* Button -* Date Picker -* Image View -* Label -* Pager Control -* Progress Bar -* Scroll View -* Segmented Control -* Slider -* Switch -* Text Field -* Toolbar - -Authors -------- -Bryan Costanich diff --git a/StandardControls/Screenshots/01.png b/StandardControls/Screenshots/01.png deleted file mode 100644 index 0e18ae7c0..000000000 Binary files a/StandardControls/Screenshots/01.png and /dev/null differ diff --git a/StandardControls/Screenshots/02.png b/StandardControls/Screenshots/02.png deleted file mode 100644 index 8c6a129fa..000000000 Binary files a/StandardControls/Screenshots/02.png and /dev/null differ diff --git a/StandardControls/Screenshots/03.png b/StandardControls/Screenshots/03.png deleted file mode 100644 index 9d9f5e3d7..000000000 Binary files a/StandardControls/Screenshots/03.png and /dev/null differ diff --git a/StandardControls/Screenshots/04.png b/StandardControls/Screenshots/04.png deleted file mode 100644 index 700dd5082..000000000 Binary files a/StandardControls/Screenshots/04.png and /dev/null differ diff --git a/StandardControls/Screenshots/05.png b/StandardControls/Screenshots/05.png deleted file mode 100644 index 999ce4c4f..000000000 Binary files a/StandardControls/Screenshots/05.png and /dev/null differ diff --git a/StandardControls/Screenshots/06.png b/StandardControls/Screenshots/06.png deleted file mode 100644 index 7e06e30e5..000000000 Binary files a/StandardControls/Screenshots/06.png and /dev/null differ diff --git a/StandardControls/Screenshots/07.png b/StandardControls/Screenshots/07.png deleted file mode 100644 index 1ff94d146..000000000 Binary files a/StandardControls/Screenshots/07.png and /dev/null differ diff --git a/StandardControls/Screenshots/08.png b/StandardControls/Screenshots/08.png deleted file mode 100644 index b3cc56ff7..000000000 Binary files a/StandardControls/Screenshots/08.png and /dev/null differ diff --git a/StandardControls/Screenshots/09.png b/StandardControls/Screenshots/09.png deleted file mode 100644 index 10558fb75..000000000 Binary files a/StandardControls/Screenshots/09.png and /dev/null differ diff --git a/StandardControls/Screenshots/10.png b/StandardControls/Screenshots/10.png deleted file mode 100644 index 623260c44..000000000 Binary files a/StandardControls/Screenshots/10.png and /dev/null differ diff --git a/StandardControls/Screenshots/11.png b/StandardControls/Screenshots/11.png deleted file mode 100644 index bec5c70e1..000000000 Binary files a/StandardControls/Screenshots/11.png and /dev/null differ diff --git a/StandardControls/Screenshots/12.png b/StandardControls/Screenshots/12.png deleted file mode 100644 index 56c5a7f8c..000000000 Binary files a/StandardControls/Screenshots/12.png and /dev/null differ diff --git a/StandardControls/Screenshots/13.png b/StandardControls/Screenshots/13.png deleted file mode 100644 index 760053d74..000000000 Binary files a/StandardControls/Screenshots/13.png and /dev/null differ diff --git a/StandardControls/Screenshots/14.png b/StandardControls/Screenshots/14.png deleted file mode 100644 index b685921f0..000000000 Binary files a/StandardControls/Screenshots/14.png and /dev/null differ diff --git a/StandardControls/Screenshots/15.png b/StandardControls/Screenshots/15.png deleted file mode 100644 index f6481de0e..000000000 Binary files a/StandardControls/Screenshots/15.png and /dev/null differ diff --git a/StandardControls/Screenshots/16.png b/StandardControls/Screenshots/16.png deleted file mode 100644 index c9c905366..000000000 Binary files a/StandardControls/Screenshots/16.png and /dev/null differ diff --git a/StandardControls/Screenshots/17.png b/StandardControls/Screenshots/17.png deleted file mode 100644 index 6c1a77a6c..000000000 Binary files a/StandardControls/Screenshots/17.png and /dev/null differ diff --git a/StandardControls/Screenshots/18.png b/StandardControls/Screenshots/18.png deleted file mode 100644 index 5431e230b..000000000 Binary files a/StandardControls/Screenshots/18.png and /dev/null differ diff --git a/StandardControls/Screenshots/19.png b/StandardControls/Screenshots/19.png deleted file mode 100644 index d3d1df7cb..000000000 Binary files a/StandardControls/Screenshots/19.png and /dev/null differ diff --git a/StandardControls/Screenshots/20.png b/StandardControls/Screenshots/20.png deleted file mode 100644 index 3aca26efc..000000000 Binary files a/StandardControls/Screenshots/20.png and /dev/null differ diff --git a/StandardControls/Screenshots/21.png b/StandardControls/Screenshots/21.png deleted file mode 100644 index 99a2c7f36..000000000 Binary files a/StandardControls/Screenshots/21.png and /dev/null differ diff --git a/StandardControls/Screenshots/22.png b/StandardControls/Screenshots/22.png deleted file mode 100644 index de5c4c325..000000000 Binary files a/StandardControls/Screenshots/22.png and /dev/null differ diff --git a/StandardControls/Screenshots/23.png b/StandardControls/Screenshots/23.png deleted file mode 100644 index 238140273..000000000 Binary files a/StandardControls/Screenshots/23.png and /dev/null differ diff --git a/StandardControls/Screenshots/24.png b/StandardControls/Screenshots/24.png deleted file mode 100644 index 256b6e8fa..000000000 Binary files a/StandardControls/Screenshots/24.png and /dev/null differ diff --git a/StandardControls/Screenshots/25.png b/StandardControls/Screenshots/25.png deleted file mode 100644 index ea99fca77..000000000 Binary files a/StandardControls/Screenshots/25.png and /dev/null differ diff --git a/StandardControls/StandardControls.sln b/StandardControls/StandardControls.sln deleted file mode 100644 index 628297c06..000000000 --- a/StandardControls/StandardControls.sln +++ /dev/null @@ -1,26 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 11.00 -# Visual Studio 2010 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "StandardControls", "StandardControls\StandardControls.csproj", "{42F47640-1879-403C-9F7E-E1CDAEE2D5C4}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|iPhoneSimulator = Debug|iPhoneSimulator - Release|iPhoneSimulator = Release|iPhoneSimulator - Debug|iPhone = Debug|iPhone - Release|iPhone = Release|iPhone - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {42F47640-1879-403C-9F7E-E1CDAEE2D5C4}.Debug|iPhone.ActiveCfg = Debug|iPhone - {42F47640-1879-403C-9F7E-E1CDAEE2D5C4}.Debug|iPhone.Build.0 = Debug|iPhone - {42F47640-1879-403C-9F7E-E1CDAEE2D5C4}.Debug|iPhoneSimulator.ActiveCfg = Debug|iPhoneSimulator - {42F47640-1879-403C-9F7E-E1CDAEE2D5C4}.Debug|iPhoneSimulator.Build.0 = Debug|iPhoneSimulator - {42F47640-1879-403C-9F7E-E1CDAEE2D5C4}.Release|iPhone.ActiveCfg = Release|iPhone - {42F47640-1879-403C-9F7E-E1CDAEE2D5C4}.Release|iPhone.Build.0 = Release|iPhone - {42F47640-1879-403C-9F7E-E1CDAEE2D5C4}.Release|iPhoneSimulator.ActiveCfg = Release|iPhoneSimulator - {42F47640-1879-403C-9F7E-E1CDAEE2D5C4}.Release|iPhoneSimulator.Build.0 = Release|iPhoneSimulator - EndGlobalSection - GlobalSection(MonoDevelopProperties) = preSolution - StartupItem = StandardControls\StandardControls.csproj - EndGlobalSection -EndGlobal diff --git a/StandardControls/StandardControls/AppDelegate.cs b/StandardControls/StandardControls/AppDelegate.cs deleted file mode 100755 index 2e801c35b..000000000 --- a/StandardControls/StandardControls/AppDelegate.cs +++ /dev/null @@ -1,43 +0,0 @@ -using System; -using MonoTouch.UIKit; -using MonoTouch.Foundation; - -namespace Example_StandardControls -{ - [Register("AppDelegate")] - public class AppDelegate : UIApplicationDelegate - { - #region -= declarations and properties =- - - protected UIWindow window; - protected UINavigationController mainNavController; - protected Example_StandardControls.Screens.iPhone.Home.HomeNavController iPhoneHome; - protected Example_StandardControls.Screens.iPad.Home.HomeNavController iPadHome; - - #endregion - - public override bool FinishedLaunching (UIApplication app, NSDictionary options) - { - // create our window - window = new UIWindow (UIScreen.MainScreen.Bounds); - window.MakeKeyAndVisible (); - - // instantiate our main navigatin controller and add it's view to the window - mainNavController = new UINavigationController (); - - if (UIDevice.CurrentDevice.UserInterfaceIdiom == UIUserInterfaceIdiom.Phone) { - iPhoneHome = new Example_StandardControls.Screens.iPhone.Home.HomeNavController (); - mainNavController.PushViewController (iPhoneHome, false); - } else { - iPadHome = new Example_StandardControls.Screens.iPad.Home.HomeNavController (); - mainNavController.PushViewController (iPadHome, false); - } - - window.RootViewController = mainNavController; - - // - return true; - } - - } -} diff --git a/StandardControls/StandardControls/Application.cs b/StandardControls/StandardControls/Application.cs deleted file mode 100755 index 2fa687459..000000000 --- a/StandardControls/StandardControls/Application.cs +++ /dev/null @@ -1,20 +0,0 @@ -using System; -using MonoTouch.UIKit; - -namespace Example_StandardControls -{ - public class Application// : UIApplication - { - public static void Main (string[] args) - { - try - { - UIApplication.Main (args, null, "AppDelegate"); - } - catch (Exception e) - { - Console.WriteLine (e.ToString ()); - } - } - } -} diff --git a/StandardControls/StandardControls/Code/NavItem.cs b/StandardControls/StandardControls/Code/NavItem.cs deleted file mode 100755 index 0054de122..000000000 --- a/StandardControls/StandardControls/Code/NavItem.cs +++ /dev/null @@ -1,120 +0,0 @@ -using System; -using MonoTouch.UIKit; - -namespace Xamarin.Code -{ - public class NavItem - { - /// - /// The name of the nav item, shows up as the label - /// - public string Name - { - get { return name; } - set { name = value; } - } - protected string name; - - /// - /// The UIViewController that the nav item opens. Use this property if you - /// wanted to early instantiate the controller when the nav table is built out, - /// otherwise just set the Type property and it will lazy-instantiate when the - /// nav item is clicked on. - /// - public UIViewController Controller - { - get { return controller; } - set { controller = value; } - } - protected UIViewController controller; - - /// - /// Path to the image to show in the nav item - /// - public string ImagePath - { - get { return imagePath; } - set { imagePath = value; } - } - protected string imagePath; - - /// - /// The Type of the UIViewController. Set this to the type and leave the Controller - /// property empty to lazy-instantiate the ViewController when the nav item is - /// clicked. - /// - public Type ControllerType - { - get { return controllerType; } - set { controllerType = value; } - } - protected Type controllerType; - - /// - /// a list of the constructor args (if neccesary) for the controller. use this in - /// conjunction with ControllerType if lazy-creating controllers. - /// - public object[] ControllerConstructorArgs - { - get { return controllerConstructorArgs; } - set - { - controllerConstructorArgs = value; - - controllerConstructorTypes = new Type[controllerConstructorArgs.Length]; - for (int i = 0; i < controllerConstructorArgs.Length; i++) { - controllerConstructorTypes[i] = controllerConstructorArgs[i].GetType (); - } - } - } - protected object[] controllerConstructorArgs = new object[] {}; - - /// - /// The types of constructor args. - /// - public Type[] ControllerConstructorTypes - { - get { return controllerConstructorTypes; } - } - protected Type[] controllerConstructorTypes = Type.EmptyTypes; - - public NavItem () - { - } - - public NavItem (string name) : this() - { - this.name = name; - } - - public NavItem (string name, UIViewController controller) : this (name) - { - this.controller = controller; - } - - public NavItem (string name, Type controllerType) : this (name) - { - this.controllerType = controllerType; - } - - public NavItem (string name, Type controllerType, object[] controllerConstructorArgs) : this (name, controllerType) - { - this.ControllerConstructorArgs = controllerConstructorArgs; - } - - public NavItem (string name, UIViewController controller, string imagePath) : this (name, controller) - { - this.imagePath = imagePath; - } - - public NavItem (string name, string imagePath, Type controllerType) : this (name, controllerType) - { - this.imagePath = imagePath; - } - - public NavItem (string name, string imagePath, Type controllerType, object[] controllerConstructorArgs) : this (name, controllerType, controllerConstructorArgs) - { - this.imagePath = imagePath; - } - } -} diff --git a/StandardControls/StandardControls/Code/NavItemGroup.cs b/StandardControls/StandardControls/Code/NavItemGroup.cs deleted file mode 100755 index 2b54c2fcd..000000000 --- a/StandardControls/StandardControls/Code/NavItemGroup.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.Collections.Generic; - -namespace Xamarin.Code -{ - /// - /// A group that contains table items - /// - public class NavItemGroup - { - public string Name { get; set; } - - public string Footer { get; set; } - - public List Items - { - get { return items; } - set { items = value; } - } - protected List items = new List (); - - public NavItemGroup () { } - - public NavItemGroup (string name) - { - Name = name; - } - - } - -} - diff --git a/StandardControls/StandardControls/Code/NavItemTableSource.cs b/StandardControls/StandardControls/Code/NavItemTableSource.cs deleted file mode 100755 index 7dc8d098c..000000000 --- a/StandardControls/StandardControls/Code/NavItemTableSource.cs +++ /dev/null @@ -1,148 +0,0 @@ -using System; -using System.Collections.Generic; -using MonoTouch.UIKit; -using MonoTouch.Foundation; -using System.Reflection; - -namespace Xamarin.Code -{ - - /// - /// Combined DataSource and Delegate for our UITableView - /// - public class NavItemTableSource : UITableViewSource - { - protected List navItems; - string cellIdentifier = "NavTableCellView"; - UINavigationController navigationController; - - public NavItemTableSource (UINavigationController navigationController, List items) - { - navItems = items; - this.navigationController = navigationController; - } - - /// - /// Called by the TableView to determine how many sections(groups) there are. - /// - public override int NumberOfSections (UITableView tableView) - { - return navItems.Count; - } - - /// - /// Called by the TableView to determine how many cells to create for that particular section. - /// - public override int RowsInSection (UITableView tableview, int section) - { - return navItems[section].Items.Count; - } - - /// - /// Called by the TableView to retrieve the header text for the particular section(group) - /// - public override string TitleForHeader (UITableView tableView, int section) - { - return navItems[section].Name; - } - - /// - /// Called by the TableView to retrieve the footer text for the particular section(group) - /// - public override string TitleForFooter (UITableView tableView, int section) - { - return navItems[section].Footer; - } - - /// - /// Called by the TableView to actually build each cell. - /// - public override UITableViewCell GetCell (UITableView tableView, NSIndexPath indexPath) - { - // declare vars - NavItem navItem = navItems[indexPath.Section].Items[indexPath.Row]; - UIImage navIcon = null; - - var cell = tableView.DequeueReusableCell (this.cellIdentifier); - if (cell == null) { - cell = new UITableViewCell (UITableViewCellStyle.Default, this.cellIdentifier); - cell.Tag = Environment.TickCount; - } - - // set the cell properties - cell.TextLabel.Text = navItems[indexPath.Section].Items[indexPath.Row].Name; - cell.Accessory = UITableViewCellAccessory.DisclosureIndicator; - - // return the cell - return cell; - } - - - /// - /// Is called when a row is selected - /// - public override void RowSelected (UITableView tableView, NSIndexPath indexPath) - { - // get a reference to the nav item - NavItem navItem = navItems[indexPath.Section].Items[indexPath.Row]; - - // if the nav item has a proper controller, push it on to the NavigationController - // NOTE: we could also raise an event here, to loosely couple this, but isn't neccessary, - // because we'll only ever use this this way - if (navItem.Controller != null) { - navigationController.PushViewController (navItem.Controller, true); - // show the nav bar (we don't show it on the home page) - navigationController.NavigationBarHidden = false; - } - else - { - if (navItem.ControllerType != null) { - // - ConstructorInfo ctor = null; - - // if the nav item has constructor aguments - if (navItem.ControllerConstructorArgs.Length > 0) { - // look for the constructor - ctor = navItem.ControllerType.GetConstructor (navItem.ControllerConstructorTypes); - } - else { - // search for the default constructor - ctor = navItem.ControllerType.GetConstructor (System.Type.EmptyTypes); - } - - // if we found the constructor - if (ctor != null) - { - // - UIViewController instance = null; - - if (navItem.ControllerConstructorArgs.Length > 0) { - // instance the view controller - instance = ctor.Invoke (navItem.ControllerConstructorArgs) as UIViewController; - } - else { - // instance the view controller - instance = ctor.Invoke (null) as UIViewController; - } - - if (instance != null) { - // save the object - navItem.Controller = instance; - - // push the view controller onto the stack - navigationController.PushViewController (navItem.Controller, true); - } - else { - Console.WriteLine ("instance of view controller not created"); - } - } - else - { - Console.WriteLine ("constructor not found"); - } - } - } - } - } -} - diff --git a/StandardControls/StandardControls/Controls/ActionSheetDatePicker.cs b/StandardControls/StandardControls/Controls/ActionSheetDatePicker.cs deleted file mode 100755 index ead4f6f64..000000000 --- a/StandardControls/StandardControls/Controls/ActionSheetDatePicker.cs +++ /dev/null @@ -1,121 +0,0 @@ -using System; -using MonoTouch.UIKit; -using System.Drawing; - -namespace Example_StandardControls.Controls -{ - /// - /// A class to show a date picker on an action sheet. To use, create a new ActionSheetDatePicker, - /// set the Title, modify any settings on the DatePicker property, and call Show(). It will - /// automatically dismiss when the user clicks "Done," or you can call Hide() to dismiss it - /// manually. - /// - [MonoTouch.Foundation.Register("SlideOnDatePicker")] - public class ActionSheetDatePicker - { - #region -= declarations =- - - UIActionSheet actionSheet; - UIButton doneButton = UIButton.FromType (UIButtonType.RoundedRect); - UIView owner; - UILabel titleLabel = new UILabel (); - - #endregion - - #region -= properties =- - - /// - /// Set any datepicker properties here - /// - public UIDatePicker DatePicker - { - get { return datePicker; } - set { datePicker = value; } - } - UIDatePicker datePicker = new UIDatePicker(RectangleF.Empty); - - /// - /// The title that shows up for the date picker - /// - public string Title - { - get { return titleLabel.Text; } - set { titleLabel.Text = value; } - } - - #endregion - - #region -= constructor =- - - /// - /// - /// - public ActionSheetDatePicker (UIView owner) - { - // save our uiview owner - this.owner = owner; - - // configure the title label - titleLabel.BackgroundColor = UIColor.Clear; - titleLabel.TextColor = UIColor.LightTextColor; - titleLabel.Font = UIFont.BoldSystemFontOfSize (18); - - // configure the done button - doneButton.SetTitle ("done", UIControlState.Normal); - doneButton.TouchUpInside += (s, e) => { actionSheet.DismissWithClickedButtonIndex (0, true); }; - - // create + configure the action sheet - actionSheet = new UIActionSheet () { Style = UIActionSheetStyle.BlackTranslucent }; - actionSheet.Clicked += (s, e) => { Console.WriteLine ("Clicked on item {0}", e.ButtonIndex); }; - - // add our controls to the action sheet - actionSheet.AddSubview (datePicker); - actionSheet.AddSubview (titleLabel); - actionSheet.AddSubview (doneButton); - } - - #endregion - - #region -= public methods =- - - /// - /// Shows the action sheet picker from the view that was set as the owner. - /// - public void Show () - { - // declare vars - float titleBarHeight = 40; - SizeF doneButtonSize = new SizeF (71, 30); - SizeF actionSheetSize = new SizeF (owner.Frame.Width, datePicker.Frame.Height + titleBarHeight); - RectangleF actionSheetFrame = new RectangleF (0, owner.Frame.Height - actionSheetSize.Height - , actionSheetSize.Width, actionSheetSize.Height); - - // show the action sheet and add the controls to it - actionSheet.ShowInView (owner); - - // resize the action sheet to fit our other stuff - actionSheet.Frame = actionSheetFrame; - - // move our picker to be at the bottom of the actionsheet (view coords are relative to the action sheet) - datePicker.Frame = new RectangleF - (datePicker.Frame.X, titleBarHeight, datePicker.Frame.Width, datePicker.Frame.Height); - - // move our label to the top of the action sheet - titleLabel.Frame = new RectangleF (10, 4, owner.Frame.Width - 100, 35); - - // move our button - doneButton.Frame = new RectangleF (actionSheetSize.Width - doneButtonSize.Width - 10, 7, doneButtonSize.Width, doneButtonSize.Height); - } - - /// - /// Dismisses the action sheet date picker - /// - public void Hide (bool animated) - { - actionSheet.DismissWithClickedButtonIndex (0, animated); - } - - #endregion - } -} - diff --git a/StandardControls/StandardControls/Controls/ActivityIndicatorAlertView.cs b/StandardControls/StandardControls/Controls/ActivityIndicatorAlertView.cs deleted file mode 100755 index 6ceb6b594..000000000 --- a/StandardControls/StandardControls/Controls/ActivityIndicatorAlertView.cs +++ /dev/null @@ -1,94 +0,0 @@ -using System; -using MonoTouch.Foundation; -using MonoTouch.UIKit; -using System.Drawing; - -namespace Example_StandardControls.Controls -{ - [Register("ActivityIndicatorAlertView")] - public class ActivityIndicatorAlertView : UIAlertView - { - /// - /// our activity indicator - /// - UIActivityIndicatorView activityIndicator; - /// - /// the message label in the window - /// - UILabel lblMessage; - - /// - /// The message that appears in the alert above the activity indicator - /// - public string Message - { - get { return message; } - set { message = value; } - } - protected string message; - - #region -= constructors =- - - public ActivityIndicatorAlertView (IntPtr handle) : base(handle) {} - - [Export("initWithCoder:")] - public ActivityIndicatorAlertView (NSCoder coder) : base(coder) {} - - public ActivityIndicatorAlertView () { } - - #endregion - - /// - /// we use this to resize our alert view. doing it at any other time has - /// weird effects because of the lifecycle - /// - public override void LayoutSubviews () - { - base.LayoutSubviews (); - // resize the control - this.Frame = new RectangleF (this.Frame.X, this.Frame.Y, this.Frame.Width, 120); - } - - /// - /// this is where we do the meat of creating our alert, which includes adding - /// controls, etc. - /// - public override void Draw (RectangleF rect) - { - // if the control hasn't been setup yet - if (activityIndicator == null) - { - // if we have a message - if (!string.IsNullOrEmpty (message)) - { - lblMessage = new UILabel (new RectangleF (20, 10, rect.Width - 40, 33)); - lblMessage.BackgroundColor = UIColor.Clear; - lblMessage.TextColor = UIColor.LightTextColor; - lblMessage.TextAlignment = UITextAlignment.Center; - lblMessage.Text = message; - this.AddSubview (lblMessage); - } - - // instantiate a new activity indicator - activityIndicator = new UIActivityIndicatorView (UIActivityIndicatorViewStyle.White); - activityIndicator.Frame = new RectangleF ((rect.Width / 2) - (activityIndicator.Frame.Width / 2) - , 50, activityIndicator.Frame.Width, activityIndicator.Frame.Height); - this.AddSubview (activityIndicator); - activityIndicator.StartAnimating (); - } - base.Draw (rect); - } - - /// - /// dismisses the alert view. makes sure to call it on the main UI - /// thread in case it's called from a worker thread. - /// - public void Hide (bool animated) - { - this.InvokeOnMainThread (delegate { - this.DismissWithClickedButtonIndex (0, animated); - }); - } - } -} - diff --git a/StandardControls/StandardControls/Controls/TapZoomScrollView.cs b/StandardControls/StandardControls/Controls/TapZoomScrollView.cs deleted file mode 100755 index 4cb6911c8..000000000 --- a/StandardControls/StandardControls/Controls/TapZoomScrollView.cs +++ /dev/null @@ -1,37 +0,0 @@ -using System; -using MonoTouch.UIKit; -using MonoTouch.Foundation; -using System.Drawing; - -namespace Example_StandardControls.Controls -{ - [MonoTouch.Foundation.Register("TapZoomScrollView")] - public class TapZoomScrollView : UIScrollView - { - public TapZoomScrollView (IntPtr handle) : base(handle) { } - - [Export("initWithCoder:")] - public TapZoomScrollView (NSCoder coder) : base(coder) { } - - public TapZoomScrollView () { } - - public TapZoomScrollView (RectangleF frame) : base(frame) { } - - - public override void TouchesBegan (MonoTouch.Foundation.NSSet touches, UIEvent evt) - { - base.TouchesBegan (touches, evt); - - UITouch touch = touches.AnyObject as UITouch; - - if (touch.TapCount == 2) - { - if (ZoomScale >= 2) - SetZoomScale(1, true); - else - SetZoomScale(3, true); - } - } - } -} - diff --git a/StandardControls/StandardControls/Images/Lightning_Large.png b/StandardControls/StandardControls/Images/Lightning_Large.png deleted file mode 100755 index 6ee4bda0a..000000000 Binary files a/StandardControls/StandardControls/Images/Lightning_Large.png and /dev/null differ diff --git a/StandardControls/StandardControls/Images/Lightning_Small.png b/StandardControls/StandardControls/Images/Lightning_Small.png deleted file mode 100755 index 2b2b1de1a..000000000 Binary files a/StandardControls/StandardControls/Images/Lightning_Small.png and /dev/null differ diff --git a/StandardControls/StandardControls/Images/Spinning Circle_1.png b/StandardControls/StandardControls/Images/Spinning Circle_1.png deleted file mode 100755 index e1ee46e5f..000000000 Binary files a/StandardControls/StandardControls/Images/Spinning Circle_1.png and /dev/null differ diff --git a/StandardControls/StandardControls/Images/Spinning Circle_2.png b/StandardControls/StandardControls/Images/Spinning Circle_2.png deleted file mode 100755 index 6cb8cc37b..000000000 Binary files a/StandardControls/StandardControls/Images/Spinning Circle_2.png and /dev/null differ diff --git a/StandardControls/StandardControls/Images/Spinning Circle_3.png b/StandardControls/StandardControls/Images/Spinning Circle_3.png deleted file mode 100755 index c68de63dc..000000000 Binary files a/StandardControls/StandardControls/Images/Spinning Circle_3.png and /dev/null differ diff --git a/StandardControls/StandardControls/Images/Spinning Circle_4.png b/StandardControls/StandardControls/Images/Spinning Circle_4.png deleted file mode 100755 index f439a4d17..000000000 Binary files a/StandardControls/StandardControls/Images/Spinning Circle_4.png and /dev/null differ diff --git a/StandardControls/StandardControls/Info.plist b/StandardControls/StandardControls/Info.plist deleted file mode 100755 index 780a97383..000000000 --- a/StandardControls/StandardControls/Info.plist +++ /dev/null @@ -1,26 +0,0 @@ - - - - - CFBundleDisplayName - Controls - CFBundleIconFiles - - Resources/icon-57.png - Resources/icon-114.png - Resources/icon-72.png - Resources/icon-144.png - Resources/icon-29.png - Resources/icon-58.png - Resources/icon-50.png - Resources/icon-100.png - - MinimumOSVersion - 4.0 - UIDeviceFamily - - 1 - 2 - - - diff --git a/StandardControls/StandardControls/Resources/Default-568h@2x.png b/StandardControls/StandardControls/Resources/Default-568h@2x.png deleted file mode 100644 index b3f66780c..000000000 Binary files a/StandardControls/StandardControls/Resources/Default-568h@2x.png and /dev/null differ diff --git a/StandardControls/StandardControls/Resources/Default-Landscape@2x~ipad.png b/StandardControls/StandardControls/Resources/Default-Landscape@2x~ipad.png deleted file mode 100644 index 13cd433d9..000000000 Binary files a/StandardControls/StandardControls/Resources/Default-Landscape@2x~ipad.png and /dev/null differ diff --git a/StandardControls/StandardControls/Resources/Default-Landscape~ipad.png b/StandardControls/StandardControls/Resources/Default-Landscape~ipad.png deleted file mode 100644 index 18532e3b9..000000000 Binary files a/StandardControls/StandardControls/Resources/Default-Landscape~ipad.png and /dev/null differ diff --git a/StandardControls/StandardControls/Resources/Default-Portrait@2x~ipad.png b/StandardControls/StandardControls/Resources/Default-Portrait@2x~ipad.png deleted file mode 100644 index becc2fe1c..000000000 Binary files a/StandardControls/StandardControls/Resources/Default-Portrait@2x~ipad.png and /dev/null differ diff --git a/StandardControls/StandardControls/Resources/Default-Portrait~ipad.png b/StandardControls/StandardControls/Resources/Default-Portrait~ipad.png deleted file mode 100644 index 1bc6fa7f3..000000000 Binary files a/StandardControls/StandardControls/Resources/Default-Portrait~ipad.png and /dev/null differ diff --git a/StandardControls/StandardControls/Resources/Default.png b/StandardControls/StandardControls/Resources/Default.png deleted file mode 100644 index 7ad63b043..000000000 Binary files a/StandardControls/StandardControls/Resources/Default.png and /dev/null differ diff --git a/StandardControls/StandardControls/Resources/Default@2x.png b/StandardControls/StandardControls/Resources/Default@2x.png deleted file mode 100644 index 8d59426f3..000000000 Binary files a/StandardControls/StandardControls/Resources/Default@2x.png and /dev/null differ diff --git a/StandardControls/StandardControls/Resources/iTunesArtwork.png b/StandardControls/StandardControls/Resources/iTunesArtwork.png deleted file mode 100644 index 0baf12237..000000000 Binary files a/StandardControls/StandardControls/Resources/iTunesArtwork.png and /dev/null differ diff --git a/StandardControls/StandardControls/Resources/iTunesArtwork@2x.png b/StandardControls/StandardControls/Resources/iTunesArtwork@2x.png deleted file mode 100644 index 85346748c..000000000 Binary files a/StandardControls/StandardControls/Resources/iTunesArtwork@2x.png and /dev/null differ diff --git a/StandardControls/StandardControls/Resources/icon-100.png b/StandardControls/StandardControls/Resources/icon-100.png deleted file mode 100644 index 13a7b3c4a..000000000 Binary files a/StandardControls/StandardControls/Resources/icon-100.png and /dev/null differ diff --git a/StandardControls/StandardControls/Resources/icon-114.png b/StandardControls/StandardControls/Resources/icon-114.png deleted file mode 100644 index 7a29a3749..000000000 Binary files a/StandardControls/StandardControls/Resources/icon-114.png and /dev/null differ diff --git a/StandardControls/StandardControls/Resources/icon-144.png b/StandardControls/StandardControls/Resources/icon-144.png deleted file mode 100644 index 0e17a295d..000000000 Binary files a/StandardControls/StandardControls/Resources/icon-144.png and /dev/null differ diff --git a/StandardControls/StandardControls/Resources/icon-29.png b/StandardControls/StandardControls/Resources/icon-29.png deleted file mode 100644 index 9cbe18993..000000000 Binary files a/StandardControls/StandardControls/Resources/icon-29.png and /dev/null differ diff --git a/StandardControls/StandardControls/Resources/icon-50.png b/StandardControls/StandardControls/Resources/icon-50.png deleted file mode 100644 index 7199467b7..000000000 Binary files a/StandardControls/StandardControls/Resources/icon-50.png and /dev/null differ diff --git a/StandardControls/StandardControls/Resources/icon-57.png b/StandardControls/StandardControls/Resources/icon-57.png deleted file mode 100644 index af8016ccb..000000000 Binary files a/StandardControls/StandardControls/Resources/icon-57.png and /dev/null differ diff --git a/StandardControls/StandardControls/Resources/icon-58.png b/StandardControls/StandardControls/Resources/icon-58.png deleted file mode 100644 index e33ac58c6..000000000 Binary files a/StandardControls/StandardControls/Resources/icon-58.png and /dev/null differ diff --git a/StandardControls/StandardControls/Resources/icon-72.png b/StandardControls/StandardControls/Resources/icon-72.png deleted file mode 100644 index 0efca0711..000000000 Binary files a/StandardControls/StandardControls/Resources/icon-72.png and /dev/null differ diff --git a/StandardControls/StandardControls/Screens/iPad/ActionSheets/ActionSheets_iPad.xib b/StandardControls/StandardControls/Screens/iPad/ActionSheets/ActionSheets_iPad.xib deleted file mode 100755 index 063ed8080..000000000 --- a/StandardControls/StandardControls/Screens/iPad/ActionSheets/ActionSheets_iPad.xib +++ /dev/null @@ -1,289 +0,0 @@ - - - - 768 - 10D573 - 786 - 1038.29 - 460.00 - - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - 112 - - - YES - - - - YES - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - YES - - YES - - - YES - - - - YES - - IBFilesOwner - IBIPadFramework - - - IBFirstResponder - IBIPadFramework - - - - 292 - - YES - - - 292 - {{20, 20}, {280, 37}} - - NO - IBIPadFramework - 0 - 0 - - Helvetica-Bold - 15 - 16 - - 1 - Simple Delete/Cancel Action Sheet - - 3 - MQA - - - 1 - MC4xOTYwNzg0MzQ2IDAuMzA5ODAzOTMyOSAwLjUyMTU2ODY1NgA - - - 3 - MC41AA - - - - - 292 - {{20, 65}, {280, 37}} - - NO - IBIPadFramework - 0 - 0 - - 1 - Action Sheet with Other Buttons - - - 1 - MC4xOTYwNzg0MzQ2IDAuMzA5ODAzOTMyOSAwLjUyMTU2ODY1NgA - - - - - {768, 1004} - - - 3 - MQA - - 2 - - - - 2 - - IBIPadFramework - - - - - YES - - - view - - - - 7 - - - - btnActionSheetWithOtherButtons - - - - 10 - - - - btnSimpleActionSheet - - - - 11 - - - - - YES - - 0 - - - - - - 1 - - - YES - - - - - - - -1 - - - File's Owner - - - -2 - - - - - 8 - - - - - 9 - - - - - - - YES - - YES - -1.CustomClassName - -2.CustomClassName - 1.IBEditorWindowLastContentRect - 1.IBLastUsedUIStatusBarStylesToTargetRuntimesMap - 1.IBPluginDependency - 8.IBPluginDependency - 9.IBPluginDependency - - - YES - ActionSheets_iPad - UIResponder - {{357, 0}, {783, 856}} - - IBCocoaTouchFramework - - - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - - YES - - - YES - - - - - YES - - - YES - - - - 11 - - - - YES - - ActionSheets_iPad - - YES - - YES - btnActionSheetWithOtherButtons - btnSimpleActionSheet - view - - - YES - id - id - id - - - - YES - - YES - btnActionSheetWithOtherButtons - btnSimpleActionSheet - view - - - YES - - btnActionSheetWithOtherButtons - id - - - btnSimpleActionSheet - id - - - view - id - - - - - IBUserSource - - - - - - 0 - IBIPadFramework - - com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS - - - - com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3 - - - YES - - 3 - 112 - - diff --git a/StandardControls/StandardControls/Screens/iPad/ActionSheets/ActionSheets_iPad.xib.cs b/StandardControls/StandardControls/Screens/iPad/ActionSheets/ActionSheets_iPad.xib.cs deleted file mode 100755 index 4b103ec3b..000000000 --- a/StandardControls/StandardControls/Screens/iPad/ActionSheets/ActionSheets_iPad.xib.cs +++ /dev/null @@ -1,71 +0,0 @@ - -using System; -using System.Collections.Generic; -using System.Linq; -using MonoTouch.Foundation; -using MonoTouch.UIKit; - -namespace Example_StandardControls.Screens.iPad.ActionSheets -{ - public partial class ActionSheets_iPad : UIViewController - { - UIActionSheet actionSheet; - - #region Constructors - - // The IntPtr and initWithCoder constructors are required for controllers that need - // to be able to be created from a xib rather than from managed code - - public ActionSheets_iPad (IntPtr handle) : base(handle) - { - Initialize (); - } - - [Export("initWithCoder:")] - public ActionSheets_iPad (NSCoder coder) : base(coder) - { - Initialize (); - } - - public ActionSheets_iPad () : base("ActionSheets_iPad", null) - { - Initialize (); - } - - void Initialize () - { - } - - #endregion - - public override void ViewDidLoad () - { - base.ViewDidLoad (); - - Title = "Action Sheets"; - - btnSimpleActionSheet.TouchUpInside += HandleBtnSimpleActionSheetTouchUpInside; - btnActionSheetWithOtherButtons.TouchUpInside += HandleBtnActionSheetWithOtherButtonsTouchUpInside; - } - - protected void HandleBtnSimpleActionSheetTouchUpInside (object sender, EventArgs e) - { - // create an action sheet using the qualified constructor - actionSheet = new UIActionSheet ("simple action sheet", null, "cancel", "delete", null); - actionSheet.Clicked += delegate(object a, UIButtonEventArgs b) { Console.WriteLine ("Button " + b.ButtonIndex.ToString () + " clicked"); }; - actionSheet.ShowInView (View); - } - - protected void HandleBtnActionSheetWithOtherButtonsTouchUpInside (object sender, EventArgs e) - { - actionSheet = new UIActionSheet ("action sheet with other buttons"); - actionSheet.AddButton ("delete"); - actionSheet.AddButton ("a different option!"); - actionSheet.AddButton ("another option"); - actionSheet.DestructiveButtonIndex = 0; - actionSheet.Clicked += delegate(object a, UIButtonEventArgs b) { Console.WriteLine ("Button " + b.ButtonIndex.ToString () + " clicked"); }; - actionSheet.ShowInView (View); - } - } -} - diff --git a/StandardControls/StandardControls/Screens/iPad/ActionSheets/ActionSheets_iPad.xib.designer.cs b/StandardControls/StandardControls/Screens/iPad/ActionSheets/ActionSheets_iPad.xib.designer.cs deleted file mode 100755 index 4af257c7a..000000000 --- a/StandardControls/StandardControls/Screens/iPad/ActionSheets/ActionSheets_iPad.xib.designer.cs +++ /dev/null @@ -1,61 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Mono Runtime Version: 2.0.50727.1433 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -namespace Example_StandardControls.Screens.iPad.ActionSheets { - - - // Base type probably should be MonoTouch.UIKit.UIViewController or subclass - [MonoTouch.Foundation.Register("ActionSheets_iPad")] - public partial class ActionSheets_iPad { - - private MonoTouch.UIKit.UIView __mt_view; - - private MonoTouch.UIKit.UIButton __mt_btnActionSheetWithOtherButtons; - - private MonoTouch.UIKit.UIButton __mt_btnSimpleActionSheet; - - #pragma warning disable 0169 - [MonoTouch.Foundation.Connect("view")] - private MonoTouch.UIKit.UIView view { - get { - this.__mt_view = ((MonoTouch.UIKit.UIView)(this.GetNativeField("view"))); - return this.__mt_view; - } - set { - this.__mt_view = value; - this.SetNativeField("view", value); - } - } - - [MonoTouch.Foundation.Connect("btnActionSheetWithOtherButtons")] - private MonoTouch.UIKit.UIButton btnActionSheetWithOtherButtons { - get { - this.__mt_btnActionSheetWithOtherButtons = ((MonoTouch.UIKit.UIButton)(this.GetNativeField("btnActionSheetWithOtherButtons"))); - return this.__mt_btnActionSheetWithOtherButtons; - } - set { - this.__mt_btnActionSheetWithOtherButtons = value; - this.SetNativeField("btnActionSheetWithOtherButtons", value); - } - } - - [MonoTouch.Foundation.Connect("btnSimpleActionSheet")] - private MonoTouch.UIKit.UIButton btnSimpleActionSheet { - get { - this.__mt_btnSimpleActionSheet = ((MonoTouch.UIKit.UIButton)(this.GetNativeField("btnSimpleActionSheet"))); - return this.__mt_btnSimpleActionSheet; - } - set { - this.__mt_btnSimpleActionSheet = value; - this.SetNativeField("btnSimpleActionSheet", value); - } - } - } -} diff --git a/StandardControls/StandardControls/Screens/iPad/DatePicker/ActionSheetDatePicker_iPad.xib b/StandardControls/StandardControls/Screens/iPad/DatePicker/ActionSheetDatePicker_iPad.xib deleted file mode 100755 index 4a4e9f8c4..000000000 --- a/StandardControls/StandardControls/Screens/iPad/DatePicker/ActionSheetDatePicker_iPad.xib +++ /dev/null @@ -1,295 +0,0 @@ - - - - 768 - 10F569 - 786 - 1038.29 - 461.00 - - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - 112 - - - YES - - - - YES - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - YES - - YES - - - YES - - - - YES - - IBFilesOwner - IBIPadFramework - - - IBFirstResponder - IBIPadFramework - - - - 292 - - YES - - - 292 - {{242, 63}, {280, 37}} - - NO - IBIPadFramework - 0 - 0 - - Helvetica-Bold - 15 - 16 - - 1 - Choose Date - - 3 - MQA - - - 1 - MC4xOTYwNzg0MzQ2IDAuMzA5ODAzOTMyOSAwLjUyMTU2ODY1NgA - - - 3 - MC41AA - - - - - 292 - {{242, 108}, {280, 43}} - - NO - YES - 7 - NO - IBIPadFramework - Date - - Helvetica - 25 - 16 - - - 2 - MC40NjY2NjY2OTg1IDAuMzYwNzg0MzIyIDAuMjU4ODIzNTQzOAA - - - 1 - 10 - 1 - - - {768, 1004} - - - 3 - MQA - - 2 - - - - 2 - - IBIPadFramework - - - - - YES - - - view - - - - 7 - - - - btnChooseDate - - - - 10 - - - - lblDate - - - - 11 - - - - - YES - - 0 - - - - - - 1 - - - YES - - - - - - - -1 - - - File's Owner - - - -2 - - - - - 8 - - - - - 9 - - - - - - - YES - - YES - -1.CustomClassName - -2.CustomClassName - 1.IBEditorWindowLastContentRect - 1.IBLastUsedUIStatusBarStylesToTargetRuntimesMap - 1.IBPluginDependency - 8.IBPluginDependency - 9.IBPluginDependency - - - YES - ActionSheetDatePicker_iPad - UIResponder - {{357, 33}, {768, 1024}} - - IBCocoaTouchFramework - - - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - - YES - - - YES - - - - - YES - - - YES - - - - 11 - - - - YES - - ActionSheetDatePicker_iPad - - YES - - YES - btnChooseDate - lblDate - view - - - YES - id - id - id - - - - YES - - YES - btnChooseDate - lblDate - view - - - YES - - btnChooseDate - id - - - lblDate - id - - - view - id - - - - - IBUserSource - - - - - - 0 - IBIPadFramework - - com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS - - - - com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3 - - - YES - - 3 - 112 - - diff --git a/StandardControls/StandardControls/Screens/iPad/DatePicker/ActionSheetDatePicker_iPad.xib.cs b/StandardControls/StandardControls/Screens/iPad/DatePicker/ActionSheetDatePicker_iPad.xib.cs deleted file mode 100755 index 00b4407f1..000000000 --- a/StandardControls/StandardControls/Screens/iPad/DatePicker/ActionSheetDatePicker_iPad.xib.cs +++ /dev/null @@ -1,73 +0,0 @@ - -using System; -using System.Collections.Generic; -using System.Linq; -using MonoTouch.Foundation; -using MonoTouch.UIKit; -using Example_StandardControls.Controls; - -namespace Example_StandardControls.Screens.iPad.DatePicker -{ - public partial class ActionSheetDatePicker_iPad : UIViewController - { - - ActionSheetDatePicker actionSheetDatePicker; - ActionSheetDatePicker actionSheetTimerPicker; - - #region Constructors - - // The IntPtr and initWithCoder constructors are required for controllers that need - // to be able to be created from a xib rather than from managed code - - public ActionSheetDatePicker_iPad (IntPtr handle) : base(handle) - { - Initialize (); - } - - [Export("initWithCoder:")] - public ActionSheetDatePicker_iPad (NSCoder coder) : base(coder) - { - Initialize (); - } - - public ActionSheetDatePicker_iPad () : base("ActionSheetDatePicker_iPad", null) - { - Initialize (); - } - - void Initialize () - { - } - - #endregion - - public override void ViewDidLoad () - { - base.ViewDidLoad (); - - this.Title = "Date Picker"; - - // setup our custom action sheet date picker - actionSheetDatePicker = new ActionSheetDatePicker (this.View); - actionSheetDatePicker.Title = "Choose Date:"; - actionSheetDatePicker.DatePicker.ValueChanged += Handle_actionSheetDatePickerDatePickerValueChanged; - actionSheetDatePicker.DatePicker.Mode = UIDatePickerMode.DateAndTime; - actionSheetDatePicker.DatePicker.MinimumDate = DateTime.Today.AddDays (-7); - actionSheetDatePicker.DatePicker.MaximumDate = DateTime.Today.AddDays (7); - this.btnChooseDate.TouchUpInside += (s, e) => { actionSheetDatePicker.Show (); }; - - // setup our countdown timer - actionSheetTimerPicker = new ActionSheetDatePicker (this.View); - actionSheetTimerPicker.Title = "Choose Time:"; - actionSheetTimerPicker.DatePicker.Mode = UIDatePickerMode.CountDownTimer; - } - - protected void Handle_actionSheetDatePickerDatePickerValueChanged (object sender, EventArgs e) - { - this.lblDate.Text = (sender as UIDatePicker).Date.ToString (); - } - - - } -} - diff --git a/StandardControls/StandardControls/Screens/iPad/DatePicker/ActionSheetDatePicker_iPad.xib.designer.cs b/StandardControls/StandardControls/Screens/iPad/DatePicker/ActionSheetDatePicker_iPad.xib.designer.cs deleted file mode 100755 index 6c5e9648a..000000000 --- a/StandardControls/StandardControls/Screens/iPad/DatePicker/ActionSheetDatePicker_iPad.xib.designer.cs +++ /dev/null @@ -1,61 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Mono Runtime Version: 2.0.50727.1433 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -namespace Example_StandardControls.Screens.iPad.DatePicker { - - - // Base type probably should be MonoTouch.UIKit.UIViewController or subclass - [MonoTouch.Foundation.Register("ActionSheetDatePicker_iPad")] - public partial class ActionSheetDatePicker_iPad { - - private MonoTouch.UIKit.UIView __mt_view; - - private MonoTouch.UIKit.UIButton __mt_btnChooseDate; - - private MonoTouch.UIKit.UILabel __mt_lblDate; - - #pragma warning disable 0169 - [MonoTouch.Foundation.Connect("view")] - private MonoTouch.UIKit.UIView view { - get { - this.__mt_view = ((MonoTouch.UIKit.UIView)(this.GetNativeField("view"))); - return this.__mt_view; - } - set { - this.__mt_view = value; - this.SetNativeField("view", value); - } - } - - [MonoTouch.Foundation.Connect("btnChooseDate")] - private MonoTouch.UIKit.UIButton btnChooseDate { - get { - this.__mt_btnChooseDate = ((MonoTouch.UIKit.UIButton)(this.GetNativeField("btnChooseDate"))); - return this.__mt_btnChooseDate; - } - set { - this.__mt_btnChooseDate = value; - this.SetNativeField("btnChooseDate", value); - } - } - - [MonoTouch.Foundation.Connect("lblDate")] - private MonoTouch.UIKit.UILabel lblDate { - get { - this.__mt_lblDate = ((MonoTouch.UIKit.UILabel)(this.GetNativeField("lblDate"))); - return this.__mt_lblDate; - } - set { - this.__mt_lblDate = value; - this.SetNativeField("lblDate", value); - } - } - } -} diff --git a/StandardControls/StandardControls/Screens/iPad/DatePicker/DatePickerSimple_iPad.xib b/StandardControls/StandardControls/Screens/iPad/DatePicker/DatePickerSimple_iPad.xib deleted file mode 100755 index 83f287fca..000000000 --- a/StandardControls/StandardControls/Screens/iPad/DatePicker/DatePickerSimple_iPad.xib +++ /dev/null @@ -1,304 +0,0 @@ - - - - 768 - 10F569 - 786 - 1038.29 - 461.00 - - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - 112 - - - YES - - - - YES - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - YES - - YES - - - YES - - - - YES - - IBFilesOwner - IBIPadFramework - - - IBFirstResponder - IBIPadFramework - - - - 292 - - YES - - - 290 - {{0, 788}, {768, 216}} - - IBIPadFramework - 0 - 0 - - en_US - - - America/Los_Angeles - - VFppZgAAAAAAAAAAAAAAAAAAAAAAAAAEAAAABAAAAAAAAAC5AAAABAAAABCepkign7sVkKCGKqChmveQ -y4kaoNIj9HDSYSYQ1v50INiArZDa/tGg28CQENzes6DdqayQ3r6VoN+JjpDgnneg4WlwkOJ+WaDjSVKQ -5F47oOUpNJDmR1gg5xJREOgnOiDo8jMQ6gccIOrSFRDr5v4g7LH3EO3G4CDukdkQ76/8oPBxuxDxj96g -8n/BkPNvwKD0X6OQ9U+ioPY/hZD3L4Sg+CiiEPkPZqD6CIQQ+viDIPvoZhD82GUg/chIEP64RyD/qCoQ -AJgpIAGIDBACeAsgA3EokARhJ6AFUQqQBkEJoAcw7JAHjUOgCRDOkAmtvyAK8LCQC+CvoAzZzRANwJGg -DrmvEA+priAQmZEQEYmQIBJ5cxATaXIgFFlVEBVJVCAWOTcQFyk2IBgiU5AZCRggGgI1kBryNKAb4heQ -HNIWoB3B+ZAesfigH6HbkCB2KyAhgb2QIlYNICNq2hAkNe8gJUq8ECYV0SAnKp4QJ/7toCkKgBAp3s+g -KupiECu+saAs036QLZ6ToC6zYJAvfnWgMJNCkDFnkiAycySQM0d0IDRTBpA1J1YgNjLokDcHOCA4HAUQ -OOcaIDn75xA6xvwgO9vJEDywGKA9u6sQPo/6oD+bjRBAb9ygQYSpkEJPvqBDZIuQRC+goEVEbZBF89Mg -Ry2KEEfTtSBJDWwQSbOXIErtThBLnLOgTNZqkE18laBOtkyQT1x3oFCWLpBRPFmgUnYQkFMcO6BUVfKQ -VPwdoFY11JBW5TogWB7xEFjFHCBZ/tMQWqT+IFvetRBchOAgXb6XEF5kwiBfnnkQYE3eoGGHlZBiLcCg -Y2d3kGQNoqBlR1mQZe2EoGcnO5BnzWagaQcdkGmtSKBq5v+Qa5ZlIGzQHBBtdkcgbq/+EG9WKSBwj+AQ -cTYLIHJvwhBzFe0gdE+kEHT/CaB2OMCQdt7roHgYopB4vs2gefiEkHqer6B72GaQfH6RoH24SJB+XnOg -f5gqkAABAAECAwEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEA -AQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEA -AQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEA -AQABAAEAAQAB//+dkAEA//+PgAAE//+dkAEI//+dkAEMUERUAFBTVABQV1QAUFBUAAAAAAEAAAABA - - - - 298585770.73818499 - - 5 - - - - 292 - {{244, 20}, {280, 43}} - - NO - YES - 7 - NO - IBIPadFramework - Date - - Helvetica - 25 - 16 - - - 2 - MC40NjY2NjY2OTg1IDAuMzYwNzg0MzIyIDAuMjU4ODIzNTQzOAA - - - 1 - 10 - 1 - - - {768, 1004} - - - 3 - MQA - - 2 - - - - 2 - - IBIPadFramework - - - - - YES - - - view - - - - 7 - - - - lblDate - - - - 10 - - - - pkrDate - - - - 11 - - - - - YES - - 0 - - - - - - 1 - - - YES - - - - - - - -1 - - - File's Owner - - - -2 - - - - - 8 - - - - - 9 - - - - - - - YES - - YES - -1.CustomClassName - -2.CustomClassName - 1.IBEditorWindowLastContentRect - 1.IBLastUsedUIStatusBarStylesToTargetRuntimesMap - 1.IBPluginDependency - 8.IBPluginDependency - 9.IBPluginDependency - - - YES - DatePickerSimple_iPad - UIResponder - {{476, 132}, {768, 1024}} - - IBCocoaTouchFramework - - - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - - YES - - - YES - - - - - YES - - - YES - - - - 11 - - - - YES - - DatePickerSimple_iPad - - YES - - YES - lblDate - pkrDate - view - - - YES - id - id - id - - - - YES - - YES - lblDate - pkrDate - view - - - YES - - lblDate - id - - - pkrDate - id - - - view - id - - - - - IBUserSource - - - - - - 0 - IBIPadFramework - - com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS - - - - com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3 - - - YES - - 3 - 112 - - diff --git a/StandardControls/StandardControls/Screens/iPad/DatePicker/DatePickerSimple_iPad.xib.cs b/StandardControls/StandardControls/Screens/iPad/DatePicker/DatePickerSimple_iPad.xib.cs deleted file mode 100755 index 198a92290..000000000 --- a/StandardControls/StandardControls/Screens/iPad/DatePicker/DatePickerSimple_iPad.xib.cs +++ /dev/null @@ -1,49 +0,0 @@ - -using System; -using System.Collections.Generic; -using System.Linq; -using MonoTouch.Foundation; -using MonoTouch.UIKit; - -namespace Example_StandardControls.Screens.iPad.DatePicker -{ - public partial class DatePickerSimple_iPad : UIViewController - { - #region Constructors - - // The IntPtr and initWithCoder constructors are required for controllers that need - // to be able to be created from a xib rather than from managed code - - public DatePickerSimple_iPad (IntPtr handle) : base(handle) - { - Initialize (); - } - - [Export("initWithCoder:")] - public DatePickerSimple_iPad (NSCoder coder) : base(coder) - { - Initialize (); - } - - public DatePickerSimple_iPad () : base("DatePickerSimple_iPad", null) - { - Initialize (); - } - - void Initialize () - { - } - - #endregion - - public override void ViewDidLoad () - { - base.ViewDidLoad (); - - Title = "Simple Date Picker"; - - pkrDate.ValueChanged += (s, e) => { this.lblDate.Text = (s as UIDatePicker).Date.ToString (); }; - } - } -} - diff --git a/StandardControls/StandardControls/Screens/iPad/DatePicker/DatePickerSimple_iPad.xib.designer.cs b/StandardControls/StandardControls/Screens/iPad/DatePicker/DatePickerSimple_iPad.xib.designer.cs deleted file mode 100755 index 723eac5e4..000000000 --- a/StandardControls/StandardControls/Screens/iPad/DatePicker/DatePickerSimple_iPad.xib.designer.cs +++ /dev/null @@ -1,61 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Mono Runtime Version: 2.0.50727.1433 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -namespace Example_StandardControls.Screens.iPad.DatePicker { - - - // Base type probably should be MonoTouch.UIKit.UIViewController or subclass - [MonoTouch.Foundation.Register("DatePickerSimple_iPad")] - public partial class DatePickerSimple_iPad { - - private MonoTouch.UIKit.UIView __mt_view; - - private MonoTouch.UIKit.UILabel __mt_lblDate; - - private MonoTouch.UIKit.UIDatePicker __mt_pkrDate; - - #pragma warning disable 0169 - [MonoTouch.Foundation.Connect("view")] - private MonoTouch.UIKit.UIView view { - get { - this.__mt_view = ((MonoTouch.UIKit.UIView)(this.GetNativeField("view"))); - return this.__mt_view; - } - set { - this.__mt_view = value; - this.SetNativeField("view", value); - } - } - - [MonoTouch.Foundation.Connect("lblDate")] - private MonoTouch.UIKit.UILabel lblDate { - get { - this.__mt_lblDate = ((MonoTouch.UIKit.UILabel)(this.GetNativeField("lblDate"))); - return this.__mt_lblDate; - } - set { - this.__mt_lblDate = value; - this.SetNativeField("lblDate", value); - } - } - - [MonoTouch.Foundation.Connect("pkrDate")] - private MonoTouch.UIKit.UIDatePicker pkrDate { - get { - this.__mt_pkrDate = ((MonoTouch.UIKit.UIDatePicker)(this.GetNativeField("pkrDate"))); - return this.__mt_pkrDate; - } - set { - this.__mt_pkrDate = value; - this.SetNativeField("pkrDate", value); - } - } - } -} diff --git a/StandardControls/StandardControls/Screens/iPad/Home/HomeTableViewController.cs b/StandardControls/StandardControls/Screens/iPad/Home/HomeTableViewController.cs deleted file mode 100755 index 4701b3b50..000000000 --- a/StandardControls/StandardControls/Screens/iPad/Home/HomeTableViewController.cs +++ /dev/null @@ -1,58 +0,0 @@ -using System; -using MonoTouch.UIKit; -using Xamarin.Code; -using System.Collections.Generic; - -namespace Example_StandardControls.Screens.iPad.Home -{ - public class HomeNavController : UITableViewController - { - // declare vars - List navItems = new List(); - NavItemTableSource tableSource; - - public HomeNavController () : base(UITableViewStyle.Grouped) - { - } - - public override void ViewWillAppear (bool animated) - { - base.ViewWillAppear (animated); - // hide the nav bar when this controller appears - NavigationController.SetNavigationBarHidden (true, true); - } - - public override void ViewWillDisappear (bool animated) - { - base.ViewWillDisappear (animated); - // show the nav bar when other controllers appear - NavigationController.SetNavigationBarHidden (false, true); - } - - public override void ViewDidLoad () - { - base.ViewDidLoad (); - - - // create the navigation items - NavItemGroup navGroup = new NavItemGroup ("Form Controls"); - - navGroup = new NavItemGroup ("Popups"); - navItems.Add (navGroup); - //navGroup.Items.Add (new NavItem ("Alert Views", "", typeof(AlertViews.AlertViewsScreen_iPhone))); - navGroup.Items.Add (new NavItem ("Action Sheets", "", typeof(ActionSheets.ActionSheets_iPad))); - - navGroup = new NavItemGroup ("Pickers"); - navItems.Add (navGroup); - navGroup.Items.Add (new NavItem ("Simple Date Picker", "", typeof(DatePicker.DatePickerSimple_iPad))); - //navGroup.Items.Add (new NavItem ("Action Sheet Date Picker", "", typeof(DatePicker.ActionSheetDatePicker_iPad))); - - // create a table source from our nav items - tableSource = new NavItemTableSource (NavigationController, navItems); - - // set the source on the table to our data source - base.TableView.Source = tableSource; - } - } -} - diff --git a/StandardControls/StandardControls/Screens/iPad/ScrollView/Controller.cs b/StandardControls/StandardControls/Screens/iPad/ScrollView/Controller.cs deleted file mode 100755 index 597661f15..000000000 --- a/StandardControls/StandardControls/Screens/iPad/ScrollView/Controller.cs +++ /dev/null @@ -1,31 +0,0 @@ -using System; -using MonoTouch.UIKit; -using System.Drawing; -using MonoTouch.CoreGraphics; - -namespace Example_StandardControls.Screens.iPad.ScrollView -{ - public class Controller : UIViewController - { - UIScrollView scrollView; - - #region -= constructors =- - - public Controller () : base() - { - } - - #endregion - - public override void ViewDidLoad () - { - base.ViewDidLoad (); - - // set the background color of the view to white - View.BackgroundColor = UIColor.White; - - scrollView = new UIScrollView (View.Frame); - View.AddSubview (scrollView); - } - } -} diff --git a/StandardControls/StandardControls/Screens/iPhone/ActionSheets/ActionSheets_iPhone.xib b/StandardControls/StandardControls/Screens/iPhone/ActionSheets/ActionSheets_iPhone.xib deleted file mode 100755 index 9809ea923..000000000 --- a/StandardControls/StandardControls/Screens/iPhone/ActionSheets/ActionSheets_iPhone.xib +++ /dev/null @@ -1,285 +0,0 @@ - - - - 768 - 10D573 - 786 - 1038.29 - 460.00 - - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - 112 - - - YES - - - - YES - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - YES - - YES - - - YES - - - - YES - - IBFilesOwner - IBCocoaTouchFramework - - - IBFirstResponder - IBCocoaTouchFramework - - - - 292 - - YES - - - 292 - {{20, 20}, {280, 37}} - - NO - IBCocoaTouchFramework - 0 - 0 - - Helvetica-Bold - 15 - 16 - - 1 - Simple Delete/Cancel Action Sheet - - 3 - MQA - - - 1 - MC4xOTYwNzg0MzQ2IDAuMzA5ODAzOTMyOSAwLjUyMTU2ODY1NgA - - - 3 - MC41AA - - - - - 292 - {{20, 65}, {280, 37}} - - NO - IBCocoaTouchFramework - 0 - 0 - - 1 - Action Sheet with Other Buttons - - - 1 - MC4xOTYwNzg0MzQ2IDAuMzA5ODAzOTMyOSAwLjUyMTU2ODY1NgA - - - - - {320, 416} - - - 3 - MQA - - 2 - - - - - NO - - IBCocoaTouchFramework - - - - - YES - - - view - - - - 7 - - - - btnSimpleActionSheet - - - - 9 - - - - btnActionSheetWithOtherButtons - - - - 13 - - - - - YES - - 0 - - - - - - 1 - - - YES - - - - - - - -1 - - - File's Owner - - - -2 - - - - - 8 - - - - - 12 - - - - - - - YES - - YES - -1.CustomClassName - -2.CustomClassName - 1.IBEditorWindowLastContentRect - 1.IBPluginDependency - 12.IBPluginDependency - 8.IBPluginDependency - - - YES - ActionSheets_iPhone - UIResponder - {{520, 376}, {320, 480}} - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - - YES - - - YES - - - - - YES - - - YES - - - - 13 - - - - YES - - ActionSheets_iPhone - - YES - - YES - btnActionSheetWithOtherButtons - btnSimpleActionSheet - view - - - YES - id - id - id - - - - YES - - YES - btnActionSheetWithOtherButtons - btnSimpleActionSheet - view - - - YES - - btnActionSheetWithOtherButtons - id - - - btnSimpleActionSheet - id - - - view - id - - - - - IBUserSource - - - - - - 0 - IBCocoaTouchFramework - - com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS - - - - com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3 - - - YES - - 3 - 112 - - diff --git a/StandardControls/StandardControls/Screens/iPhone/ActionSheets/ActionSheets_iPhone.xib.cs b/StandardControls/StandardControls/Screens/iPhone/ActionSheets/ActionSheets_iPhone.xib.cs deleted file mode 100755 index 5dc74779c..000000000 --- a/StandardControls/StandardControls/Screens/iPhone/ActionSheets/ActionSheets_iPhone.xib.cs +++ /dev/null @@ -1,80 +0,0 @@ - -using System; -using System.Collections.Generic; -using System.Linq; -using MonoTouch.Foundation; -using MonoTouch.UIKit; - -namespace Example_StandardControls.Screens.iPhone.ActionSheets -{ - public partial class ActionSheets_iPhone : UIViewController - { - UIActionSheet actionSheet; - - #region Constructors - - // The IntPtr and initWithCoder constructors are required for controllers that need - // to be able to be created from a xib rather than from managed code - - public ActionSheets_iPhone (IntPtr handle) : base(handle) - { - Initialize (); - } - - [Export("initWithCoder:")] - public ActionSheets_iPhone (NSCoder coder) : base(coder) - { - Initialize (); - } - - public ActionSheets_iPhone () : base("ActionSheets_iPhone", null) - { - Initialize (); - } - - void Initialize () - { - } - - #endregion - - public override void ViewDidLoad () - { - base.ViewDidLoad (); - - Title = "Action Sheets"; - - btnSimpleActionSheet.TouchUpInside += HandleBtnSimpleActionSheetTouchUpInside; - btnActionSheetWithOtherButtons.TouchUpInside += HandleBtnActionSheetWithOtherButtonsTouchUpInside; - } - - protected void HandleBtnSimpleActionSheetTouchUpInside (object sender, EventArgs e) - { - // create an action sheet using the qualified constructor - actionSheet = new UIActionSheet ("simple action sheet", null, "cancel", "delete", null); - actionSheet.Clicked += delegate(object a, UIButtonEventArgs b) { - Console.WriteLine ("Button " + b.ButtonIndex.ToString () + " clicked"); - }; - actionSheet.ShowInView (View); - } - - protected void HandleBtnActionSheetWithOtherButtonsTouchUpInside (object sender, EventArgs e) - { - actionSheet = new UIActionSheet ("action sheet with other buttons"); - actionSheet.AddButton ("delete"); - actionSheet.AddButton ("cancel"); - actionSheet.AddButton ("a different option!"); - actionSheet.AddButton ("another option"); - actionSheet.DestructiveButtonIndex = 0; - actionSheet.CancelButtonIndex = 1; - //actionSheet.FirstOtherButtonIndex = 2; - actionSheet.Clicked += delegate(object a, UIButtonEventArgs b) { - Console.WriteLine ("Button " + b.ButtonIndex.ToString () + " clicked"); - }; - actionSheet.ShowInView (View); - - } - - } -} - diff --git a/StandardControls/StandardControls/Screens/iPhone/ActionSheets/ActionSheets_iPhone.xib.designer.cs b/StandardControls/StandardControls/Screens/iPhone/ActionSheets/ActionSheets_iPhone.xib.designer.cs deleted file mode 100755 index 48eed07e1..000000000 --- a/StandardControls/StandardControls/Screens/iPhone/ActionSheets/ActionSheets_iPhone.xib.designer.cs +++ /dev/null @@ -1,61 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Mono Runtime Version: 2.0.50727.1433 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -namespace Example_StandardControls.Screens.iPhone.ActionSheets { - - - // Base type probably should be MonoTouch.UIKit.UIViewController or subclass - [MonoTouch.Foundation.Register("ActionSheets_iPhone")] - public partial class ActionSheets_iPhone { - - private MonoTouch.UIKit.UIView __mt_view; - - private MonoTouch.UIKit.UIButton __mt_btnSimpleActionSheet; - - private MonoTouch.UIKit.UIButton __mt_btnActionSheetWithOtherButtons; - - #pragma warning disable 0169 - [MonoTouch.Foundation.Connect("view")] - private MonoTouch.UIKit.UIView view { - get { - this.__mt_view = ((MonoTouch.UIKit.UIView)(this.GetNativeField("view"))); - return this.__mt_view; - } - set { - this.__mt_view = value; - this.SetNativeField("view", value); - } - } - - [MonoTouch.Foundation.Connect("btnSimpleActionSheet")] - private MonoTouch.UIKit.UIButton btnSimpleActionSheet { - get { - this.__mt_btnSimpleActionSheet = ((MonoTouch.UIKit.UIButton)(this.GetNativeField("btnSimpleActionSheet"))); - return this.__mt_btnSimpleActionSheet; - } - set { - this.__mt_btnSimpleActionSheet = value; - this.SetNativeField("btnSimpleActionSheet", value); - } - } - - [MonoTouch.Foundation.Connect("btnActionSheetWithOtherButtons")] - private MonoTouch.UIKit.UIButton btnActionSheetWithOtherButtons { - get { - this.__mt_btnActionSheetWithOtherButtons = ((MonoTouch.UIKit.UIButton)(this.GetNativeField("btnActionSheetWithOtherButtons"))); - return this.__mt_btnActionSheetWithOtherButtons; - } - set { - this.__mt_btnActionSheetWithOtherButtons = value; - this.SetNativeField("btnActionSheetWithOtherButtons", value); - } - } - } -} diff --git a/StandardControls/StandardControls/Screens/iPhone/ActivitySpinner/ActivitySpinnerScreen_iPhone.xib b/StandardControls/StandardControls/Screens/iPhone/ActivitySpinner/ActivitySpinnerScreen_iPhone.xib deleted file mode 100755 index c1f9bc52d..000000000 --- a/StandardControls/StandardControls/Screens/iPhone/ActivitySpinner/ActivitySpinnerScreen_iPhone.xib +++ /dev/null @@ -1,309 +0,0 @@ - - - - 768 - 10D573 - 786 - 1038.29 - 460.00 - - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - 112 - - - YES - - - - YES - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - YES - - YES - - - YES - - - - YES - - IBFilesOwner - IBCocoaTouchFramework - - - IBFirstResponder - IBCocoaTouchFramework - - - - 292 - - YES - - - 292 - {{271, 60}, {20, 20}} - - - 2 - MC40NjY2NjY2OTg1IDAuMzYwNzg0MzIyIDAuMjU4ODIzNTQzOAA - - NO - IBCocoaTouchFramework - NO - YES - - - - 292 - {{271, 20}, {20, 20}} - - NO - IBCocoaTouchFramework - NO - YES - 2 - - - - 292 - {{263, 99}, {37, 37}} - - NO - IBCocoaTouchFramework - NO - YES - 0 - - - - 292 - {{20, 20}, {42, 21}} - - NO - YES - 7 - NO - IBCocoaTouchFramework - Gray: - - 1 - MCAwIDAAA - - - 1 - 10 - - - - 292 - {{20, 59}, {225, 21}} - - NO - YES - 7 - NO - IBCocoaTouchFramework - White (w/Brown background): - - - 1 - 10 - - - - 292 - {{20, 107}, {98, 21}} - - NO - YES - 7 - NO - IBCocoaTouchFramework - Large White: - - - 1 - 10 - - - {320, 460} - - - 3 - MQA - - 2 - - - - IBCocoaTouchFramework - - - - - YES - - - view - - - - 7 - - - - - YES - - 0 - - - - - - 1 - - - YES - - - - - - - - - - - -1 - - - File's Owner - - - -2 - - - - - 8 - - - - - 9 - - - - - 10 - - - - - 11 - - - - - 12 - - - - - 13 - - - - - - - YES - - YES - -1.CustomClassName - -2.CustomClassName - 1.IBEditorWindowLastContentRect - 1.IBPluginDependency - 10.IBPluginDependency - 11.IBPluginDependency - 12.IBPluginDependency - 13.IBPluginDependency - 8.IBPluginDependency - 9.IBPluginDependency - - - YES - ActivitySpinnerScreen_iPhone - UIResponder - {{371, 372}, {320, 480}} - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - - YES - - - YES - - - - - YES - - - YES - - - - 13 - - - - YES - - ActivitySpinnerScreen_iPhone - - view - id - - - view - - view - id - - - - IBUserSource - - - - - - 0 - IBCocoaTouchFramework - - com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS - - - - com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3 - - - YES - - 3 - 112 - - diff --git a/StandardControls/StandardControls/Screens/iPhone/ActivitySpinner/ActivitySpinnerScreen_iPhone.xib.cs b/StandardControls/StandardControls/Screens/iPhone/ActivitySpinner/ActivitySpinnerScreen_iPhone.xib.cs deleted file mode 100755 index 4b3b27699..000000000 --- a/StandardControls/StandardControls/Screens/iPhone/ActivitySpinner/ActivitySpinnerScreen_iPhone.xib.cs +++ /dev/null @@ -1,49 +0,0 @@ - -using System; -using System.Collections.Generic; -using System.Linq; -using MonoTouch.Foundation; -using MonoTouch.UIKit; - -namespace Example_StandardControls.Screens.iPhone.ActivitySpinner -{ - public partial class ActivitySpinnerScreen_iPhone : UIViewController - { - #region Constructors - - // The IntPtr and initWithCoder constructors are required for controllers that need - // to be able to be created from a xib rather than from managed code - - public ActivitySpinnerScreen_iPhone (IntPtr handle) : base(handle) - { - Initialize (); - } - - [Export("initWithCoder:")] - public ActivitySpinnerScreen_iPhone (NSCoder coder) : base(coder) - { - Initialize (); - } - - public ActivitySpinnerScreen_iPhone () : base("ActivitySpinnerScreen_iPhone", null) - { - Initialize (); - } - - void Initialize () - { - } - - #endregion - - public override void ViewDidLoad () - { - base.ViewDidLoad (); - - Title = "Activity Spinners"; - } - - - } -} - diff --git a/StandardControls/StandardControls/Screens/iPhone/ActivitySpinner/ActivitySpinnerScreen_iPhone.xib.designer.cs b/StandardControls/StandardControls/Screens/iPhone/ActivitySpinner/ActivitySpinnerScreen_iPhone.xib.designer.cs deleted file mode 100755 index 2385c17cb..000000000 --- a/StandardControls/StandardControls/Screens/iPhone/ActivitySpinner/ActivitySpinnerScreen_iPhone.xib.designer.cs +++ /dev/null @@ -1,33 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Mono Runtime Version: 2.0.50727.1433 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -namespace Example_StandardControls.Screens.iPhone.ActivitySpinner { - - - // Base type probably should be MonoTouch.UIKit.UIViewController or subclass - [MonoTouch.Foundation.Register("ActivitySpinnerScreen_iPhone")] - public partial class ActivitySpinnerScreen_iPhone { - - private MonoTouch.UIKit.UIView __mt_view; - - #pragma warning disable 0169 - [MonoTouch.Foundation.Connect("view")] - private MonoTouch.UIKit.UIView view { - get { - this.__mt_view = ((MonoTouch.UIKit.UIView)(this.GetNativeField("view"))); - return this.__mt_view; - } - set { - this.__mt_view = value; - this.SetNativeField("view", value); - } - } - } -} diff --git a/StandardControls/StandardControls/Screens/iPhone/AlertViews/AlertViewsScreen_iPhone.xib b/StandardControls/StandardControls/Screens/iPhone/AlertViews/AlertViewsScreen_iPhone.xib deleted file mode 100755 index caae28bc6..000000000 --- a/StandardControls/StandardControls/Screens/iPhone/AlertViews/AlertViewsScreen_iPhone.xib +++ /dev/null @@ -1,369 +0,0 @@ - - - - 768 - 10D573 - 786 - 1038.29 - 460.00 - - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - 112 - - - YES - - - - YES - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - YES - - YES - - - YES - - - - YES - - IBFilesOwner - IBCocoaTouchFramework - - - IBFirstResponder - IBCocoaTouchFramework - - - - 292 - - YES - - - 292 - {{20, 20}, {280, 37}} - - NO - IBCocoaTouchFramework - 0 - 0 - - Helvetica-Bold - 15 - 16 - - 1 - Simple Alert - - 3 - MQA - - - 1 - MC4xOTYwNzg0MzQ2IDAuMzA5ODAzOTMyOSAwLjUyMTU2ODY1NgA - - - 3 - MC41AA - - - - - 292 - {{20, 65}, {280, 37}} - - NO - IBCocoaTouchFramework - 0 - 0 - - 1 - Custom Buttons - - - 1 - MC4xOTYwNzg0MzQ2IDAuMzA5ODAzOTMyOSAwLjUyMTU2ODY1NgA - - - - - - 292 - {{20, 110}, {280, 37}} - - NO - IBCocoaTouchFramework - 0 - 0 - - 1 - Custom Buttons w/Delegate - - - 1 - MC4xOTYwNzg0MzQ2IDAuMzA5ODAzOTMyOSAwLjUyMTU2ODY1NgA - - - - - - 292 - {{20, 155}, {280, 37}} - - NO - IBCocoaTouchFramework - 0 - 0 - - 1 - Custom Alert View - - - 1 - MC4xOTYwNzg0MzQ2IDAuMzA5ODAzOTMyOSAwLjUyMTU2ODY1NgA - - - - - {320, 416} - - - 3 - MQA - - 2 - - - - - NO - - IBCocoaTouchFramework - - - - - YES - - - view - - - - 7 - - - - btnCustomButtons - - - - 10 - - - - btnSimpleAlert - - - - 11 - - - - btnCustomButtonsWithDelegate - - - - 13 - - - - btnCustomAlert - - - - 15 - - - - - YES - - 0 - - - - - - 1 - - - YES - - - - - - - - - -1 - - - File's Owner - - - -2 - - - - - 8 - - - - - 9 - - - - - 12 - - - - - 14 - - - - - - - YES - - YES - -1.CustomClassName - -2.CustomClassName - 1.IBEditorWindowLastContentRect - 1.IBPluginDependency - 12.IBPluginDependency - 14.IBPluginDependency - 8.IBPluginDependency - 9.IBPluginDependency - - - YES - AlertViewsScreen_iPhone - UIResponder - {{420, 376}, {320, 480}} - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - - YES - - - YES - - - - - YES - - - YES - - - - 15 - - - - YES - - AlertViewsScreen_iPhone - - YES - - YES - btnCustomAlert - btnCustomButtons - btnCustomButtonsWithDelegate - btnSimpleAlert - view - - - YES - id - id - id - id - id - - - - YES - - YES - btnCustomAlert - btnCustomButtons - btnCustomButtonsWithDelegate - btnSimpleAlert - view - - - YES - - btnCustomAlert - id - - - btnCustomButtons - id - - - btnCustomButtonsWithDelegate - id - - - btnSimpleAlert - id - - - view - id - - - - - IBUserSource - - - - - - 0 - IBCocoaTouchFramework - - com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS - - - - com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3 - - - YES - - 3 - 112 - - diff --git a/StandardControls/StandardControls/Screens/iPhone/AlertViews/AlertViewsScreen_iPhone.xib.cs b/StandardControls/StandardControls/Screens/iPhone/AlertViews/AlertViewsScreen_iPhone.xib.cs deleted file mode 100755 index 66d7959ad..000000000 --- a/StandardControls/StandardControls/Screens/iPhone/AlertViews/AlertViewsScreen_iPhone.xib.cs +++ /dev/null @@ -1,200 +0,0 @@ - -using System; -using System.Collections.Generic; -using System.Linq; -using MonoTouch.Foundation; -using MonoTouch.UIKit; -using Example_StandardControls.Controls; -using System.Threading; - -namespace Example_StandardControls.Screens.iPhone.AlertViews -{ - public partial class AlertViewsScreen_iPhone : UIViewController - { - /// - /// This is here to keep a reference to an alert after the method that creates it - /// completes. unlike in windows, the .show() method is not blocking (with thread - /// magic that still keeps the UI unblocked), so after show() returns, the method - /// will complete and the reference to the alert (and more importantly, the alert - /// delegate will get garbage collected). - /// - UIAlertView alert; - - #region Constructors - - // The IntPtr and initWithCoder constructors are required for controllers that need - // to be able to be created from a xib rather than from managed code - - public AlertViewsScreen_iPhone (IntPtr handle) : base(handle) - { - Initialize (); - } - - [Export("initWithCoder:")] - public AlertViewsScreen_iPhone (NSCoder coder) : base(coder) - { - Initialize (); - } - - public AlertViewsScreen_iPhone () : base("AlertViewsScreen_iPhone", null) - { - Initialize (); - } - - void Initialize () - { - } - - #endregion - - public override void ViewDidLoad () - { - base.ViewDidLoad (); - - Title = "Alert Views"; - - btnSimpleAlert.TouchUpInside += HandleBtnSimpleAlertTouchUpInside; - btnCustomButtons.TouchUpInside += HandleBtnCustomButtonsTouchUpInside; - btnCustomButtonsWithDelegate.TouchUpInside += HandleBtnCustomButtonsWithDelegateTouchUpInside; - btnCustomAlert.TouchUpInside += HandleBtnCustomAlertTouchUpInside; - } - - #region -= simple alert =- - - /// - /// Runs when the simple alert button is clicked. launches a very simple alert - /// that presents an "OK" button, does not use a delegate - /// - protected void HandleBtnSimpleAlertTouchUpInside (object sender, EventArgs e) - { - UIAlertView alert = new UIAlertView () { - Title = "alert title", Message = "this is a simple alert" - }; - alert.AddButton("OK"); - alert.Show (); - - // can also use the constructor - //UIAlertView alert = new UIAlertView ("alert title", "this is a simple alert.", null - // , "OK", null); - //alert.Show(); - } - - #endregion - - #region -= custom buttons alert =- - - /// - /// - /// - protected void HandleBtnCustomButtonsTouchUpInside (object sender, EventArgs e) - { - // create an alert and add more buttons - alert = new UIAlertView () { - Title = "custom buttons alert", - Message = "this alert has custom buttons" - }; - alert.AddButton("custom button 1"); - alert.AddButton("custom button 2"); - // last button added is the 'cancel' button (index of '2') - alert.AddButton("OK"); - - // or via the constructor (note, in this method, the "ok" button will have an index of '0'): - //alert = new UIAlertView ( - // "custom buttons alert", "this alert has custom buttons" - // , null, "ok", new string[] { "custom button 1", "custom button 2" }); - - // wire up a handler for the click event - alert.Clicked += delegate(object a, UIButtonEventArgs b) { - Console.WriteLine ("Button " + b.ButtonIndex.ToString () + " clicked"); }; - alert.Show (); - } - - #endregion - - #region -= custom buttons with delegate alert =- - - /// - /// Runs when the Custom Buttons alert button is clicked. launches an alert with - /// additional buttons added - /// - protected void HandleBtnCustomButtonsWithDelegateTouchUpInside (object sender, EventArgs e) - { - string[] otherButtons = { "custom button 1", "custom button 2" }; - - alert = new UIAlertView ("custom buttons alert", "this alert has custom buttons", - new CustomButtonsAlertDelegate (), "ok", otherButtons); - alert.Show (); - } - - /// - /// This is our custom buttons alert delegate. - /// - protected class CustomButtonsAlertDelegate : UIAlertViewDelegate - { - public CustomButtonsAlertDelegate () : base() { } - - public override void Canceled (UIAlertView alertView) - { - Console.WriteLine ("Alert Cancelled"); - } - - /// - /// Runs when any of the custom buttons on the alert are clicked - /// - public override void Clicked (UIAlertView alertview, int buttonIndex) - { - Console.WriteLine ("Button " + buttonIndex.ToString () + " clicked"); - } - - /// - /// Runs right after clicked, and before Dismissed - /// - public override void WillDismiss (UIAlertView alertView, int buttonIndex) - { - Console.WriteLine ("Alert will dismiss, button " + buttonIndex.ToString ()); - } - - /// - /// Runs after Clicked - /// - public override void Dismissed (UIAlertView alertView, int buttonIndex) - { - Console.WriteLine ("Alert Dismissed, button " + buttonIndex.ToString ()); - } - } - - #endregion - - #region -= custom alert =- - - /// - /// runs when the custom alert button is pressed. shows the alert and then - /// kicks off a secondary thread that spins for 5 seconds and then closes - /// the alert - /// - protected void HandleBtnCustomAlertTouchUpInside (object sender, EventArgs e) - { - alert = new ActivityIndicatorAlertView (); - (alert as ActivityIndicatorAlertView).Message = "performing stuff"; - alert.Show (); - - Thread longRunningProc = new Thread (delegate() { - LongRunningProcess (5); - }); - longRunningProc.Start (); - } - - /// - /// spins a thread for the specified amount of time and then closes the - /// custom alert. used to simulate a long-running process - /// - protected void LongRunningProcess (int seconds) - { - Thread.Sleep (seconds * 1000); - (alert as ActivityIndicatorAlertView).Hide (true); - } - - #endregion - } -} - diff --git a/StandardControls/StandardControls/Screens/iPhone/AlertViews/AlertViewsScreen_iPhone.xib.designer.cs b/StandardControls/StandardControls/Screens/iPhone/AlertViews/AlertViewsScreen_iPhone.xib.designer.cs deleted file mode 100755 index 47cff658c..000000000 --- a/StandardControls/StandardControls/Screens/iPhone/AlertViews/AlertViewsScreen_iPhone.xib.designer.cs +++ /dev/null @@ -1,89 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Mono Runtime Version: 2.0.50727.1433 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -namespace Example_StandardControls.Screens.iPhone.AlertViews { - - - // Base type probably should be MonoTouch.UIKit.UIViewController or subclass - [MonoTouch.Foundation.Register("AlertViewsScreen_iPhone")] - public partial class AlertViewsScreen_iPhone { - - private MonoTouch.UIKit.UIView __mt_view; - - private MonoTouch.UIKit.UIButton __mt_btnCustomButtons; - - private MonoTouch.UIKit.UIButton __mt_btnSimpleAlert; - - private MonoTouch.UIKit.UIButton __mt_btnCustomButtonsWithDelegate; - - private MonoTouch.UIKit.UIButton __mt_btnCustomAlert; - - #pragma warning disable 0169 - [MonoTouch.Foundation.Connect("view")] - private MonoTouch.UIKit.UIView view { - get { - this.__mt_view = ((MonoTouch.UIKit.UIView)(this.GetNativeField("view"))); - return this.__mt_view; - } - set { - this.__mt_view = value; - this.SetNativeField("view", value); - } - } - - [MonoTouch.Foundation.Connect("btnCustomButtons")] - private MonoTouch.UIKit.UIButton btnCustomButtons { - get { - this.__mt_btnCustomButtons = ((MonoTouch.UIKit.UIButton)(this.GetNativeField("btnCustomButtons"))); - return this.__mt_btnCustomButtons; - } - set { - this.__mt_btnCustomButtons = value; - this.SetNativeField("btnCustomButtons", value); - } - } - - [MonoTouch.Foundation.Connect("btnSimpleAlert")] - private MonoTouch.UIKit.UIButton btnSimpleAlert { - get { - this.__mt_btnSimpleAlert = ((MonoTouch.UIKit.UIButton)(this.GetNativeField("btnSimpleAlert"))); - return this.__mt_btnSimpleAlert; - } - set { - this.__mt_btnSimpleAlert = value; - this.SetNativeField("btnSimpleAlert", value); - } - } - - [MonoTouch.Foundation.Connect("btnCustomButtonsWithDelegate")] - private MonoTouch.UIKit.UIButton btnCustomButtonsWithDelegate { - get { - this.__mt_btnCustomButtonsWithDelegate = ((MonoTouch.UIKit.UIButton)(this.GetNativeField("btnCustomButtonsWithDelegate"))); - return this.__mt_btnCustomButtonsWithDelegate; - } - set { - this.__mt_btnCustomButtonsWithDelegate = value; - this.SetNativeField("btnCustomButtonsWithDelegate", value); - } - } - - [MonoTouch.Foundation.Connect("btnCustomAlert")] - private MonoTouch.UIKit.UIButton btnCustomAlert { - get { - this.__mt_btnCustomAlert = ((MonoTouch.UIKit.UIButton)(this.GetNativeField("btnCustomAlert"))); - return this.__mt_btnCustomAlert; - } - set { - this.__mt_btnCustomAlert = value; - this.SetNativeField("btnCustomAlert", value); - } - } - } -} diff --git a/StandardControls/StandardControls/Screens/iPhone/Buttons/ButtonsScreen_iPhone.xib b/StandardControls/StandardControls/Screens/iPhone/Buttons/ButtonsScreen_iPhone.xib deleted file mode 100755 index 8bdf646e5..000000000 --- a/StandardControls/StandardControls/Screens/iPhone/Buttons/ButtonsScreen_iPhone.xib +++ /dev/null @@ -1,543 +0,0 @@ - - - - 768 - 11D50b - 1938 - 1138.32 - 568.00 - - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - 933 - - - YES - IBUIButton - IBUIView - IBUILabel - IBProxyObject - - - YES - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - PluginDependencyRecalculationVersion - - - - YES - - IBFilesOwner - IBCocoaTouchFramework - - - IBFirstResponder - IBCocoaTouchFramework - - - - 292 - - YES - - - 292 - {{222, 20}, {78, 37}} - - - NO - IBCocoaTouchFramework - 0 - 0 - 1 - Button! - - 3 - MQA - - - 1 - MC4xOTYwNzg0MzQ2IDAuMzA5ODAzOTMyOSAwLjUyMTU2ODY1NgA - - - 3 - MC41AA - - - Helvetica-Bold - Helvetica - 2 - 15 - - - Helvetica-Bold - 15 - 16 - - - - - 292 - {{183, 241}, {117, 47}} - - - NO - IBCocoaTouchFramework - 0 - 0 - 1 - {5, 5} - Button! - - - 2 - MC40NjY2NjY2OTg1IDAuMzYwNzg0MzIyIDAuMjU4ODIzNTQzOAA - - - - Helvetica-Bold - Helvetica - 2 - 26 - - - Helvetica-Bold - 26 - 16 - - - - - 292 - {{222, 181}, {50, 50}} - - - NO - IBCocoaTouchFramework - 0 - 0 - - - 1 - MC4xOTYwNzg0MzQ2IDAuMzA5ODAzOTMyOSAwLjUyMTU2ODY1NgA - - - - NSImage - Images/Icons/50_icon.png - - - - - - - 292 - {{250, 68}, {29, 31}} - - - NO - IBCocoaTouchFramework - 0 - 0 - 2 - - - 1 - MC4xOTYwNzg0MzQ2IDAuMzA5ODAzOTMyOSAwLjUyMTU2ODY1NgA - - - - - - - - 292 - {{256, 105}, {18, 19}} - - - NO - IBCocoaTouchFramework - 0 - 0 - 4 - YES - - - 1 - MC4xOTYwNzg0MzQ2IDAuMzA5ODAzOTMyOSAwLjUyMTU2ODY1NgA - - - - - - - - 292 - {{250, 130}, {29, 29}} - - - NO - IBCocoaTouchFramework - 0 - 0 - 5 - - - 1 - MC4xOTYwNzg0MzQ2IDAuMzA5ODAzOTMyOSAwLjUyMTU2ODY1NgA - - - - - - - - 292 - {{20, 27}, {152, 21}} - - - NO - YES - 7 - NO - IBCocoaTouchFramework - Rounded Rectangle - - 1 - MCAwIDAAA - - - 1 - 10 - - 1 - 17 - - - Helvetica - 17 - 16 - - - - - 292 - {{20, 72}, {152, 21}} - - - NO - YES - 7 - NO - IBCocoaTouchFramework - Detail Disclosure - - - 1 - 10 - - - - - - 292 - {{20, 104}, {152, 21}} - - - NO - YES - 7 - NO - IBCocoaTouchFramework - Info - - - 1 - 10 - - - - - - 292 - {{20, 133}, {152, 21}} - - - NO - YES - 7 - NO - IBCocoaTouchFramework - Add Contact - - - 1 - 10 - - - - - - 292 - {{20, 188}, {157, 21}} - - - NO - YES - 7 - NO - IBCocoaTouchFramework - Custom (with image) - - - 1 - 10 - - - - - - 292 - {{20, 221}, {155, 87}} - - - NO - YES - 7 - NO - IBCocoaTouchFramework - Rounded Rectangle (with custom font size, color, and shadow) - - - 1 - 10 - 0 - 0 - - - - - {{0, 20}, {320, 460}} - - - - 3 - MQA - - 2 - - - - IBCocoaTouchFramework - - - - - YES - - - view - - - - 7 - - - - btnOne - - - - 20 - - - - btnTwo - - - - 21 - - - - - YES - - 0 - - YES - - - - - - 1 - - - YES - - - - - - - - - - - - - - - - - -1 - - - File's Owner - - - -2 - - - - - 8 - - - - - 9 - - - - - 10 - - - - - 11 - - - - - 12 - - - - - 13 - - - - - 14 - - - - - 15 - - - - - 16 - - - - - 17 - - - - - 18 - - - - - 19 - - - - - - - YES - - YES - -1.CustomClassName - -1.IBPluginDependency - -2.CustomClassName - -2.IBPluginDependency - 1.IBPluginDependency - 10.IBPluginDependency - 11.IBPluginDependency - 12.IBPluginDependency - 13.IBPluginDependency - 14.IBPluginDependency - 15.IBPluginDependency - 16.IBPluginDependency - 17.IBPluginDependency - 18.IBPluginDependency - 19.IBPluginDependency - 8.IBPluginDependency - 9.IBPluginDependency - - - YES - ButtonsScreen_iPhone - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - UIResponder - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - - YES - - - - - - YES - - - - - 21 - - - 0 - IBCocoaTouchFramework - - com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS - - - - com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3 - - - YES - 3 - - Images/Icons/50_icon.png - {16, 16} - - 933 - - diff --git a/StandardControls/StandardControls/Screens/iPhone/Buttons/ButtonsScreen_iPhone.xib.cs b/StandardControls/StandardControls/Screens/iPhone/Buttons/ButtonsScreen_iPhone.xib.cs deleted file mode 100755 index 8e221719c..000000000 --- a/StandardControls/StandardControls/Screens/iPhone/Buttons/ButtonsScreen_iPhone.xib.cs +++ /dev/null @@ -1,60 +0,0 @@ - -using System; -using System.Collections.Generic; -using System.Linq; -using MonoTouch.Foundation; -using MonoTouch.UIKit; - -namespace Example_StandardControls.Screens.iPhone.Buttons -{ - public partial class ButtonsScreen_iPhone : UIViewController - { - #region Constructors - - // The IntPtr and initWithCoder constructors are required for controllers that need - // to be able to be created from a xib rather than from managed code - - public ButtonsScreen_iPhone (IntPtr handle) : base(handle) - { - Initialize (); - } - - [Export("initWithCoder:")] - public ButtonsScreen_iPhone (NSCoder coder) : base(coder) - { - Initialize (); - } - - public ButtonsScreen_iPhone () : base("ButtonsScreen_iPhone", null) - { - Initialize (); - } - - void Initialize () - { - } - - #endregion - - public override void ViewDidLoad () - { - base.ViewDidLoad (); - this.Title = "Buttons"; - - this.btnOne.TouchUpInside += HandleBtnOneTouchUpInside; - this.btnTwo.TouchUpInside += delegate { - new UIAlertView ("button two click!", "TouchUpInside Handled", null, "OK", null).Show (); - }; - - UIButton button = UIButton.FromType (UIButtonType.RoundedRect); - button.SetTitle ("My Button", UIControlState.Normal); - } - - protected void HandleBtnOneTouchUpInside (object sender, EventArgs e) - { - new UIAlertView ("button one click!", "TouchUpInside Handled", null, "OK", null).Show(); - } - - } -} - diff --git a/StandardControls/StandardControls/Screens/iPhone/Buttons/ButtonsScreen_iPhone.xib.designer.cs b/StandardControls/StandardControls/Screens/iPhone/Buttons/ButtonsScreen_iPhone.xib.designer.cs deleted file mode 100755 index 047aa91e1..000000000 --- a/StandardControls/StandardControls/Screens/iPhone/Buttons/ButtonsScreen_iPhone.xib.designer.cs +++ /dev/null @@ -1,61 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Mono Runtime Version: 2.0.50727.1433 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -namespace Example_StandardControls.Screens.iPhone.Buttons { - - - // Base type probably should be MonoTouch.UIKit.UIViewController or subclass - [MonoTouch.Foundation.Register("ButtonsScreen_iPhone")] - public partial class ButtonsScreen_iPhone { - - private MonoTouch.UIKit.UIView __mt_view; - - private MonoTouch.UIKit.UIButton __mt_btnOne; - - private MonoTouch.UIKit.UIButton __mt_btnTwo; - - #pragma warning disable 0169 - [MonoTouch.Foundation.Connect("view")] - private MonoTouch.UIKit.UIView view { - get { - this.__mt_view = ((MonoTouch.UIKit.UIView)(this.GetNativeField("view"))); - return this.__mt_view; - } - set { - this.__mt_view = value; - this.SetNativeField("view", value); - } - } - - [MonoTouch.Foundation.Connect("btnOne")] - private MonoTouch.UIKit.UIButton btnOne { - get { - this.__mt_btnOne = ((MonoTouch.UIKit.UIButton)(this.GetNativeField("btnOne"))); - return this.__mt_btnOne; - } - set { - this.__mt_btnOne = value; - this.SetNativeField("btnOne", value); - } - } - - [MonoTouch.Foundation.Connect("btnTwo")] - private MonoTouch.UIKit.UIButton btnTwo { - get { - this.__mt_btnTwo = ((MonoTouch.UIKit.UIButton)(this.GetNativeField("btnTwo"))); - return this.__mt_btnTwo; - } - set { - this.__mt_btnTwo = value; - this.SetNativeField("btnTwo", value); - } - } - } -} diff --git a/StandardControls/StandardControls/Screens/iPhone/DatePicker/DatePickerSimple_iPhone.xib b/StandardControls/StandardControls/Screens/iPhone/DatePicker/DatePickerSimple_iPhone.xib deleted file mode 100755 index d6c2797b1..000000000 --- a/StandardControls/StandardControls/Screens/iPhone/DatePicker/DatePickerSimple_iPhone.xib +++ /dev/null @@ -1,300 +0,0 @@ - - - - 768 - 10F569 - 786 - 1038.29 - 461.00 - - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - 112 - - - YES - - - - YES - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - YES - - YES - - - YES - - - - YES - - IBFilesOwner - IBCocoaTouchFramework - - - IBFirstResponder - IBCocoaTouchFramework - - - - 292 - - YES - - - 292 - {{20, 20}, {280, 43}} - - NO - YES - 7 - NO - IBCocoaTouchFramework - Date - - Helvetica - 25 - 16 - - - 2 - MC40NjY2NjY2OTg1IDAuMzYwNzg0MzIyIDAuMjU4ODIzNTQzOAA - - - 1 - 10 - 1 - - - - 290 - {{0, 200}, {320, 216}} - - IBCocoaTouchFramework - 0 - 0 - - en_US - - - America/Los_Angeles - - VFppZgAAAAAAAAAAAAAAAAAAAAAAAAAEAAAABAAAAAAAAAC5AAAABAAAABCepkign7sVkKCGKqChmveQ -y4kaoNIj9HDSYSYQ1v50INiArZDa/tGg28CQENzes6DdqayQ3r6VoN+JjpDgnneg4WlwkOJ+WaDjSVKQ -5F47oOUpNJDmR1gg5xJREOgnOiDo8jMQ6gccIOrSFRDr5v4g7LH3EO3G4CDukdkQ76/8oPBxuxDxj96g -8n/BkPNvwKD0X6OQ9U+ioPY/hZD3L4Sg+CiiEPkPZqD6CIQQ+viDIPvoZhD82GUg/chIEP64RyD/qCoQ -AJgpIAGIDBACeAsgA3EokARhJ6AFUQqQBkEJoAcw7JAHjUOgCRDOkAmtvyAK8LCQC+CvoAzZzRANwJGg -DrmvEA+priAQmZEQEYmQIBJ5cxATaXIgFFlVEBVJVCAWOTcQFyk2IBgiU5AZCRggGgI1kBryNKAb4heQ -HNIWoB3B+ZAesfigH6HbkCB2KyAhgb2QIlYNICNq2hAkNe8gJUq8ECYV0SAnKp4QJ/7toCkKgBAp3s+g -KupiECu+saAs036QLZ6ToC6zYJAvfnWgMJNCkDFnkiAycySQM0d0IDRTBpA1J1YgNjLokDcHOCA4HAUQ -OOcaIDn75xA6xvwgO9vJEDywGKA9u6sQPo/6oD+bjRBAb9ygQYSpkEJPvqBDZIuQRC+goEVEbZBF89Mg -Ry2KEEfTtSBJDWwQSbOXIErtThBLnLOgTNZqkE18laBOtkyQT1x3oFCWLpBRPFmgUnYQkFMcO6BUVfKQ -VPwdoFY11JBW5TogWB7xEFjFHCBZ/tMQWqT+IFvetRBchOAgXb6XEF5kwiBfnnkQYE3eoGGHlZBiLcCg -Y2d3kGQNoqBlR1mQZe2EoGcnO5BnzWagaQcdkGmtSKBq5v+Qa5ZlIGzQHBBtdkcgbq/+EG9WKSBwj+AQ -cTYLIHJvwhBzFe0gdE+kEHT/CaB2OMCQdt7roHgYopB4vs2gefiEkHqer6B72GaQfH6RoH24SJB+XnOg -f5gqkAABAAECAwEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEA -AQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEA -AQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEA -AQABAAEAAQAB//+dkAEA//+PgAAE//+dkAEI//+dkAEMUERUAFBTVABQV1QAUFBUAAAAAAEAAAABA - - - - 298527906.52390099 - - 5 - - - {320, 416} - - - 3 - MQA - - 2 - - - - - NO - - IBCocoaTouchFramework - - - - - YES - - - view - - - - 7 - - - - lblDate - - - - 10 - - - - pkrDate - - - - 11 - - - - - YES - - 0 - - - - - - 1 - - - YES - - - - - - - -1 - - - File's Owner - - - -2 - - - - - 8 - - - - - 9 - - - - - - - YES - - YES - -1.CustomClassName - -2.CustomClassName - 1.IBEditorWindowLastContentRect - 1.IBPluginDependency - 8.IBPluginDependency - 9.IBPluginDependency - - - YES - DatePickerSimple_iPhone - UIResponder - {{357, 275}, {320, 480}} - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - - YES - - - YES - - - - - YES - - - YES - - - - 11 - - - - YES - - DatePickerSimple_iPhone - - YES - - YES - lblDate - pkrDate - view - - - YES - id - id - id - - - - YES - - YES - lblDate - pkrDate - view - - - YES - - lblDate - id - - - pkrDate - id - - - view - id - - - - - IBUserSource - - - - - - 0 - IBCocoaTouchFramework - - com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS - - - - com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3 - - - YES - - 3 - 112 - - diff --git a/StandardControls/StandardControls/Screens/iPhone/DatePicker/DatePickerSimple_iPhone.xib.cs b/StandardControls/StandardControls/Screens/iPhone/DatePicker/DatePickerSimple_iPhone.xib.cs deleted file mode 100755 index 3d680a3e9..000000000 --- a/StandardControls/StandardControls/Screens/iPhone/DatePicker/DatePickerSimple_iPhone.xib.cs +++ /dev/null @@ -1,50 +0,0 @@ - -using System; -using System.Collections.Generic; -using System.Linq; -using MonoTouch.Foundation; -using MonoTouch.UIKit; - -namespace Example_StandardControls.Screens.iPhone.DatePicker -{ - public partial class DatePickerSimple_iPhone : UIViewController - { - #region Constructors - - // The IntPtr and initWithCoder constructors are required for controllers that need - // to be able to be created from a xib rather than from managed code - - public DatePickerSimple_iPhone (IntPtr handle) : base(handle) - { - Initialize (); - } - - [Export("initWithCoder:")] - public DatePickerSimple_iPhone (NSCoder coder) : base(coder) - { - Initialize (); - } - - public DatePickerSimple_iPhone () : base("DatePickerSimple_iPhone", null) - { - Initialize (); - } - - void Initialize () - { - } - - #endregion - - public override void ViewDidLoad () - { - base.ViewDidLoad (); - - Title = "Simple Date Picker"; - - pkrDate.ValueChanged += (s, e) => { this.lblDate.Text = (s as UIDatePicker).Date.ToString (); }; - } - - } -} - diff --git a/StandardControls/StandardControls/Screens/iPhone/DatePicker/DatePickerSimple_iPhone.xib.designer.cs b/StandardControls/StandardControls/Screens/iPhone/DatePicker/DatePickerSimple_iPhone.xib.designer.cs deleted file mode 100755 index 770f65ae8..000000000 --- a/StandardControls/StandardControls/Screens/iPhone/DatePicker/DatePickerSimple_iPhone.xib.designer.cs +++ /dev/null @@ -1,61 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Mono Runtime Version: 2.0.50727.1433 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -namespace Example_StandardControls.Screens.iPhone.DatePicker { - - - // Base type probably should be MonoTouch.UIKit.UIViewController or subclass - [MonoTouch.Foundation.Register("DatePickerSimple_iPhone")] - public partial class DatePickerSimple_iPhone { - - private MonoTouch.UIKit.UIView __mt_view; - - private MonoTouch.UIKit.UILabel __mt_lblDate; - - private MonoTouch.UIKit.UIDatePicker __mt_pkrDate; - - #pragma warning disable 0169 - [MonoTouch.Foundation.Connect("view")] - private MonoTouch.UIKit.UIView view { - get { - this.__mt_view = ((MonoTouch.UIKit.UIView)(this.GetNativeField("view"))); - return this.__mt_view; - } - set { - this.__mt_view = value; - this.SetNativeField("view", value); - } - } - - [MonoTouch.Foundation.Connect("lblDate")] - private MonoTouch.UIKit.UILabel lblDate { - get { - this.__mt_lblDate = ((MonoTouch.UIKit.UILabel)(this.GetNativeField("lblDate"))); - return this.__mt_lblDate; - } - set { - this.__mt_lblDate = value; - this.SetNativeField("lblDate", value); - } - } - - [MonoTouch.Foundation.Connect("pkrDate")] - private MonoTouch.UIKit.UIDatePicker pkrDate { - get { - this.__mt_pkrDate = ((MonoTouch.UIKit.UIDatePicker)(this.GetNativeField("pkrDate"))); - return this.__mt_pkrDate; - } - set { - this.__mt_pkrDate = value; - this.SetNativeField("pkrDate", value); - } - } - } -} diff --git a/StandardControls/StandardControls/Screens/iPhone/DatePicker/DatePicker_iPhone.xib b/StandardControls/StandardControls/Screens/iPhone/DatePicker/DatePicker_iPhone.xib deleted file mode 100755 index cc66201d6..000000000 --- a/StandardControls/StandardControls/Screens/iPhone/DatePicker/DatePicker_iPhone.xib +++ /dev/null @@ -1,291 +0,0 @@ - - - - 768 - 10F569 - 786 - 1038.29 - 461.00 - - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - 112 - - - YES - - - - YES - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - YES - - YES - - - YES - - - - YES - - IBFilesOwner - IBCocoaTouchFramework - - - IBFirstResponder - IBCocoaTouchFramework - - - - 292 - - YES - - - 292 - {{20, 20}, {280, 37}} - - NO - IBCocoaTouchFramework - 0 - 0 - - Helvetica-Bold - 15 - 16 - - 1 - Choose Date - - 3 - MQA - - - 1 - MC4xOTYwNzg0MzQ2IDAuMzA5ODAzOTMyOSAwLjUyMTU2ODY1NgA - - - 3 - MC41AA - - - - - 292 - {{20, 65}, {280, 43}} - - NO - YES - 7 - NO - IBCocoaTouchFramework - Date - - Helvetica - 25 - 16 - - - 2 - MC40NjY2NjY2OTg1IDAuMzYwNzg0MzIyIDAuMjU4ODIzNTQzOAA - - - 1 - 10 - 1 - - - {320, 416} - - - 3 - MQA - - 2 - - - - - NO - - IBCocoaTouchFramework - - - - - YES - - - view - - - - 7 - - - - btnChooseDate - - - - 11 - - - - lblDate - - - - 12 - - - - - YES - - 0 - - - - - - 1 - - - YES - - - - - - - -1 - - - File's Owner - - - -2 - - - - - 8 - - - - - 9 - - - - - - - YES - - YES - -1.CustomClassName - -2.CustomClassName - 1.IBEditorWindowLastContentRect - 1.IBPluginDependency - 8.IBPluginDependency - 9.IBPluginDependency - - - YES - DatePicker_iPhone - UIResponder - {{409, 648}, {320, 480}} - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - - YES - - - YES - - - - - YES - - - YES - - - - 15 - - - - YES - - DatePicker_iPhone - - YES - - YES - btnChooseDate - lblDate - view - - - YES - id - id - id - - - - YES - - YES - btnChooseDate - lblDate - view - - - YES - - btnChooseDate - id - - - lblDate - id - - - view - id - - - - - IBUserSource - - - - - - 0 - IBCocoaTouchFramework - - com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS - - - - com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3 - - - YES - - 3 - 112 - - diff --git a/StandardControls/StandardControls/Screens/iPhone/DatePicker/DatePicker_iPhone.xib.cs b/StandardControls/StandardControls/Screens/iPhone/DatePicker/DatePicker_iPhone.xib.cs deleted file mode 100755 index 9b94a318f..000000000 --- a/StandardControls/StandardControls/Screens/iPhone/DatePicker/DatePicker_iPhone.xib.cs +++ /dev/null @@ -1,73 +0,0 @@ - -using System; -using System.Collections.Generic; -using System.Linq; -using MonoTouch.Foundation; -using MonoTouch.UIKit; -using Example_StandardControls.Controls; - -namespace Example_StandardControls.Screens.iPhone.DatePicker -{ - public partial class DatePicker_iPhone : UIViewController - { - ActionSheetDatePicker actionSheetDatePicker; - ActionSheetDatePicker actionSheetTimerPicker; - - #region Constructors - - // The IntPtr and initWithCoder constructors are required for controllers that need - // to be able to be created from a xib rather than from managed code - - public DatePicker_iPhone (IntPtr handle) : base(handle) - { - Initialize (); - } - - [Export("initWithCoder:")] - public DatePicker_iPhone (NSCoder coder) : base(coder) - { - Initialize (); - } - - public DatePicker_iPhone () : base("DatePicker_iPhone", null) - { - Initialize (); - } - - void Initialize () - { - } - - #endregion - - public override void ViewDidLoad () - { - base.ViewDidLoad (); - - this.Title = "Date Picker"; - - // setup our custom action sheet date picker - actionSheetDatePicker = new ActionSheetDatePicker (this.View); - actionSheetDatePicker.Title = "Choose Date:"; - actionSheetDatePicker.DatePicker.ValueChanged += Handle_actionSheetDatePickerDatePickerValueChanged; - actionSheetDatePicker.DatePicker.Mode = UIDatePickerMode.DateAndTime; - actionSheetDatePicker.DatePicker.MinimumDate = DateTime.Today.AddDays (-7); - actionSheetDatePicker.DatePicker.MaximumDate = DateTime.Today.AddDays (7); - this.btnChooseDate.TouchUpInside += (s, e) => { - actionSheetDatePicker.Show (); - }; - - // setup our countdown timer - actionSheetTimerPicker = new ActionSheetDatePicker (this.View); - actionSheetTimerPicker.Title = "Choose Time:"; - actionSheetTimerPicker.DatePicker.Mode = UIDatePickerMode.CountDownTimer; - } - - protected void Handle_actionSheetDatePickerDatePickerValueChanged (object sender, EventArgs e) - { - this.lblDate.Text = (sender as UIDatePicker).Date.ToString (); - } - - } -} - diff --git a/StandardControls/StandardControls/Screens/iPhone/DatePicker/DatePicker_iPhone.xib.designer.cs b/StandardControls/StandardControls/Screens/iPhone/DatePicker/DatePicker_iPhone.xib.designer.cs deleted file mode 100755 index bf89a7710..000000000 --- a/StandardControls/StandardControls/Screens/iPhone/DatePicker/DatePicker_iPhone.xib.designer.cs +++ /dev/null @@ -1,61 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Mono Runtime Version: 2.0.50727.1433 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -namespace Example_StandardControls.Screens.iPhone.DatePicker { - - - // Base type probably should be MonoTouch.UIKit.UIViewController or subclass - [MonoTouch.Foundation.Register("DatePicker_iPhone")] - public partial class DatePicker_iPhone { - - private MonoTouch.UIKit.UIView __mt_view; - - private MonoTouch.UIKit.UIButton __mt_btnChooseDate; - - private MonoTouch.UIKit.UILabel __mt_lblDate; - - #pragma warning disable 0169 - [MonoTouch.Foundation.Connect("view")] - private MonoTouch.UIKit.UIView view { - get { - this.__mt_view = ((MonoTouch.UIKit.UIView)(this.GetNativeField("view"))); - return this.__mt_view; - } - set { - this.__mt_view = value; - this.SetNativeField("view", value); - } - } - - [MonoTouch.Foundation.Connect("btnChooseDate")] - private MonoTouch.UIKit.UIButton btnChooseDate { - get { - this.__mt_btnChooseDate = ((MonoTouch.UIKit.UIButton)(this.GetNativeField("btnChooseDate"))); - return this.__mt_btnChooseDate; - } - set { - this.__mt_btnChooseDate = value; - this.SetNativeField("btnChooseDate", value); - } - } - - [MonoTouch.Foundation.Connect("lblDate")] - private MonoTouch.UIKit.UILabel lblDate { - get { - this.__mt_lblDate = ((MonoTouch.UIKit.UILabel)(this.GetNativeField("lblDate"))); - return this.__mt_lblDate; - } - set { - this.__mt_lblDate = value; - this.SetNativeField("lblDate", value); - } - } - } -} diff --git a/StandardControls/StandardControls/Screens/iPhone/Home/HomeTableViewController.cs b/StandardControls/StandardControls/Screens/iPhone/Home/HomeTableViewController.cs deleted file mode 100755 index 2f06c174e..000000000 --- a/StandardControls/StandardControls/Screens/iPhone/Home/HomeTableViewController.cs +++ /dev/null @@ -1,87 +0,0 @@ -using System; -using MonoTouch.UIKit; -using Xamarin.Code; -using System.Collections.Generic; - -namespace Example_StandardControls.Screens.iPhone.Home -{ - public class HomeNavController : UITableViewController - { - // declare vars - List navItems = new List(); - NavItemTableSource tableSource; - - public HomeNavController () : base(UITableViewStyle.Grouped) - { - } - - public override void ViewWillAppear (bool animated) - { - base.ViewWillAppear (animated); - // hide the nav bar when this controller appears - this.NavigationController.SetNavigationBarHidden (true, true); - } - - public override void ViewWillDisappear (bool animated) - { - base.ViewWillDisappear (animated); - // show the nav bar when other controllers appear - this.NavigationController.SetNavigationBarHidden (false, true); - } - - public override void ViewDidLoad () - { - base.ViewDidLoad (); - - - // create the navigation items - NavItemGroup navGroup = new NavItemGroup ("Form Controls"); - navItems.Add (navGroup); - navGroup.Items.Add (new NavItem ("Labels", "", typeof(Labels.LabelsScreen_iPhone))); - navGroup.Items.Add (new NavItem ("Text Fields", "", typeof(TextFields.TextFields_iPhone))); - navGroup.Items.Add (new NavItem ("Sliders", "", typeof(Sliders.Sliders_iPhone))); - navGroup.Items.Add (new NavItem ("Buttons", "", typeof(Buttons.ButtonsScreen_iPhone))); - navGroup.Items.Add (new NavItem ("Switches", "", typeof(Switches.Switches_iPhone))); - navGroup.Items.Add (new NavItem ("Segmented Buttons", "", typeof(SegmentedControl.SegmentedControls_iPhone))); - navGroup.Items.Add (new NavItem ("Segmented Buttons 2", "", typeof(SegmentedControl.SegmentedControls2_iPhone))); - - navGroup = new NavItemGroup ("Content Controls"); - navItems.Add (navGroup); - navGroup.Items.Add (new NavItem ("Scroll View", "", typeof(ScrollView.Controller))); - navGroup.Items.Add (new NavItem ("Tap to Zoom Scroll View", "", typeof(TapToZoomScrollView.Controller))); - navGroup.Items.Add (new NavItem ("Pager Control", "", typeof(PagerControl.PagerControl_iPhone))); - navGroup.Items.Add (new NavItem ("Image Control", "", typeof(Images.Images_iPhone))); - navGroup.Items.Add (new NavItem ("More Image Controls", "", typeof(Images.Images2_iPhone))); - - navGroup = new NavItemGroup ("Process Controls"); - navItems.Add (navGroup); - navGroup.Items.Add (new NavItem ("Activity Spinners", "", typeof(ActivitySpinner.ActivitySpinnerScreen_iPhone))); - navGroup.Items.Add (new NavItem ("Progress Bars", "", typeof(ProgressBars.ProgressBars_iPhone))); - - navGroup = new NavItemGroup ("Popups"); - navItems.Add (navGroup); - navGroup.Items.Add (new NavItem ("Alert Views", "", typeof(AlertViews.AlertViewsScreen_iPhone))); - navGroup.Items.Add (new NavItem ("Action Sheets", "", typeof(ActionSheets.ActionSheets_iPhone))); - - navGroup = new NavItemGroup ("Pickers"); - navItems.Add (navGroup); - navGroup.Items.Add (new NavItem ("Simple Date Picker", "", typeof(DatePicker.DatePickerSimple_iPhone))); - navGroup.Items.Add (new NavItem ("Date Picker", "", typeof(DatePicker.DatePicker_iPhone))); - navGroup.Items.Add (new NavItem ("Simple Custom Picker", "", typeof(PickerView.PickerView1_iPhone))); - navGroup.Items.Add (new NavItem ("Custom Picker with Multiple Components", "", typeof(PickerView.PickerWithMultipleComponents_iPhone))); - - navGroup = new NavItemGroup ("Toolbars"); - navItems.Add (navGroup); - navGroup.Items.Add (new NavItem ("Toolbar 1", "", typeof(Toolbar.Toolbar1_iPhone))); - navGroup.Items.Add (new NavItem ("Programmatic Toolbar", "", typeof(Toolbar.ProgrammaticToolbar_Controller))); - navGroup.Items.Add (new NavItem ("Toolbar Items", "", typeof(Toolbar.ToolbarItems))); - - // create a table source from our nav items - tableSource = new NavItemTableSource (this.NavigationController, navItems); - - // set the source on the table to our data source - base.TableView.Source = tableSource; - } - } -} - diff --git a/StandardControls/StandardControls/Screens/iPhone/Images/Images2_iPhone.xib b/StandardControls/StandardControls/Screens/iPhone/Images/Images2_iPhone.xib deleted file mode 100755 index 32cade84e..000000000 --- a/StandardControls/StandardControls/Screens/iPhone/Images/Images2_iPhone.xib +++ /dev/null @@ -1,174 +0,0 @@ - - - - 768 - 10F569 - 786 - 1038.29 - 461.00 - - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - 112 - - - YES - - - - YES - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - YES - - YES - - - YES - - - - YES - - IBFilesOwner - IBCocoaTouchFramework - - - IBFirstResponder - IBCocoaTouchFramework - - - - 292 - {320, 416} - - - 3 - MQA - - 2 - - - - - NO - - IBCocoaTouchFramework - - - - - YES - - - view - - - - 7 - - - - - YES - - 0 - - - - - - 1 - - - YES - - - - - -1 - - - File's Owner - - - -2 - - - - - - - YES - - YES - -1.CustomClassName - -2.CustomClassName - 1.IBEditorWindowLastContentRect - 1.IBPluginDependency - - - YES - Images2_iPhone - UIResponder - {{357, 275}, {320, 480}} - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - - YES - - - YES - - - - - YES - - - YES - - - - 7 - - - - YES - - Images2_iPhone - - view - id - - - view - - view - id - - - - IBUserSource - - - - - - 0 - IBCocoaTouchFramework - - com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS - - - - com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3 - - - YES - - 3 - 112 - - diff --git a/StandardControls/StandardControls/Screens/iPhone/Images/Images2_iPhone.xib.cs b/StandardControls/StandardControls/Screens/iPhone/Images/Images2_iPhone.xib.cs deleted file mode 100755 index 6f22e602b..000000000 --- a/StandardControls/StandardControls/Screens/iPhone/Images/Images2_iPhone.xib.cs +++ /dev/null @@ -1,71 +0,0 @@ - -using System; -using System.Collections.Generic; -using System.Linq; -using MonoTouch.Foundation; -using MonoTouch.UIKit; -using System.Drawing; - -namespace Example_StandardControls.Screens.iPhone.Images -{ - public partial class Images2_iPhone : UIViewController - { - UIImageView imageView1; - UIImageView imgSpinningCircle; - - #region Constructors - - // The IntPtr and initWithCoder constructors are required for controllers that need - // to be able to be created from a xib rather than from managed code - - public Images2_iPhone (IntPtr handle) : base(handle) - { - Initialize (); - } - - [Export("initWithCoder:")] - public Images2_iPhone (NSCoder coder) : base(coder) - { - Initialize (); - } - - public Images2_iPhone () : base("Images2_iPhone", null) - { - Initialize (); - } - - void Initialize () - { - } - - #endregion - - public override void ViewDidLoad () - { - base.ViewDidLoad (); - - Title = "Images"; - - // a simple image - imageView1 = new UIImageView (UIImage.FromBundle ("Images/Icons/50_icon.png")); - imageView1.Frame = new RectangleF (20, 20, imageView1.Image.CGImage.Width, imageView1.Image.CGImage.Height); - View.AddSubview (imageView1); - - // an animating image - imgSpinningCircle = new UIImageView(); - imgSpinningCircle.AnimationImages = new UIImage[] { - UIImage.FromBundle ("Images/Spinning Circle_1.png"), - UIImage.FromBundle ("Images/Spinning Circle_2.png"), - UIImage.FromBundle ("Images/Spinning Circle_3.png"), - UIImage.FromBundle ("Images/Spinning Circle_4.png") - }; - imgSpinningCircle.AnimationRepeatCount = 0; - imgSpinningCircle.AnimationDuration = .5; - imgSpinningCircle.Frame = new RectangleF(150, 20, 100, 100); - View.AddSubview(imgSpinningCircle); - imgSpinningCircle.StartAnimating (); - } - - } -} - diff --git a/StandardControls/StandardControls/Screens/iPhone/Images/Images2_iPhone.xib.designer.cs b/StandardControls/StandardControls/Screens/iPhone/Images/Images2_iPhone.xib.designer.cs deleted file mode 100755 index 394cd2dd7..000000000 --- a/StandardControls/StandardControls/Screens/iPhone/Images/Images2_iPhone.xib.designer.cs +++ /dev/null @@ -1,33 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Mono Runtime Version: 2.0.50727.1433 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -namespace Example_StandardControls.Screens.iPhone.Images { - - - // Base type probably should be MonoTouch.UIKit.UIViewController or subclass - [MonoTouch.Foundation.Register("Images2_iPhone")] - public partial class Images2_iPhone { - - private MonoTouch.UIKit.UIView __mt_view; - - #pragma warning disable 0169 - [MonoTouch.Foundation.Connect("view")] - private MonoTouch.UIKit.UIView view { - get { - this.__mt_view = ((MonoTouch.UIKit.UIView)(this.GetNativeField("view"))); - return this.__mt_view; - } - set { - this.__mt_view = value; - this.SetNativeField("view", value); - } - } - } -} diff --git a/StandardControls/StandardControls/Screens/iPhone/Images/Images_iPhone.xib b/StandardControls/StandardControls/Screens/iPhone/Images/Images_iPhone.xib deleted file mode 100755 index 67fc4bbd0..000000000 --- a/StandardControls/StandardControls/Screens/iPhone/Images/Images_iPhone.xib +++ /dev/null @@ -1,182 +0,0 @@ - - - - 768 - 11D50b - 1938 - 1138.32 - 568.00 - - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - 933 - - - YES - IBProxyObject - IBUIView - IBUIImageView - - - YES - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - PluginDependencyRecalculationVersion - - - - YES - - IBFilesOwner - IBCocoaTouchFramework - - - IBFirstResponder - IBCocoaTouchFramework - - - - 292 - - YES - - - 274 - {320, 416} - - - NO - IBCocoaTouchFramework - - NSImage - Images/Icons/512_icon.png - - - - {{0, 64}, {320, 416}} - - - - 3 - MQA - - - - NO - - IBCocoaTouchFramework - - - - - YES - - - view - - - - 7 - - - - imgMain - - - - 12 - - - - - YES - - 0 - - YES - - - - - - 1 - - - YES - - - - - - -1 - - - File's Owner - - - -2 - - - - - 11 - - - - - - - YES - - YES - -1.CustomClassName - -1.IBPluginDependency - -2.CustomClassName - -2.IBPluginDependency - 1.IBPluginDependency - 11.IBPluginDependency - - - YES - Images_iPhone - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - UIResponder - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - - YES - - - - - - YES - - - - - 12 - - - 0 - IBCocoaTouchFramework - - com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS - - - - com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3 - - - YES - 3 - - Images/Icons/512_icon.png - {16, 16} - - 933 - - diff --git a/StandardControls/StandardControls/Screens/iPhone/Images/Images_iPhone.xib.cs b/StandardControls/StandardControls/Screens/iPhone/Images/Images_iPhone.xib.cs deleted file mode 100755 index 16c87847d..000000000 --- a/StandardControls/StandardControls/Screens/iPhone/Images/Images_iPhone.xib.cs +++ /dev/null @@ -1,49 +0,0 @@ - -using System; -using System.Collections.Generic; -using System.Linq; -using MonoTouch.Foundation; -using MonoTouch.UIKit; - -namespace Example_StandardControls.Screens.iPhone.Images -{ - public partial class Images_iPhone : UIViewController - { - #region Constructors - - // The IntPtr and initWithCoder constructors are required for controllers that need - // to be able to be created from a xib rather than from managed code - - public Images_iPhone (IntPtr handle) : base(handle) - { - Initialize (); - } - - [Export("initWithCoder:")] - public Images_iPhone (NSCoder coder) : base(coder) - { - Initialize (); - } - - public Images_iPhone () : base("Images_iPhone", null) - { - Initialize (); - } - - void Initialize () - { - } - - #endregion - - public override void ViewDidLoad () - { - base.ViewDidLoad (); - - this.Title = "Images"; - } - - - } -} - diff --git a/StandardControls/StandardControls/Screens/iPhone/Images/Images_iPhone.xib.designer.cs b/StandardControls/StandardControls/Screens/iPhone/Images/Images_iPhone.xib.designer.cs deleted file mode 100755 index 3c1c7284b..000000000 --- a/StandardControls/StandardControls/Screens/iPhone/Images/Images_iPhone.xib.designer.cs +++ /dev/null @@ -1,47 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Mono Runtime Version: 2.0.50727.1433 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -namespace Example_StandardControls.Screens.iPhone.Images { - - - // Base type probably should be MonoTouch.UIKit.UIViewController or subclass - [MonoTouch.Foundation.Register("Images_iPhone")] - public partial class Images_iPhone { - - private MonoTouch.UIKit.UIView __mt_view; - - private MonoTouch.UIKit.UIImageView __mt_imgMain; - - #pragma warning disable 0169 - [MonoTouch.Foundation.Connect("view")] - private MonoTouch.UIKit.UIView view { - get { - this.__mt_view = ((MonoTouch.UIKit.UIView)(this.GetNativeField("view"))); - return this.__mt_view; - } - set { - this.__mt_view = value; - this.SetNativeField("view", value); - } - } - - [MonoTouch.Foundation.Connect("imgMain")] - private MonoTouch.UIKit.UIImageView imgMain { - get { - this.__mt_imgMain = ((MonoTouch.UIKit.UIImageView)(this.GetNativeField("imgMain"))); - return this.__mt_imgMain; - } - set { - this.__mt_imgMain = value; - this.SetNativeField("imgMain", value); - } - } - } -} diff --git a/StandardControls/StandardControls/Screens/iPhone/Labels/LabelsScreen_iPhone.xib b/StandardControls/StandardControls/Screens/iPhone/Labels/LabelsScreen_iPhone.xib deleted file mode 100755 index 9d2798119..000000000 --- a/StandardControls/StandardControls/Screens/iPhone/Labels/LabelsScreen_iPhone.xib +++ /dev/null @@ -1,321 +0,0 @@ - - - - 768 - 10D573 - 786 - 1038.29 - 460.00 - - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - 112 - - - YES - - - - YES - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - YES - - YES - - - YES - - - - YES - - IBFilesOwner - IBCocoaTouchFramework - - - IBFirstResponder - IBCocoaTouchFramework - - - - 292 - - YES - - - 292 - {{20, 20}, {280, 21}} - - NO - YES - 7 - NO - IBCocoaTouchFramework - Just a normal label - - 1 - MCAwIDAAA - - - 1 - 10 - - - - 292 - {{20, 49}, {280, 21}} - - NO - YES - 7 - NO - IBCocoaTouchFramework - A normal label with lots of text, so it resizes the text - - - 1 - 10 - - - - 292 - {{20, 78}, {280, 21}} - - NO - YES - 7 - NO - IBCocoaTouchFramework - A normal label with lots of even more text, so it truncates and resizes the text - - - 1 - 10 - - - - 292 - {{20, 107}, {280, 76}} - - NO - YES - 7 - NO - IBCocoaTouchFramework - A label with word wrap turned on, and a max line count of 0, so it wraps forever. - - - 1 - 10 - 0 - 0 - - - - 292 - {{20, 191}, {286, 85}} - - - 3 - MQA - - NO - YES - 7 - NO - IBCocoaTouchFramework - A label with custom text settings. - - HelveticaNeue-Bold - 30 - 16 - - - 2 - MC40NjY2NjY2OTg1IDAuMzYwNzg0MzIyIDAuMjU4ODIzNTQzOAA - - - - 3 - MC41AA - - {1, 1} - 1 - 10 - 2 - 0 - - - {320, 416} - - - 3 - MQA - - 2 - - - - - NO - - IBCocoaTouchFramework - - - - - YES - - - view - - - - 7 - - - - - YES - - 0 - - - - - - 1 - - - YES - - - - - - - - - - -1 - - - File's Owner - - - -2 - - - - - 8 - - - - - 9 - - - - - 10 - - - - - 11 - - - - - 12 - - - - - - - YES - - YES - -1.CustomClassName - -2.CustomClassName - 1.IBEditorWindowLastContentRect - 1.IBPluginDependency - 10.IBPluginDependency - 11.IBPluginDependency - 12.IBPluginDependency - 8.IBPluginDependency - 9.IBPluginDependency - - - YES - LabelsScreen_iPhone - UIResponder - {{415, 376}, {320, 480}} - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - - YES - - - YES - - - - - YES - - - YES - - - - 12 - - - - YES - - LabelsScreen_iPhone - - view - id - - - view - - view - id - - - - IBUserSource - - - - - - 0 - IBCocoaTouchFramework - - com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS - - - - com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3 - - - YES - - 3 - 112 - - diff --git a/StandardControls/StandardControls/Screens/iPhone/Labels/LabelsScreen_iPhone.xib.cs b/StandardControls/StandardControls/Screens/iPhone/Labels/LabelsScreen_iPhone.xib.cs deleted file mode 100755 index 8058ffbb7..000000000 --- a/StandardControls/StandardControls/Screens/iPhone/Labels/LabelsScreen_iPhone.xib.cs +++ /dev/null @@ -1,65 +0,0 @@ - -using System; -using System.Collections.Generic; -using System.Linq; -using MonoTouch.Foundation; -using MonoTouch.UIKit; -using System.Drawing; - -namespace Example_StandardControls.Screens.iPhone.Labels -{ - public partial class LabelsScreen_iPhone : UIViewController - { - UILabel customLabel; - - #region Constructors - - // The IntPtr and initWithCoder constructors are required for controllers that need - // to be able to be created from a xib rather than from managed code - - public LabelsScreen_iPhone (IntPtr handle) : base(handle) - { - Initialize (); - } - - [Export("initWithCoder:")] - public LabelsScreen_iPhone (NSCoder coder) : base(coder) - { - Initialize (); - } - - public LabelsScreen_iPhone () : base("LabelsScreen_iPhone", null) - { - Initialize (); - } - - void Initialize () - { - } - - #endregion - - - public override void ViewDidLoad () - { - base.ViewDidLoad (); - - this.Title = "UILabels"; - - customLabel = new UILabel (new RectangleF (20, 300, 280, 40)); - customLabel.Text = "A label created programatically"; - customLabel.TextColor = UIColor.Blue; - customLabel.Font = UIFont.FromName ("Helvetica-Bold", 20); - customLabel.AdjustsFontSizeToFitWidth = true; - customLabel.MinimumFontSize = 12; - customLabel.LineBreakMode = UILineBreakMode.TailTruncation; - customLabel.Lines = 1; - - View.AddSubview (customLabel); - - } - - - } -} - diff --git a/StandardControls/StandardControls/Screens/iPhone/Labels/LabelsScreen_iPhone.xib.designer.cs b/StandardControls/StandardControls/Screens/iPhone/Labels/LabelsScreen_iPhone.xib.designer.cs deleted file mode 100755 index f2045969a..000000000 --- a/StandardControls/StandardControls/Screens/iPhone/Labels/LabelsScreen_iPhone.xib.designer.cs +++ /dev/null @@ -1,33 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Mono Runtime Version: 2.0.50727.1433 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -namespace Example_StandardControls.Screens.iPhone.Labels { - - - // Base type probably should be MonoTouch.UIKit.UIViewController or subclass - [MonoTouch.Foundation.Register("LabelsScreen_iPhone")] - public partial class LabelsScreen_iPhone { - - private MonoTouch.UIKit.UIView __mt_view; - - #pragma warning disable 0169 - [MonoTouch.Foundation.Connect("view")] - private MonoTouch.UIKit.UIView view { - get { - this.__mt_view = ((MonoTouch.UIKit.UIView)(this.GetNativeField("view"))); - return this.__mt_view; - } - set { - this.__mt_view = value; - this.SetNativeField("view", value); - } - } - } -} diff --git a/StandardControls/StandardControls/Screens/iPhone/PagerControl/Controller_1.cs b/StandardControls/StandardControls/Screens/iPhone/PagerControl/Controller_1.cs deleted file mode 100755 index f9d891cf3..000000000 --- a/StandardControls/StandardControls/Screens/iPhone/PagerControl/Controller_1.cs +++ /dev/null @@ -1,35 +0,0 @@ -using System; -using MonoTouch.UIKit; -using System.Drawing; -using MonoTouch.CoreGraphics; -using Example_StandardControls.Controls; - -namespace Example_StandardControls.Screens.iPhone.PagerControl -{ - public class Controller_1 : UIViewController - { - UILabel lblMain; - - #region -= constructors =- - - public Controller_1 () : base() - { - } - - #endregion - - public override void ViewDidLoad () - { - base.ViewDidLoad (); - - // set the background color of the view to white - this.View.BackgroundColor = UIColor.White; - - lblMain = new UILabel (new RectangleF (20, 200, 280, 33)); - lblMain.Text = "Controller 1"; - lblMain.BackgroundColor = UIColor.Clear; - this.View.AddSubview (lblMain); - } - - } -} diff --git a/StandardControls/StandardControls/Screens/iPhone/PagerControl/Controller_2.cs b/StandardControls/StandardControls/Screens/iPhone/PagerControl/Controller_2.cs deleted file mode 100755 index 969cebe4d..000000000 --- a/StandardControls/StandardControls/Screens/iPhone/PagerControl/Controller_2.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System; -using MonoTouch.UIKit; -using System.Drawing; -using MonoTouch.CoreGraphics; -using Example_StandardControls.Controls; - -namespace Example_StandardControls.Screens.iPhone.PagerControl -{ - public class Controller_2 : UIViewController - { - UILabel lblMain; - - - #region -= constructors =- - - public Controller_2 () : base() - { - } - - #endregion - - public override void ViewDidLoad () - { - base.ViewDidLoad (); - - // set the background color of the view to white - this.View.BackgroundColor = UIColor.LightGray; - - lblMain = new UILabel (new RectangleF (20, 200, 280, 33)); - lblMain.Text = "Controller 2"; - lblMain.BackgroundColor = UIColor.Clear; - this.View.AddSubview (lblMain); - } - - } -} diff --git a/StandardControls/StandardControls/Screens/iPhone/PagerControl/Controller_3.cs b/StandardControls/StandardControls/Screens/iPhone/PagerControl/Controller_3.cs deleted file mode 100755 index 4b2cb4247..000000000 --- a/StandardControls/StandardControls/Screens/iPhone/PagerControl/Controller_3.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System; -using MonoTouch.UIKit; -using System.Drawing; -using MonoTouch.CoreGraphics; -using Example_StandardControls.Controls; - -namespace Example_StandardControls.Screens.iPhone.PagerControl -{ - public class Controller_3 : UIViewController - { - UILabel lblMain; - - - #region -= constructors =- - - public Controller_3 () : base() - { - } - - #endregion - - public override void ViewDidLoad () - { - base.ViewDidLoad (); - - // set the background color of the view to white - this.View.BackgroundColor = UIColor.FromRGB (.5f, .5f, 1); - - lblMain = new UILabel (new RectangleF (20, 200, 280, 33)); - lblMain.Text = "Controller 3"; - lblMain.BackgroundColor = UIColor.Clear; - this.View.AddSubview (lblMain); - } - - } -} diff --git a/StandardControls/StandardControls/Screens/iPhone/PagerControl/PagerControl_iPhone.xib b/StandardControls/StandardControls/Screens/iPhone/PagerControl/PagerControl_iPhone.xib deleted file mode 100755 index 67399b94c..000000000 --- a/StandardControls/StandardControls/Screens/iPhone/PagerControl/PagerControl_iPhone.xib +++ /dev/null @@ -1,265 +0,0 @@ - - - - 768 - 10D573 - 786 - 1038.29 - 460.00 - - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - 112 - - - YES - - - - YES - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - YES - - YES - - - YES - - - - YES - - IBFilesOwner - IBCocoaTouchFramework - - - IBFirstResponder - IBCocoaTouchFramework - - - - 292 - - YES - - - 274 - {320, 380} - - YES - YES - IBCocoaTouchFramework - YES - NO - NO - - - - 1316 - - {{0, 380}, {320, 36}} - - - 3 - MCAwAA - - NO - IBCocoaTouchFramework - 0 - 0 - 3 - - - {320, 416} - - - 3 - MC41AA - - - - NO - - IBCocoaTouchFramework - - - - - YES - - - view - - - - 7 - - - - pgrMain - - - - 10 - - - - scrlMain - - - - 11 - - - - - YES - - 0 - - - - - - 1 - - - YES - - - - - - - -1 - - - File's Owner - - - -2 - - - - - 9 - - - YES - - - - - 8 - - - - - - - YES - - YES - -1.CustomClassName - -2.CustomClassName - 1.IBEditorWindowLastContentRect - 1.IBPluginDependency - 8.IBPluginDependency - 9.IBPluginDependency - - - YES - PagerControl_iPhone - UIResponder - {{332, 342}, {320, 480}} - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - - YES - - - YES - - - - - YES - - - YES - - - - 11 - - - - YES - - PagerControl_iPhone - - YES - - YES - pgrMain - scrlMain - view - - - YES - id - id - id - - - - YES - - YES - pgrMain - scrlMain - view - - - YES - - pgrMain - id - - - scrlMain - id - - - view - id - - - - - IBUserSource - - - - - - 0 - IBCocoaTouchFramework - - com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS - - - - com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3 - - - YES - - 3 - 112 - - diff --git a/StandardControls/StandardControls/Screens/iPhone/PagerControl/PagerControl_iPhone.xib.cs b/StandardControls/StandardControls/Screens/iPhone/PagerControl/PagerControl_iPhone.xib.cs deleted file mode 100755 index b29cfeeec..000000000 --- a/StandardControls/StandardControls/Screens/iPhone/PagerControl/PagerControl_iPhone.xib.cs +++ /dev/null @@ -1,108 +0,0 @@ - -using System; -using System.Collections.Generic; -using System.Linq; -using MonoTouch.Foundation; -using MonoTouch.UIKit; -using System.Drawing; - -namespace Example_StandardControls.Screens.iPhone.PagerControl -{ - public partial class PagerControl_iPhone : UIViewController - { - /// - /// A list of all our controllers that hold the views for our pages - /// - List controllers = new List(); - - #region Constructors - - // The IntPtr and initWithCoder constructors are required for controllers that need - // to be able to be created from a xib rather than from managed code - public PagerControl_iPhone (IntPtr handle) : base(handle) {} - - [Export("initWithCoder:")] - public PagerControl_iPhone (NSCoder coder) : base(coder) {} - - public PagerControl_iPhone () : base("PagerControl_iPhone", null) {} - - #endregion - - public override void ViewDidLoad () - { - base.ViewDidLoad (); - - // set our title - Title = "Pager Control"; - - // wire up our pager and scroll view event handlers - pgrMain.ValueChanged += HandlePgrMainValueChanged; - scrlMain.Scrolled += HandleScrlMainScrolled; - - // load our controllers (we'll use one per page) - LoadControllers (); - - } - - /// - /// Runs when the scroll view is scrolled. Updates the pager control so that it's - /// current, based on the page - /// - protected void HandleScrlMainScrolled (object sender, EventArgs e) - { - // calculate the page number - int pageNumber = (int)(Math.Floor ((scrlMain.ContentOffset.X - scrlMain.Frame.Width / 2) / scrlMain.Frame.Width) + 1); - - // if it's a valid page - if (pageNumber >= 0 && pageNumber < controllers.Count) - { - // Set the current page on the pager control - pgrMain.CurrentPage = pageNumber; - } - } - - /// - /// Runs when a dot on the pager is clicked. Scrolls the scroll view to the appropriate - /// page, based on which one was clicked - /// - protected void HandlePgrMainValueChanged (object sender, EventArgs e) - { - // it moves page by page. we scroll right to the next controller - scrlMain.ScrollRectToVisible (controllers[(sender as UIPageControl).CurrentPage].View.Frame, true); - } - - /// - /// Loads our controllers that we'll use for each page. Also sets the content size - /// of the scroll view based on the number of controllers we add - /// - protected void LoadControllers () - { - // instantiate and add the controllers to our list - controllers.Add (new Controller_1 ()); - controllers.Add (new Controller_2 ()); - controllers.Add (new Controller_3 ()); - - // loop through each one - for (int i = 0; i < controllers.Count; i++) - { - // set their location and size, each one is moved to the - // right by the width of the previous - RectangleF viewFrame = new RectangleF ( - scrlMain.Frame.Width * i, - scrlMain.Frame.Y, - scrlMain.Frame.Width, - scrlMain.Frame.Height); - controllers[i].View.Frame = viewFrame; - - // add the view to the scrollview - scrlMain.AddSubview (controllers[i].View); - } - - // set our scroll view content size (width = number of pages * scroll view width) - scrlMain.ContentSize = new SizeF ( - scrlMain.Frame.Width * controllers.Count, scrlMain.Frame.Height); - } - - } -} - diff --git a/StandardControls/StandardControls/Screens/iPhone/PagerControl/PagerControl_iPhone.xib.designer.cs b/StandardControls/StandardControls/Screens/iPhone/PagerControl/PagerControl_iPhone.xib.designer.cs deleted file mode 100755 index e793e1578..000000000 --- a/StandardControls/StandardControls/Screens/iPhone/PagerControl/PagerControl_iPhone.xib.designer.cs +++ /dev/null @@ -1,61 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Mono Runtime Version: 2.0.50727.1433 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -namespace Example_StandardControls.Screens.iPhone.PagerControl { - - - // Base type probably should be MonoTouch.UIKit.UIViewController or subclass - [MonoTouch.Foundation.Register("PagerControl_iPhone")] - public partial class PagerControl_iPhone { - - private MonoTouch.UIKit.UIView __mt_view; - - private MonoTouch.UIKit.UIPageControl __mt_pgrMain; - - private MonoTouch.UIKit.UIScrollView __mt_scrlMain; - - #pragma warning disable 0169 - [MonoTouch.Foundation.Connect("view")] - private MonoTouch.UIKit.UIView view { - get { - this.__mt_view = ((MonoTouch.UIKit.UIView)(this.GetNativeField("view"))); - return this.__mt_view; - } - set { - this.__mt_view = value; - this.SetNativeField("view", value); - } - } - - [MonoTouch.Foundation.Connect("pgrMain")] - private MonoTouch.UIKit.UIPageControl pgrMain { - get { - this.__mt_pgrMain = ((MonoTouch.UIKit.UIPageControl)(this.GetNativeField("pgrMain"))); - return this.__mt_pgrMain; - } - set { - this.__mt_pgrMain = value; - this.SetNativeField("pgrMain", value); - } - } - - [MonoTouch.Foundation.Connect("scrlMain")] - private MonoTouch.UIKit.UIScrollView scrlMain { - get { - this.__mt_scrlMain = ((MonoTouch.UIKit.UIScrollView)(this.GetNativeField("scrlMain"))); - return this.__mt_scrlMain; - } - set { - this.__mt_scrlMain = value; - this.SetNativeField("scrlMain", value); - } - } - } -} diff --git a/StandardControls/StandardControls/Screens/iPhone/PickerView/PickerView1_iPhone.xib b/StandardControls/StandardControls/Screens/iPhone/PickerView/PickerView1_iPhone.xib deleted file mode 100755 index 78494bee0..000000000 --- a/StandardControls/StandardControls/Screens/iPhone/PickerView/PickerView1_iPhone.xib +++ /dev/null @@ -1,262 +0,0 @@ - - - - 768 - 10F569 - 786 - 1038.29 - 461.00 - - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - 112 - - - YES - - - - YES - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - YES - - YES - - - YES - - - - YES - - IBFilesOwner - IBCocoaTouchFramework - - - IBFirstResponder - IBCocoaTouchFramework - - - - 292 - - YES - - - 290 - {{0, 244}, {320, 216}} - - IBCocoaTouchFramework - YES - - - - 292 - {{20, 20}, {280, 21}} - - NO - YES - 7 - NO - IBCocoaTouchFramework - Selected Item - - 2 - MC40NjY2NjY2OTg1IDAuMzYwNzg0MzIyIDAuMjU4ODIzNTQzOAA - - - 1 - 10 - 1 - - - {320, 460} - - - 3 - MQA - - 2 - - - - IBCocoaTouchFramework - - - - - YES - - - view - - - - 7 - - - - lblSelectedItem - - - - 11 - - - - pkrMain - - - - 12 - - - - - YES - - 0 - - - - - - 1 - - - YES - - - - - - - -1 - - - File's Owner - - - -2 - - - - - 8 - - - - - 10 - - - - - - - YES - - YES - -1.CustomClassName - -2.CustomClassName - 1.IBEditorWindowLastContentRect - 1.IBPluginDependency - 10.IBPluginDependency - 8.IBPluginDependency - - - YES - PickerView1_iPhone - UIResponder - {{578, 554}, {320, 480}} - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - - YES - - - YES - - - - - YES - - - YES - - - - 12 - - - - YES - - PickerView1_iPhone - - YES - - YES - lblSelectedItem - pkrMain - view - - - YES - id - id - id - - - - YES - - YES - lblSelectedItem - pkrMain - view - - - YES - - lblSelectedItem - id - - - pkrMain - id - - - view - id - - - - - IBUserSource - - - - - - 0 - IBCocoaTouchFramework - - com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS - - - - com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3 - - - YES - - 3 - 112 - - diff --git a/StandardControls/StandardControls/Screens/iPhone/PickerView/PickerView1_iPhone.xib.cs b/StandardControls/StandardControls/Screens/iPhone/PickerView/PickerView1_iPhone.xib.cs deleted file mode 100755 index 3bb004572..000000000 --- a/StandardControls/StandardControls/Screens/iPhone/PickerView/PickerView1_iPhone.xib.cs +++ /dev/null @@ -1,140 +0,0 @@ - -using System; -using System.Collections.Generic; -using System.Linq; -using MonoTouch.Foundation; -using MonoTouch.UIKit; - -namespace Example_StandardControls.Screens.iPhone.PickerView -{ - public partial class PickerView1_iPhone : UIViewController - { - PickerDataModel pickerDataModel; - - #region Constructors - - // The IntPtr and initWithCoder constructors are required for controllers that need - // to be able to be created from a xib rather than from managed code - - public PickerView1_iPhone (IntPtr handle) : base(handle) - { - Initialize (); - } - - [Export("initWithCoder:")] - public PickerView1_iPhone (NSCoder coder) : base(coder) - { - Initialize (); - } - - public PickerView1_iPhone () : base("PickerView1_iPhone", null) - { - Initialize (); - } - - void Initialize () - { - } - - #endregion - - public override void ViewDidLoad () - { - base.ViewDidLoad (); - - this.Title = "Picker View"; - - // create our simple picker model - pickerDataModel = new PickerDataModel (); - pickerDataModel.Items.Add ("item the first!"); - pickerDataModel.Items.Add ("item the second!"); - pickerDataModel.Items.Add ("item the third!"); - pickerDataModel.Items.Add ("fourth item!"); - - // set it on our picker class - this.pkrMain.Source = pickerDataModel; - - // wire up the value change method - pickerDataModel.ValueChanged += (s, e) => { - this.lblSelectedItem.Text = pickerDataModel.SelectedItem; - }; - - // set our initial selection on the label - this.lblSelectedItem.Text = pickerDataModel.SelectedItem; - } - - /// - /// This is our simple picker model. it uses a list of strings as it's data and exposes - /// a ValueChanged event when the picker changes. - /// - protected class PickerDataModel : UIPickerViewModel - { - - public event EventHandler ValueChanged; - - /// - /// The items to show up in the picker - /// - public List Items - { - get { return items; } - set { items = value; } - } - List items = new List(); - - /// - /// The current selected item - /// - public string SelectedItem - { - get { return items[selectedIndex]; } - } - protected int selectedIndex = 0; - - /// - /// default constructor - /// - public PickerDataModel () - { - } - - /// - /// Called by the picker to determine how many rows are in a given spinner item - /// - public override int GetRowsInComponent (UIPickerView picker, int component) - { - return items.Count; - } - - /// - /// called by the picker to get the text for a particular row in a particular - /// spinner item - /// - public override string GetTitle (UIPickerView picker, int row, int component) - { - return items[row]; - } - - /// - /// called by the picker to get the number of spinner items - /// - public override int GetComponentCount (UIPickerView picker) - { - return 1; - } - - /// - /// called when a row is selected in the spinner - /// - public override void Selected (UIPickerView picker, int row, int component) - { - selectedIndex = row; - if (this.ValueChanged != null) - { - this.ValueChanged (this, new EventArgs ()); - } - } - } - } -} - diff --git a/StandardControls/StandardControls/Screens/iPhone/PickerView/PickerView1_iPhone.xib.designer.cs b/StandardControls/StandardControls/Screens/iPhone/PickerView/PickerView1_iPhone.xib.designer.cs deleted file mode 100755 index 9b7b199e3..000000000 --- a/StandardControls/StandardControls/Screens/iPhone/PickerView/PickerView1_iPhone.xib.designer.cs +++ /dev/null @@ -1,61 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Mono Runtime Version: 2.0.50727.1433 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -namespace Example_StandardControls.Screens.iPhone.PickerView { - - - // Base type probably should be MonoTouch.UIKit.UIViewController or subclass - [MonoTouch.Foundation.Register("PickerView1_iPhone")] - public partial class PickerView1_iPhone { - - private MonoTouch.UIKit.UIView __mt_view; - - private MonoTouch.UIKit.UILabel __mt_lblSelectedItem; - - private MonoTouch.UIKit.UIPickerView __mt_pkrMain; - - #pragma warning disable 0169 - [MonoTouch.Foundation.Connect("view")] - private MonoTouch.UIKit.UIView view { - get { - this.__mt_view = ((MonoTouch.UIKit.UIView)(this.GetNativeField("view"))); - return this.__mt_view; - } - set { - this.__mt_view = value; - this.SetNativeField("view", value); - } - } - - [MonoTouch.Foundation.Connect("lblSelectedItem")] - private MonoTouch.UIKit.UILabel lblSelectedItem { - get { - this.__mt_lblSelectedItem = ((MonoTouch.UIKit.UILabel)(this.GetNativeField("lblSelectedItem"))); - return this.__mt_lblSelectedItem; - } - set { - this.__mt_lblSelectedItem = value; - this.SetNativeField("lblSelectedItem", value); - } - } - - [MonoTouch.Foundation.Connect("pkrMain")] - private MonoTouch.UIKit.UIPickerView pkrMain { - get { - this.__mt_pkrMain = ((MonoTouch.UIKit.UIPickerView)(this.GetNativeField("pkrMain"))); - return this.__mt_pkrMain; - } - set { - this.__mt_pkrMain = value; - this.SetNativeField("pkrMain", value); - } - } - } -} diff --git a/StandardControls/StandardControls/Screens/iPhone/PickerView/PickerWithMultipleComponents_iPhone.xib b/StandardControls/StandardControls/Screens/iPhone/PickerView/PickerWithMultipleComponents_iPhone.xib deleted file mode 100755 index 4d5d1a22b..000000000 --- a/StandardControls/StandardControls/Screens/iPhone/PickerView/PickerWithMultipleComponents_iPhone.xib +++ /dev/null @@ -1,262 +0,0 @@ - - - - 768 - 10F569 - 786 - 1038.29 - 461.00 - - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - 112 - - - YES - - - - YES - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - YES - - YES - - - YES - - - - YES - - IBFilesOwner - IBCocoaTouchFramework - - - IBFirstResponder - IBCocoaTouchFramework - - - - 292 - - YES - - - 290 - {{0, 244}, {320, 216}} - - IBCocoaTouchFramework - YES - - - - 292 - {{20, 20}, {280, 21}} - - NO - YES - 7 - NO - IBCocoaTouchFramework - Selected Item - - 2 - MC40NjY2NjY2OTg1IDAuMzYwNzg0MzIyIDAuMjU4ODIzNTQzOAA - - - 1 - 10 - 1 - - - {320, 460} - - - 3 - MQA - - 2 - - - - IBCocoaTouchFramework - - - - - YES - - - view - - - - 7 - - - - lblSelectedItem - - - - 10 - - - - pkrMain - - - - 11 - - - - - YES - - 0 - - - - - - 1 - - - YES - - - - - - - -1 - - - File's Owner - - - -2 - - - - - 8 - - - - - 9 - - - - - - - YES - - YES - -1.CustomClassName - -2.CustomClassName - 1.IBEditorWindowLastContentRect - 1.IBPluginDependency - 8.IBPluginDependency - 9.IBPluginDependency - - - YES - PickerWithMultipleComponents_iPhone - UIResponder - {{719, 645}, {320, 480}} - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - - YES - - - YES - - - - - YES - - - YES - - - - 11 - - - - YES - - PickerWithMultipleComponents_iPhone - - YES - - YES - lblSelectedItem - pkrMain - view - - - YES - id - id - id - - - - YES - - YES - lblSelectedItem - pkrMain - view - - - YES - - lblSelectedItem - id - - - pkrMain - id - - - view - id - - - - - IBUserSource - - - - - - 0 - IBCocoaTouchFramework - - com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS - - - - com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3 - - - YES - - 3 - 112 - - diff --git a/StandardControls/StandardControls/Screens/iPhone/PickerView/PickerWithMultipleComponents_iPhone.xib.cs b/StandardControls/StandardControls/Screens/iPhone/PickerView/PickerWithMultipleComponents_iPhone.xib.cs deleted file mode 100755 index 9e0d88a6a..000000000 --- a/StandardControls/StandardControls/Screens/iPhone/PickerView/PickerWithMultipleComponents_iPhone.xib.cs +++ /dev/null @@ -1,144 +0,0 @@ - -using System; -using System.Collections.Generic; -using System.Linq; -using MonoTouch.Foundation; -using MonoTouch.UIKit; - -namespace Example_StandardControls.Screens.iPhone.PickerView -{ - public partial class PickerWithMultipleComponents_iPhone : UIViewController - { - PickerDataModel pickerDataModel; - - #region Constructors - - // The IntPtr and initWithCoder constructors are required for controllers that need - // to be able to be created from a xib rather than from managed code - - public PickerWithMultipleComponents_iPhone (IntPtr handle) : base(handle) - { - Initialize (); - } - - [Export("initWithCoder:")] - public PickerWithMultipleComponents_iPhone (NSCoder coder) : base(coder) - { - Initialize (); - } - - public PickerWithMultipleComponents_iPhone () : base("PickerWithMultipleComponents_iPhone", null) - { - Initialize (); - } - - void Initialize () - { - } - - #endregion - - public override void ViewDidLoad () - { - base.ViewDidLoad (); - - this.Title = "Picker View"; - - // create our simple picker modle - pickerDataModel = new PickerDataModel (); - - List items = new List (); - items.Add ("1"); - items.Add ("2"); - items.Add ("3"); - pickerDataModel.Items.Add (0, items); - - items = new List (); - items.Add ("Red"); - items.Add ("Green"); - items.Add ("Blue"); - items.Add ("Alpha"); - pickerDataModel.Items.Add (1, items); - - // set it on our picker class - this.pkrMain.Model = pickerDataModel; - - - // wire up the item selected method - pickerDataModel.ValueChanged += (s, e) => { - // this.lblSelectedItem.Text = pickerDataModel.SelectedItem; - }; - - // set our initial selection on the label - //this.lblSelectedItem.Text = pickerDataModel.SelectedItem; - } - - /// - /// This is our simple picker model. it uses a list of strings as it's - /// data - /// - protected class PickerDataModel : UIPickerViewModel - { - - public event EventHandler ValueChanged; - - /// - /// The items to show up in the picker - /// - public Dictionary> Items - { - get { return items; } - set { items = value; } - } - protected Dictionary> items = new Dictionary>(); - - - /// - /// default constructor - /// - public PickerDataModel () - { - } - - /// - /// Called by the picker to determine how many rows are in a given spinner item - /// - public override int GetRowsInComponent (UIPickerView picker, int component) - { - return items[component].Count; - } - - /// - /// called by the picker to get the text for a particular row in a particular - /// spinner item - /// - public override string GetTitle (UIPickerView picker, int row, int component) - { - return items[component][row]; - } - - /// - /// called by the picker to get the number of spinner items - /// - public override int GetComponentCount (UIPickerView picker) - { - return items.Count; - } - - /// - /// called when a row is selected in the spinner - /// - public override void Selected (UIPickerView picker, int row, int component) - { - //selectedIndex = row; - if (this.ValueChanged != null) - { - this.ValueChanged (this, new EventArgs ()); - } - } - } - - - } -} - diff --git a/StandardControls/StandardControls/Screens/iPhone/PickerView/PickerWithMultipleComponents_iPhone.xib.designer.cs b/StandardControls/StandardControls/Screens/iPhone/PickerView/PickerWithMultipleComponents_iPhone.xib.designer.cs deleted file mode 100755 index 517725f94..000000000 --- a/StandardControls/StandardControls/Screens/iPhone/PickerView/PickerWithMultipleComponents_iPhone.xib.designer.cs +++ /dev/null @@ -1,61 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Mono Runtime Version: 2.0.50727.1433 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -namespace Example_StandardControls.Screens.iPhone.PickerView { - - - // Base type probably should be MonoTouch.UIKit.UIViewController or subclass - [MonoTouch.Foundation.Register("PickerWithMultipleComponents_iPhone")] - public partial class PickerWithMultipleComponents_iPhone { - - private MonoTouch.UIKit.UIView __mt_view; - - private MonoTouch.UIKit.UILabel __mt_lblSelectedItem; - - private MonoTouch.UIKit.UIPickerView __mt_pkrMain; - - #pragma warning disable 0169 - [MonoTouch.Foundation.Connect("view")] - private MonoTouch.UIKit.UIView view { - get { - this.__mt_view = ((MonoTouch.UIKit.UIView)(this.GetNativeField("view"))); - return this.__mt_view; - } - set { - this.__mt_view = value; - this.SetNativeField("view", value); - } - } - - [MonoTouch.Foundation.Connect("lblSelectedItem")] - private MonoTouch.UIKit.UILabel lblSelectedItem { - get { - this.__mt_lblSelectedItem = ((MonoTouch.UIKit.UILabel)(this.GetNativeField("lblSelectedItem"))); - return this.__mt_lblSelectedItem; - } - set { - this.__mt_lblSelectedItem = value; - this.SetNativeField("lblSelectedItem", value); - } - } - - [MonoTouch.Foundation.Connect("pkrMain")] - private MonoTouch.UIKit.UIPickerView pkrMain { - get { - this.__mt_pkrMain = ((MonoTouch.UIKit.UIPickerView)(this.GetNativeField("pkrMain"))); - return this.__mt_pkrMain; - } - set { - this.__mt_pkrMain = value; - this.SetNativeField("pkrMain", value); - } - } - } -} diff --git a/StandardControls/StandardControls/Screens/iPhone/ProgressBars/ProgressBars_iPhone.xib b/StandardControls/StandardControls/Screens/iPhone/ProgressBars/ProgressBars_iPhone.xib deleted file mode 100755 index d98200cae..000000000 --- a/StandardControls/StandardControls/Screens/iPhone/ProgressBars/ProgressBars_iPhone.xib +++ /dev/null @@ -1,292 +0,0 @@ - - - - 768 - 10D573 - 786 - 1038.29 - 460.00 - - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - 112 - - - YES - - - - YES - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - YES - - YES - - - YES - - - - YES - - IBFilesOwner - IBCocoaTouchFramework - - - IBFirstResponder - IBCocoaTouchFramework - - - - 292 - - YES - - - 292 - {{20, 49}, {280, 9}} - - NO - IBCocoaTouchFramework - 0.73943662643432617 - - - - 292 - {{20, 107}, {280, 11}} - - NO - IBCocoaTouchFramework - 0.23239436745643616 - 1 - - - - 292 - {{20, 20}, {59, 21}} - - NO - YES - 7 - NO - IBCocoaTouchFramework - Default: - - 1 - MCAwIDAAA - - - 1 - 10 - - - - 292 - {{20, 78}, {59, 21}} - - NO - YES - 7 - NO - IBCocoaTouchFramework - Bar: - - - 1 - 10 - - - {320, 416} - - - 3 - MQA - - 2 - - - - - NO - - IBCocoaTouchFramework - - - - - YES - - - view - - - - 7 - - - - btnProgress1 - - - - 12 - - - - - YES - - 0 - - - - - - 1 - - - YES - - - - - - - - - -1 - - - File's Owner - - - -2 - - - - - 8 - - - - - 9 - - - - - 10 - - - - - 11 - - - - - - - YES - - YES - -1.CustomClassName - -2.CustomClassName - 1.IBEditorWindowLastContentRect - 1.IBPluginDependency - 10.IBPluginDependency - 11.IBPluginDependency - 8.IBPluginDependency - 9.IBPluginDependency - - - YES - ProgressBars_iPhone - UIResponder - {{412, 376}, {320, 480}} - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - - YES - - - YES - - - - - YES - - - YES - - - - 12 - - - - YES - - ProgressBars_iPhone - - YES - - YES - btnProgress1 - view - - - YES - id - id - - - - YES - - YES - btnProgress1 - view - - - YES - - btnProgress1 - id - - - view - id - - - - - IBUserSource - - - - - - 0 - IBCocoaTouchFramework - - com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS - - - - com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3 - - - YES - - 3 - 112 - - diff --git a/StandardControls/StandardControls/Screens/iPhone/ProgressBars/ProgressBars_iPhone.xib.cs b/StandardControls/StandardControls/Screens/iPhone/ProgressBars/ProgressBars_iPhone.xib.cs deleted file mode 100755 index adbd39805..000000000 --- a/StandardControls/StandardControls/Screens/iPhone/ProgressBars/ProgressBars_iPhone.xib.cs +++ /dev/null @@ -1,51 +0,0 @@ - -using System; -using System.Collections.Generic; -using System.Linq; -using MonoTouch.Foundation; -using MonoTouch.UIKit; - -namespace Example_StandardControls.Screens.iPhone.ProgressBars -{ - public partial class ProgressBars_iPhone : UIViewController - { - #region Constructors - - // The IntPtr and initWithCoder constructors are required for controllers that need - // to be able to be created from a xib rather than from managed code - - public ProgressBars_iPhone (IntPtr handle) : base(handle) - { - Initialize (); - } - - [Export("initWithCoder:")] - public ProgressBars_iPhone (NSCoder coder) : base(coder) - { - Initialize (); - } - - public ProgressBars_iPhone () : base("ProgressBars_iPhone", null) - { - Initialize (); - } - - void Initialize () - { - } - - #endregion - - public override void ViewDidLoad () - { - base.ViewDidLoad (); - - this.Title = "Progress Bars"; - - //UIProgressView progressBar = new UIProgressView (UIProgressViewStyle.Bar); - //progressBar.Progress = .5f; - } - - } -} - diff --git a/StandardControls/StandardControls/Screens/iPhone/ProgressBars/ProgressBars_iPhone.xib.designer.cs b/StandardControls/StandardControls/Screens/iPhone/ProgressBars/ProgressBars_iPhone.xib.designer.cs deleted file mode 100755 index cd18241c5..000000000 --- a/StandardControls/StandardControls/Screens/iPhone/ProgressBars/ProgressBars_iPhone.xib.designer.cs +++ /dev/null @@ -1,47 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Mono Runtime Version: 2.0.50727.1433 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -namespace Example_StandardControls.Screens.iPhone.ProgressBars { - - - // Base type probably should be MonoTouch.UIKit.UIViewController or subclass - [MonoTouch.Foundation.Register("ProgressBars_iPhone")] - public partial class ProgressBars_iPhone { - - private MonoTouch.UIKit.UIView __mt_view; - - private MonoTouch.UIKit.UIProgressView __mt_btnProgress1; - - #pragma warning disable 0169 - [MonoTouch.Foundation.Connect("view")] - private MonoTouch.UIKit.UIView view { - get { - this.__mt_view = ((MonoTouch.UIKit.UIView)(this.GetNativeField("view"))); - return this.__mt_view; - } - set { - this.__mt_view = value; - this.SetNativeField("view", value); - } - } - - [MonoTouch.Foundation.Connect("btnProgress1")] - private MonoTouch.UIKit.UIProgressView btnProgress1 { - get { - this.__mt_btnProgress1 = ((MonoTouch.UIKit.UIProgressView)(this.GetNativeField("btnProgress1"))); - return this.__mt_btnProgress1; - } - set { - this.__mt_btnProgress1 = value; - this.SetNativeField("btnProgress1", value); - } - } - } -} diff --git a/StandardControls/StandardControls/Screens/iPhone/ScrollView/Controller.cs b/StandardControls/StandardControls/Screens/iPhone/ScrollView/Controller.cs deleted file mode 100755 index 25dbea29f..000000000 --- a/StandardControls/StandardControls/Screens/iPhone/ScrollView/Controller.cs +++ /dev/null @@ -1,47 +0,0 @@ -using System; -using MonoTouch.UIKit; -using System.Drawing; -using MonoTouch.CoreGraphics; - -namespace Example_StandardControls.Screens.iPhone.ScrollView -{ - public class Controller : UIViewController - { - UIScrollView scrollView; - UIImageView imageView; - - - #region -= constructors =- - - public Controller () : base() - { - } - - #endregion - - public override void ViewDidLoad () - { - base.ViewDidLoad (); - - // set the background color of the view to white - this.View.BackgroundColor = UIColor.White; - - this.Title = "Scroll View"; - - // create our scroll view - scrollView = new UIScrollView ( - new RectangleF (0, 0, this.View.Frame.Width, this.View.Frame.Height - this.NavigationController.NavigationBar.Frame.Height)); - this.View.AddSubview (scrollView); - - // create our image view - imageView = new UIImageView (UIImage.FromFile ("Images/Icons/512_icon.png")); - scrollView.ContentSize = imageView.Image.Size; - scrollView.MaximumZoomScale = 3f; - scrollView.MinimumZoomScale = .1f; - scrollView.AddSubview (imageView); - - scrollView.ViewForZoomingInScrollView += (UIScrollView sv) => { return imageView; }; - } - - } -} diff --git a/StandardControls/StandardControls/Screens/iPhone/SegmentedControl/SegmentedControls2_iPhone.xib b/StandardControls/StandardControls/Screens/iPhone/SegmentedControl/SegmentedControls2_iPhone.xib deleted file mode 100755 index 4d8167553..000000000 --- a/StandardControls/StandardControls/Screens/iPhone/SegmentedControl/SegmentedControls2_iPhone.xib +++ /dev/null @@ -1,154 +0,0 @@ - - - - 768 - 9L30 - 677 - 949.54 - 353.00 - - YES - - - - YES - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - YES - - YES - - - YES - - - - YES - - IBFilesOwner - - - IBFirstResponder - - - - 292 - {320, 460} - - - 3 - MQA - - 2 - - - - - - - - YES - - - view - - - - 7 - - - - - YES - - 0 - - YES - - - - - - 1 - - - YES - - - - - -1 - - - RmlsZSdzIE93bmVyA - - - -2 - - - - - - - YES - - YES - -1.CustomClassName - -2.CustomClassName - 1.IBEditorWindowLastContentRect - 1.IBPluginDependency - - - YES - SegmentedControls2_iPhone - UIResponder - {{357, 275}, {320, 480}} - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - - YES - - YES - - - YES - - - - - YES - - YES - - - YES - - - - 7 - - - - YES - - SegmentedControls2_iPhone - - view - id - - - IBUserSource - - - - - - 0 - - 3 - 3.0 - - - diff --git a/StandardControls/StandardControls/Screens/iPhone/SegmentedControl/SegmentedControls2_iPhone.xib.cs b/StandardControls/StandardControls/Screens/iPhone/SegmentedControl/SegmentedControls2_iPhone.xib.cs deleted file mode 100755 index 26694ce62..000000000 --- a/StandardControls/StandardControls/Screens/iPhone/SegmentedControl/SegmentedControls2_iPhone.xib.cs +++ /dev/null @@ -1,64 +0,0 @@ - -using System; -using System.Collections.Generic; -using System.Linq; -using MonoTouch.Foundation; -using MonoTouch.UIKit; - -namespace Example_StandardControls.Screens.iPhone.SegmentedControl -{ - public partial class SegmentedControls2_iPhone : UIViewController - { - UISegmentedControl segControl1; - - #region Constructors - - // The IntPtr and initWithCoder constructors are required for controllers that need - // to be able to be created from a xib rather than from managed code - - public SegmentedControls2_iPhone (IntPtr handle) : base(handle) - { - Initialize (); - } - - [Export("initWithCoder:")] - public SegmentedControls2_iPhone (NSCoder coder) : base(coder) - { - Initialize (); - } - - public SegmentedControls2_iPhone () : base("SegmentedControls2_iPhone", null) - { - Initialize (); - } - - void Initialize () - { - } - - #endregion - - public override void ViewDidLoad () - { - base.ViewDidLoad (); - - this.Title = "Programmatic Segmented Controls"; - - segControl1 = new UISegmentedControl (); - segControl1.ControlStyle = UISegmentedControlStyle.Bordered; - segControl1.InsertSegment ("One", 0, false); - segControl1.InsertSegment ("Two", 1, false); - segControl1.SetWidth (100f, 1); - segControl1.SelectedSegment = 1; - segControl1.Frame = new System.Drawing.RectangleF (20, 20, 280, 44); - this.View.AddSubview (segControl1); - - segControl1.ValueChanged += delegate(object sender, EventArgs e) { - Console.WriteLine ("Item " + (sender as UISegmentedControl).SelectedSegment.ToString () + " selected"); - }; - - } - - } -} - diff --git a/StandardControls/StandardControls/Screens/iPhone/SegmentedControl/SegmentedControls2_iPhone.xib.designer.cs b/StandardControls/StandardControls/Screens/iPhone/SegmentedControl/SegmentedControls2_iPhone.xib.designer.cs deleted file mode 100755 index 4179bb56a..000000000 --- a/StandardControls/StandardControls/Screens/iPhone/SegmentedControl/SegmentedControls2_iPhone.xib.designer.cs +++ /dev/null @@ -1,33 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Mono Runtime Version: 2.0.50727.1433 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -namespace Example_StandardControls.Screens.iPhone.SegmentedControl { - - - // Base type probably should be MonoTouch.UIKit.UIViewController or subclass - [MonoTouch.Foundation.Register("SegmentedControls2_iPhone")] - public partial class SegmentedControls2_iPhone { - - private MonoTouch.UIKit.UIView __mt_view; - - #pragma warning disable 0169 - [MonoTouch.Foundation.Connect("view")] - private MonoTouch.UIKit.UIView view { - get { - this.__mt_view = ((MonoTouch.UIKit.UIView)(this.GetNativeField("view"))); - return this.__mt_view; - } - set { - this.__mt_view = value; - this.SetNativeField("view", value); - } - } - } -} diff --git a/StandardControls/StandardControls/Screens/iPhone/SegmentedControl/SegmentedControls_iPhone.xib b/StandardControls/StandardControls/Screens/iPhone/SegmentedControl/SegmentedControls_iPhone.xib deleted file mode 100755 index 219c94c7a..000000000 --- a/StandardControls/StandardControls/Screens/iPhone/SegmentedControl/SegmentedControls_iPhone.xib +++ /dev/null @@ -1,595 +0,0 @@ - - - - 1024 - 10D573 - 786 - 1038.29 - 460.00 - - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - 112 - - - YES - - - - YES - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - YES - - YES - - - YES - - - - YES - - IBFilesOwner - IBCocoaTouchFramework - - - IBFirstResponder - IBCocoaTouchFramework - - - - 292 - - YES - - - 292 - {{20, 31}, {43, 21}} - - NO - YES - 7 - NO - IBCocoaTouchFramework - Plain: - - 1 - MCAwIDAAA - - - 1 - 10 - - - - 292 - {{93, 20}, {207, 44}} - - NO - IBCocoaTouchFramework - 2 - 0 - - YES - First - Second - - - YES - - - - - YES - - - - - YES - {0, 0} - {0, 0} - - - YES - - - - - - - 292 - {{93, 243}, {207, 44}} - - NO - IBCocoaTouchFramework - 2 - - YES - First - Second - - - YES - - - - - YES - - - - - YES - {0, 0} - {0, 0} - - - YES - - - - YES - - - - 292 - {{20, 81}, {65, 21}} - - NO - YES - 7 - NO - IBCocoaTouchFramework - Bordered: - - - 1 - 10 - - - - 292 - {{93, 71}, {207, 44}} - - NO - IBCocoaTouchFramework - 1 - 2 - 0 - - YES - First - Second - - - YES - - - - - YES - - - - - YES - {0, 0} - {0, 0} - - - YES - - - - - - - 292 - {{20, 131}, {65, 21}} - - NO - YES - 7 - NO - IBCocoaTouchFramework - Bar: - - - 1 - 10 - - - - 292 - {{93, 129}, {207, 30}} - - NO - IBCocoaTouchFramework - 2 - 2 - 0 - - YES - First - Second - - - YES - - - - - YES - - - - - YES - {0, 0} - {0, 0} - - - YES - - - - - - - 292 - {{20, 174}, {67, 21}} - - NO - YES - 7 - NO - IBCocoaTouchFramework - Bezeled: - - - 1 - 10 - - - - 292 - {{20, 214}, {280, 21}} - - NO - YES - 7 - NO - IBCocoaTouchFramework - Momentary (buttons don't keep state): - - - 1 - 10 - - - - 292 - {{20, 294}, {248, 21}} - - NO - YES - 7 - NO - IBCocoaTouchFramework - More Segments: - - - 1 - 10 - - - - 292 - {{93, 166}, {207, 40}} - - NO - IBCocoaTouchFramework - 3 - 2 - 0 - - YES - First - Second - - - YES - - - - - YES - - - - - YES - {0, 0} - {0, 0} - - - YES - - - - - - - 292 - {{20, 323}, {280, 44}} - - NO - IBCocoaTouchFramework - 4 - 0 - - YES - First - Second - - - - - YES - - - - - - - YES - - - - - - - YES - {0, 0} - {0, 0} - {0, 0} - {0, 0} - - - YES - - - - - - - - {320, 416} - - - 3 - MQA - - 2 - - - - - NO - - IBCocoaTouchFramework - - - - - YES - - - view - - - - 7 - - - - - YES - - 0 - - - - - - 1 - - - YES - - - - - - - - - - - - - - - - - -1 - - - File's Owner - - - -2 - - - - - 9 - - - - - 10 - - - - - 11 - - - - - 12 - - - - - 13 - - - - - 14 - - - - - 15 - - - - - 16 - - - - - 17 - - - - - 18 - - - - - 19 - - - - - 20 - - - - - - - YES - - YES - -1.CustomClassName - -2.CustomClassName - 1.IBEditorWindowLastContentRect - 1.IBPluginDependency - 10.IBPluginDependency - 11.IBPluginDependency - 12.IBPluginDependency - 13.IBPluginDependency - 14.IBPluginDependency - 15.IBPluginDependency - 16.IBPluginDependency - 17.IBPluginDependency - 18.IBPluginDependency - 19.IBPluginDependency - 20.IBPluginDependency - 9.IBPluginDependency - - - YES - SegmentedControls_iPhone - UIResponder - {{404, 376}, {320, 480}} - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - - YES - - - YES - - - - - YES - - - YES - - - - 20 - - - - YES - - SegmentedControls_iPhone - - view - id - - - view - - view - id - - - - IBUserSource - - - - - - 0 - IBCocoaTouchFramework - - com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS - - - - com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3 - - - YES - - 3 - 112 - - diff --git a/StandardControls/StandardControls/Screens/iPhone/SegmentedControl/SegmentedControls_iPhone.xib.cs b/StandardControls/StandardControls/Screens/iPhone/SegmentedControl/SegmentedControls_iPhone.xib.cs deleted file mode 100755 index 819d49ace..000000000 --- a/StandardControls/StandardControls/Screens/iPhone/SegmentedControl/SegmentedControls_iPhone.xib.cs +++ /dev/null @@ -1,48 +0,0 @@ - -using System; -using System.Collections.Generic; -using System.Linq; -using MonoTouch.Foundation; -using MonoTouch.UIKit; - -namespace Example_StandardControls.Screens.iPhone.SegmentedControl -{ - public partial class SegmentedControls_iPhone : UIViewController - { - #region Constructors - - // The IntPtr and initWithCoder constructors are required for controllers that need - // to be able to be created from a xib rather than from managed code - - public SegmentedControls_iPhone (IntPtr handle) : base(handle) - { - Initialize (); - } - - [Export("initWithCoder:")] - public SegmentedControls_iPhone (NSCoder coder) : base(coder) - { - Initialize (); - } - - public SegmentedControls_iPhone () : base("SegmentedControls_iPhone", null) - { - Initialize (); - } - - void Initialize () - { - } - - #endregion - - public override void ViewDidLoad () - { - base.ViewDidLoad (); - - this.Title = "Segmented Controls"; - } - - } -} - diff --git a/StandardControls/StandardControls/Screens/iPhone/SegmentedControl/SegmentedControls_iPhone.xib.designer.cs b/StandardControls/StandardControls/Screens/iPhone/SegmentedControl/SegmentedControls_iPhone.xib.designer.cs deleted file mode 100755 index ab6ad4b01..000000000 --- a/StandardControls/StandardControls/Screens/iPhone/SegmentedControl/SegmentedControls_iPhone.xib.designer.cs +++ /dev/null @@ -1,33 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Mono Runtime Version: 2.0.50727.1433 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -namespace Example_StandardControls.Screens.iPhone.SegmentedControl { - - - // Base type probably should be MonoTouch.UIKit.UIViewController or subclass - [MonoTouch.Foundation.Register("SegmentedControls_iPhone")] - public partial class SegmentedControls_iPhone { - - private MonoTouch.UIKit.UIView __mt_view; - - #pragma warning disable 0169 - [MonoTouch.Foundation.Connect("view")] - private MonoTouch.UIKit.UIView view { - get { - this.__mt_view = ((MonoTouch.UIKit.UIView)(this.GetNativeField("view"))); - return this.__mt_view; - } - set { - this.__mt_view = value; - this.SetNativeField("view", value); - } - } - } -} diff --git a/StandardControls/StandardControls/Screens/iPhone/Sliders/Sliders_iPhone.xib b/StandardControls/StandardControls/Screens/iPhone/Sliders/Sliders_iPhone.xib deleted file mode 100755 index 9dce328b8..000000000 --- a/StandardControls/StandardControls/Screens/iPhone/Sliders/Sliders_iPhone.xib +++ /dev/null @@ -1,316 +0,0 @@ - - - - 768 - 10D573 - 786 - 1038.29 - 460.00 - - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - 112 - - - YES - - - - YES - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - YES - - YES - - - YES - - - - YES - - IBFilesOwner - IBCocoaTouchFramework - - - IBFirstResponder - IBCocoaTouchFramework - - - - 292 - - YES - - - 292 - {{18, 123}, {284, 23}} - - NO - IBCocoaTouchFramework - 0 - 0 - 0.5 - - NSImage - Images/Lightning_Small.png - - - NSImage - Images/Lightning_Large.png - - - - - 292 - {{18, 49}, {284, 23}} - - NO - IBCocoaTouchFramework - 0 - 0 - 0.5 - - - - 292 - {{20, 20}, {124, 21}} - - NO - YES - 7 - NO - IBCocoaTouchFramework - Without Images: - - 1 - MCAwIDAAA - - - 1 - 10 - - - - 292 - {{20, 94}, {124, 21}} - - NO - YES - 7 - NO - IBCocoaTouchFramework - With Images: - - - 1 - 10 - - - {320, 416} - - - 3 - MQA - - 2 - - - - - NO - - IBCocoaTouchFramework - - - - - YES - - - view - - - - 7 - - - - sldrWithImages - - - - 13 - - - - - YES - - 0 - - - - - - 1 - - - YES - - - - - - - - - -1 - - - File's Owner - - - -2 - - - - - 8 - - - - - 9 - - - - - 10 - - - - - 11 - - - - - - - YES - - YES - -1.CustomClassName - -2.CustomClassName - 1.IBEditorWindowLastContentRect - 1.IBPluginDependency - 10.IBPluginDependency - 11.IBPluginDependency - 8.IBPluginDependency - 9.IBPluginDependency - - - YES - Sliders_iPhone - UIResponder - {{357, 275}, {320, 480}} - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - - YES - - - YES - - - - - YES - - - YES - - - - 13 - - - - YES - - Sliders_iPhone - - YES - - YES - sldrWithImages - view - - - YES - id - id - - - - YES - - YES - sldrWithImages - view - - - YES - - sldrWithImages - id - - - view - id - - - - - IBUserSource - - - - - - 0 - IBCocoaTouchFramework - - com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS - - - - com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3 - - - YES - - 3 - - YES - - YES - Images/Lightning_Large.png - Images/Lightning_Small.png - - - YES - {16, 16} - {16, 16} - - - 112 - - diff --git a/StandardControls/StandardControls/Screens/iPhone/Sliders/Sliders_iPhone.xib.cs b/StandardControls/StandardControls/Screens/iPhone/Sliders/Sliders_iPhone.xib.cs deleted file mode 100755 index 09405bcc4..000000000 --- a/StandardControls/StandardControls/Screens/iPhone/Sliders/Sliders_iPhone.xib.cs +++ /dev/null @@ -1,52 +0,0 @@ - -using System; -using System.Collections.Generic; -using System.Linq; -using MonoTouch.Foundation; -using MonoTouch.UIKit; -using System.Drawing; - -namespace Example_StandardControls.Screens.iPhone.Sliders -{ - public partial class Sliders_iPhone : UIViewController - { - #region Constructors - - // The IntPtr and initWithCoder constructors are required for controllers that need - // to be able to be created from a xib rather than from managed code - - public Sliders_iPhone (IntPtr handle) : base(handle) - { - Initialize (); - } - - [Export("initWithCoder:")] - public Sliders_iPhone (NSCoder coder) : base(coder) - { - Initialize (); - } - - public Sliders_iPhone () : base("Sliders_iPhone", null) - { - Initialize (); - } - - void Initialize () - { - } - - #endregion - - public override void ViewDidLoad () - { - base.ViewDidLoad (); - - this.Title = "Sliders"; - - this.sldrWithImages.SetThumbImage(UIImage.FromFile("Images/Icons/29_icon.png"), UIControlState.Normal); - - } - - } -} - diff --git a/StandardControls/StandardControls/Screens/iPhone/Sliders/Sliders_iPhone.xib.designer.cs b/StandardControls/StandardControls/Screens/iPhone/Sliders/Sliders_iPhone.xib.designer.cs deleted file mode 100755 index 098e31645..000000000 --- a/StandardControls/StandardControls/Screens/iPhone/Sliders/Sliders_iPhone.xib.designer.cs +++ /dev/null @@ -1,47 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Mono Runtime Version: 2.0.50727.1433 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -namespace Example_StandardControls.Screens.iPhone.Sliders { - - - // Base type probably should be MonoTouch.UIKit.UIViewController or subclass - [MonoTouch.Foundation.Register("Sliders_iPhone")] - public partial class Sliders_iPhone { - - private MonoTouch.UIKit.UIView __mt_view; - - private MonoTouch.UIKit.UISlider __mt_sldrWithImages; - - #pragma warning disable 0169 - [MonoTouch.Foundation.Connect("view")] - private MonoTouch.UIKit.UIView view { - get { - this.__mt_view = ((MonoTouch.UIKit.UIView)(this.GetNativeField("view"))); - return this.__mt_view; - } - set { - this.__mt_view = value; - this.SetNativeField("view", value); - } - } - - [MonoTouch.Foundation.Connect("sldrWithImages")] - private MonoTouch.UIKit.UISlider sldrWithImages { - get { - this.__mt_sldrWithImages = ((MonoTouch.UIKit.UISlider)(this.GetNativeField("sldrWithImages"))); - return this.__mt_sldrWithImages; - } - set { - this.__mt_sldrWithImages = value; - this.SetNativeField("sldrWithImages", value); - } - } - } -} diff --git a/StandardControls/StandardControls/Screens/iPhone/Switches/Switches_iPhone.xib b/StandardControls/StandardControls/Screens/iPhone/Switches/Switches_iPhone.xib deleted file mode 100755 index 3e42dd0ed..000000000 --- a/StandardControls/StandardControls/Screens/iPhone/Switches/Switches_iPhone.xib +++ /dev/null @@ -1,255 +0,0 @@ - - - - 768 - 10D573 - 786 - 1038.29 - 460.00 - - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - 112 - - - YES - - - - YES - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - YES - - YES - - - YES - - - - YES - - IBFilesOwner - IBCocoaTouchFramework - - - IBFirstResponder - IBCocoaTouchFramework - - - - 292 - - YES - - - 292 - {{122, 20}, {94, 27}} - - NO - IBCocoaTouchFramework - 0 - 0 - YES - - - - 292 - {{20, 20}, {94, 27}} - - NO - IBCocoaTouchFramework - 0 - 0 - - - {320, 460} - - - 3 - MQA - - 2 - - - - IBCocoaTouchFramework - - - - - YES - - - view - - - - 7 - - - - swchOne - - - - 12 - - - - swchTwo - - - - 13 - - - - - YES - - 0 - - - - - - 1 - - - YES - - - - - - - -1 - - - File's Owner - - - -2 - - - - - 8 - - - - - 9 - - - - - - - YES - - YES - -1.CustomClassName - -2.CustomClassName - 1.IBEditorWindowLastContentRect - 1.IBPluginDependency - 8.IBPluginDependency - 9.IBPluginDependency - - - YES - Switches_iPhone - UIResponder - {{357, 275}, {320, 480}} - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - - YES - - - YES - - - - - YES - - - YES - - - - 13 - - - - YES - - Switches_iPhone - - YES - - YES - swchOne - swchTwo - view - - - YES - id - id - id - - - - YES - - YES - swchOne - swchTwo - view - - - YES - - swchOne - id - - - swchTwo - id - - - view - id - - - - - IBUserSource - - - - - - 0 - IBCocoaTouchFramework - - com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS - - - - com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3 - - - YES - - 3 - 112 - - diff --git a/StandardControls/StandardControls/Screens/iPhone/Switches/Switches_iPhone.xib.cs b/StandardControls/StandardControls/Screens/iPhone/Switches/Switches_iPhone.xib.cs deleted file mode 100755 index 61d93ff98..000000000 --- a/StandardControls/StandardControls/Screens/iPhone/Switches/Switches_iPhone.xib.cs +++ /dev/null @@ -1,57 +0,0 @@ - -using System; -using System.Collections.Generic; -using System.Linq; -using MonoTouch.Foundation; -using MonoTouch.UIKit; - -namespace Example_StandardControls.Screens.iPhone.Switches -{ - public partial class Switches_iPhone : UIViewController - { - #region Constructors - - // The IntPtr and initWithCoder constructors are required for controllers that need - // to be able to be created from a xib rather than from managed code - - public Switches_iPhone (IntPtr handle) : base(handle) - { - Initialize (); - } - - [Export("initWithCoder:")] - public Switches_iPhone (NSCoder coder) : base(coder) - { - Initialize (); - } - - public Switches_iPhone () : base("Switches_iPhone", null) - { - Initialize (); - } - - void Initialize () - { - } - - #endregion - - public override void ViewDidLoad () - { - base.ViewDidLoad (); - - this.Title = "Switches"; - - - this.swchOne.ValueChanged += delegate { - new UIAlertView ("Switch one change!", "is on: " + this.swchOne.On.ToString (), null, "OK", null).Show (); - }; - this.swchTwo.ValueChanged += delegate { - new UIAlertView ("Switch two change!", "is on: " + this.swchTwo.On.ToString (), null, "OK", null).Show (); - }; - } - - - } -} - diff --git a/StandardControls/StandardControls/Screens/iPhone/Switches/Switches_iPhone.xib.designer.cs b/StandardControls/StandardControls/Screens/iPhone/Switches/Switches_iPhone.xib.designer.cs deleted file mode 100755 index 5600d5ce3..000000000 --- a/StandardControls/StandardControls/Screens/iPhone/Switches/Switches_iPhone.xib.designer.cs +++ /dev/null @@ -1,61 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Mono Runtime Version: 2.0.50727.1433 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -namespace Example_StandardControls.Screens.iPhone.Switches { - - - // Base type probably should be MonoTouch.UIKit.UIViewController or subclass - [MonoTouch.Foundation.Register("Switches_iPhone")] - public partial class Switches_iPhone { - - private MonoTouch.UIKit.UIView __mt_view; - - private MonoTouch.UIKit.UISwitch __mt_swchOne; - - private MonoTouch.UIKit.UISwitch __mt_swchTwo; - - #pragma warning disable 0169 - [MonoTouch.Foundation.Connect("view")] - private MonoTouch.UIKit.UIView view { - get { - this.__mt_view = ((MonoTouch.UIKit.UIView)(this.GetNativeField("view"))); - return this.__mt_view; - } - set { - this.__mt_view = value; - this.SetNativeField("view", value); - } - } - - [MonoTouch.Foundation.Connect("swchOne")] - private MonoTouch.UIKit.UISwitch swchOne { - get { - this.__mt_swchOne = ((MonoTouch.UIKit.UISwitch)(this.GetNativeField("swchOne"))); - return this.__mt_swchOne; - } - set { - this.__mt_swchOne = value; - this.SetNativeField("swchOne", value); - } - } - - [MonoTouch.Foundation.Connect("swchTwo")] - private MonoTouch.UIKit.UISwitch swchTwo { - get { - this.__mt_swchTwo = ((MonoTouch.UIKit.UISwitch)(this.GetNativeField("swchTwo"))); - return this.__mt_swchTwo; - } - set { - this.__mt_swchTwo = value; - this.SetNativeField("swchTwo", value); - } - } - } -} diff --git a/StandardControls/StandardControls/Screens/iPhone/TapToZoomScrollView/Controller.cs b/StandardControls/StandardControls/Screens/iPhone/TapToZoomScrollView/Controller.cs deleted file mode 100755 index ef1fa9a58..000000000 --- a/StandardControls/StandardControls/Screens/iPhone/TapToZoomScrollView/Controller.cs +++ /dev/null @@ -1,47 +0,0 @@ -using System; -using MonoTouch.UIKit; -using System.Drawing; -using MonoTouch.CoreGraphics; -using Example_StandardControls.Controls; - -namespace Example_StandardControls.Screens.iPhone.TapToZoomScrollView -{ - public class Controller : UIViewController - { - TapZoomScrollView scrollView; - UIImageView imageView; - - #region -= constructors =- - - public Controller () : base() - { - } - - #endregion - - public override void ViewDidLoad () - { - base.ViewDidLoad (); - - // set the background color of the view to white - this.View.BackgroundColor = UIColor.White; - - // create our scroll view - scrollView = new TapZoomScrollView ( - new RectangleF (0, 0, this.View.Frame.Width, this.View.Frame.Height - this.NavigationController.NavigationBar.Frame.Height)); - this.View.AddSubview (scrollView); - - // create our image view - imageView = new UIImageView (UIImage.FromFile ("Images/Icons/512_icon.png")); - scrollView.ContentSize = imageView.Image.Size; - scrollView.MaximumZoomScale = 3f; - scrollView.MinimumZoomScale = .1f; - scrollView.AddSubview (imageView); - - // when the scroll view wants to zoom, it asks for the view to zoom, so - // in this case, we tell it that we want it to zoom the image view - scrollView.ViewForZoomingInScrollView += delegate(UIScrollView sv) { return imageView; }; - } - - } -} diff --git a/StandardControls/StandardControls/Screens/iPhone/TextFields/TextFields_iPhone.xib b/StandardControls/StandardControls/Screens/iPhone/TextFields/TextFields_iPhone.xib deleted file mode 100755 index 6b7b67a04..000000000 --- a/StandardControls/StandardControls/Screens/iPhone/TextFields/TextFields_iPhone.xib +++ /dev/null @@ -1,268 +0,0 @@ - - - - 768 - 10D573 - 786 - 1038.29 - 460.00 - - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - 112 - - - YES - - - - YES - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - YES - - YES - - - YES - - - - YES - - IBFilesOwner - IBCocoaTouchFramework - - - IBFirstResponder - IBCocoaTouchFramework - - - - 292 - - YES - - - 292 - {{20, 20}, {280, 31}} - - NO - YES - IBCocoaTouchFramework - 0 - Standard ol' text field! - 3 - - 3 - MAA - - 2 - - - YES - 17 - - IBCocoaTouchFramework - - - - - 292 - {{20, 59}, {280, 31}} - - NO - YES - IBCocoaTouchFramework - 0 - Different border! - 1 - - 3 - MAA - - - YES - 17 - - IBCocoaTouchFramework - - - - - 292 - {{20, 98}, {280, 31}} - - NO - YES - IBCocoaTouchFramework - 0 - No Border! You can modify the font too! - - 2 - MC40NjY2NjY2OTg1IDAuMzYwNzg0MzIyIDAuMjU4ODIzNTQzOAA - - - HelveticaNeue-Bold - 13 - 16 - - 1 - YES - 17 - - IBCocoaTouchFramework - - - - {320, 460} - - - 3 - MQA - - - - IBCocoaTouchFramework - - - - - YES - - - view - - - - 7 - - - - - YES - - 0 - - - - - - 1 - - - YES - - - - - - - - -1 - - - File's Owner - - - -2 - - - - - 8 - - - - - 9 - - - - - 10 - - - - - - - YES - - YES - -1.CustomClassName - -2.CustomClassName - 1.IBEditorWindowLastContentRect - 1.IBPluginDependency - 10.IBPluginDependency - 8.IBPluginDependency - 9.IBPluginDependency - - - YES - TextFields_iPhone - UIResponder - {{357, 275}, {320, 480}} - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - - YES - - - YES - - - - - YES - - - YES - - - - 10 - - - - YES - - TextFields_iPhone - - view - id - - - view - - view - id - - - - IBUserSource - - - - - - 0 - IBCocoaTouchFramework - - com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS - - - - com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3 - - - YES - - 3 - 112 - - diff --git a/StandardControls/StandardControls/Screens/iPhone/TextFields/TextFields_iPhone.xib.cs b/StandardControls/StandardControls/Screens/iPhone/TextFields/TextFields_iPhone.xib.cs deleted file mode 100755 index 5b6badf2a..000000000 --- a/StandardControls/StandardControls/Screens/iPhone/TextFields/TextFields_iPhone.xib.cs +++ /dev/null @@ -1,58 +0,0 @@ - -using System; -using System.Collections.Generic; -using System.Linq; -using MonoTouch.Foundation; -using MonoTouch.UIKit; -using System.Drawing; - -namespace Example_StandardControls.Screens.iPhone.TextFields -{ - public partial class TextFields_iPhone : UIViewController - { - UITextField textField; - - #region Constructors - - // The IntPtr and initWithCoder constructors are required for controllers that need - // to be able to be created from a xib rather than from managed code - - public TextFields_iPhone (IntPtr handle) : base(handle) - { - Initialize (); - } - - [Export("initWithCoder:")] - public TextFields_iPhone (NSCoder coder) : base(coder) - { - Initialize (); - } - - public TextFields_iPhone () : base("TextFields_iPhone", null) - { - Initialize (); - } - - void Initialize () - { - } - - #endregion - - public override void ViewDidLoad () - { - base.ViewDidLoad (); - - this.Title = "UITextField"; - - textField = new UITextField (new RectangleF (20, 150, 280, 33)); - textField.Font = UIFont.FromName ("Helvetica-Bold", 20); - textField.BorderStyle = UITextBorderStyle.Bezel; - textField.Placeholder = "edit me!"; - - this.View.AddSubview (textField); - } - - } -} - diff --git a/StandardControls/StandardControls/Screens/iPhone/TextFields/TextFields_iPhone.xib.designer.cs b/StandardControls/StandardControls/Screens/iPhone/TextFields/TextFields_iPhone.xib.designer.cs deleted file mode 100755 index 661044d15..000000000 --- a/StandardControls/StandardControls/Screens/iPhone/TextFields/TextFields_iPhone.xib.designer.cs +++ /dev/null @@ -1,33 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Mono Runtime Version: 2.0.50727.1433 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -namespace Example_StandardControls.Screens.iPhone.TextFields { - - - // Base type probably should be MonoTouch.UIKit.UIViewController or subclass - [MonoTouch.Foundation.Register("TextFields_iPhone")] - public partial class TextFields_iPhone { - - private MonoTouch.UIKit.UIView __mt_view; - - #pragma warning disable 0169 - [MonoTouch.Foundation.Connect("view")] - private MonoTouch.UIKit.UIView view { - get { - this.__mt_view = ((MonoTouch.UIKit.UIView)(this.GetNativeField("view"))); - return this.__mt_view; - } - set { - this.__mt_view = value; - this.SetNativeField("view", value); - } - } - } -} diff --git a/StandardControls/StandardControls/Screens/iPhone/Toolbar/ProgrammaticToolbar_Controller.cs b/StandardControls/StandardControls/Screens/iPhone/Toolbar/ProgrammaticToolbar_Controller.cs deleted file mode 100755 index e3e2eb672..000000000 --- a/StandardControls/StandardControls/Screens/iPhone/Toolbar/ProgrammaticToolbar_Controller.cs +++ /dev/null @@ -1,76 +0,0 @@ -using System; -using MonoTouch.UIKit; -using System.Drawing; -using MonoTouch.CoreGraphics; -using Example_StandardControls.Controls; - -namespace Example_StandardControls.Screens.iPhone.Toolbar -{ - public class ProgrammaticToolbar_Controller : UIViewController - { - UIToolbar toolbar; - - #region -= constructors =- - - public ProgrammaticToolbar_Controller () : base() - { - } - - #endregion - - public override void ViewDidLoad () - { - base.ViewDidLoad (); - - this.Title = "Programmatic Toolbar"; - - // set the background color of the view to white - this.View.BackgroundColor = UIColor.White; - - // new up the toolbar - float toolbarHeight = 44; - toolbar = new UIToolbar (new RectangleF (0 - , this.View.Frame.Height - this.NavigationController.NavigationBar.Frame.Height - , this.View.Frame.Width, toolbarHeight)); - toolbar.AutoresizingMask = UIViewAutoresizing.FlexibleTopMargin | UIViewAutoresizing.FlexibleWidth; - - - // button one - string buttonTitle = "One"; - UIBarButtonItem btnOne = new UIBarButtonItem (buttonTitle, UIBarButtonItemStyle.Bordered, null); - btnOne.Clicked += (s, e) => { new UIAlertView ("click!", "btnOne clicked", null, "OK", null).Show (); }; - - // fixed width - UIBarButtonItem fixedWidth = new UIBarButtonItem (UIBarButtonSystemItem.FixedSpace); - fixedWidth.Width = 25; - - // button two - UIBarButtonItem btnTwo = new UIBarButtonItem ("second", UIBarButtonItemStyle.Bordered, null); - - // flexible width space - UIBarButtonItem flexibleWidth = new UIBarButtonItem (UIBarButtonSystemItem.FlexibleSpace); - - // button three - UIBarButtonItem btnThree = new UIBarButtonItem ("3", UIBarButtonItemStyle.Bordered, null); - - // button four - UIBarButtonItem btnFour = new UIBarButtonItem ("another!", UIBarButtonItemStyle.Bordered, null); - - // create the items array - UIBarButtonItem[] items = new UIBarButtonItem[] { - btnOne, fixedWidth, btnTwo, flexibleWidth, btnThree, btnFour }; - - // add the items to the toolbar - toolbar.SetItems (items, false); - - // add the toolbar to the page - this.View.AddSubview (toolbar); - } - - - public override bool ShouldAutorotateToInterfaceOrientation (UIInterfaceOrientation toInterfaceOrientation) - { - return true; - } - } -} diff --git a/StandardControls/StandardControls/Screens/iPhone/Toolbar/Toolbar1_iPhone.xib b/StandardControls/StandardControls/Screens/iPhone/Toolbar/Toolbar1_iPhone.xib deleted file mode 100755 index 3c0864e74..000000000 --- a/StandardControls/StandardControls/Screens/iPhone/Toolbar/Toolbar1_iPhone.xib +++ /dev/null @@ -1,355 +0,0 @@ - - - - 768 - 10F569 - 788 - 1038.29 - 461.00 - - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - 117 - - - YES - - - - YES - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - YES - - YES - - - YES - - - - YES - - IBFilesOwner - IBCocoaTouchFramework - - - IBFirstResponder - IBCocoaTouchFramework - - - - 292 - - YES - - - 266 - {{0, 416}, {320, 44}} - - NO - NO - IBCocoaTouchFramework - - YES - - 1 - IBCocoaTouchFramework - 1 - - - - IBCocoaTouchFramework - 25 - - 6 - - - Second - IBCocoaTouchFramework - 1 - - - - IBCocoaTouchFramework - - 5 - - - 3 - IBCocoaTouchFramework - 1 - - 15 - - - IBCocoaTouchFramework - 1 - - 0 - - - - - {320, 460} - - - 3 - MQA - - 2 - - - - IBCocoaTouchFramework - - - - - YES - - - view - - - - 7 - - - - btnFour - - - - 14 - - - - btnOne - - - - 15 - - - - btnThree - - - - 16 - - - - btnTwo - - - - 17 - - - - - YES - - 0 - - - - - - 1 - - - YES - - - - - - -1 - - - File's Owner - - - -2 - - - - - 8 - - - YES - - - - - - - - - - - 9 - - - - - 10 - - - - - 11 - - - - - 12 - - - - - 13 - - - - - 18 - - - - - - - YES - - YES - -1.CustomClassName - -2.CustomClassName - 1.IBEditorWindowLastContentRect - 1.IBPluginDependency - 10.IBPluginDependency - 11.IBPluginDependency - 12.IBPluginDependency - 13.IBPluginDependency - 18.IBPluginDependency - 8.IBPluginDependency - 9.IBPluginDependency - - - YES - Toolbar1_iPhone - UIResponder - {{379, 376}, {320, 480}} - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - - YES - - - YES - - - - - YES - - - YES - - - - 18 - - - - YES - - Toolbar1_iPhone - - YES - - YES - btnFour - btnOne - btnThree - btnTwo - view - - - YES - id - id - id - id - id - - - - YES - - YES - btnFour - btnOne - btnThree - btnTwo - view - - - YES - - btnFour - id - - - btnOne - id - - - btnThree - id - - - btnTwo - id - - - view - id - - - - - IBUserSource - - - - - - 0 - IBCocoaTouchFramework - - com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS - - - - com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3 - - - YES - - 3 - 117 - - diff --git a/StandardControls/StandardControls/Screens/iPhone/Toolbar/Toolbar1_iPhone.xib.cs b/StandardControls/StandardControls/Screens/iPhone/Toolbar/Toolbar1_iPhone.xib.cs deleted file mode 100755 index fa92a9e1f..000000000 --- a/StandardControls/StandardControls/Screens/iPhone/Toolbar/Toolbar1_iPhone.xib.cs +++ /dev/null @@ -1,55 +0,0 @@ - -using System; -using System.Collections.Generic; -using System.Linq; -using MonoTouch.Foundation; -using MonoTouch.UIKit; - -namespace Example_StandardControls.Screens.iPhone.Toolbar -{ - public partial class Toolbar1_iPhone : UIViewController - { - #region Constructors - - // The IntPtr and initWithCoder constructors are required for items that need - // to be able to be created from a xib rather than from managed code - - public Toolbar1_iPhone (IntPtr handle) : base(handle) - { - Initialize (); - } - - [Export("initWithCoder:")] - public Toolbar1_iPhone (NSCoder coder) : base(coder) - { - Initialize (); - } - - public Toolbar1_iPhone () : base("Toolbar1_iPhone", null) - { - Initialize (); - } - - void Initialize () - { - } - - #endregion - - - public override void ViewDidLoad () - { - base.ViewDidLoad (); - - this.Title = "Toolbar"; - - this.btnOne.Clicked += (s, e) => { new UIAlertView ("click!", "btnOne clicked", null, "OK", null).Show (); }; - } - - public override bool ShouldAutorotateToInterfaceOrientation (UIInterfaceOrientation toInterfaceOrientation) - { - return true; - } - } -} - diff --git a/StandardControls/StandardControls/Screens/iPhone/Toolbar/Toolbar1_iPhone.xib.designer.cs b/StandardControls/StandardControls/Screens/iPhone/Toolbar/Toolbar1_iPhone.xib.designer.cs deleted file mode 100755 index e28df6287..000000000 --- a/StandardControls/StandardControls/Screens/iPhone/Toolbar/Toolbar1_iPhone.xib.designer.cs +++ /dev/null @@ -1,89 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Mono Runtime Version: 2.0.50727.1433 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -namespace Example_StandardControls.Screens.iPhone.Toolbar { - - - // Base type probably should be MonoTouch.UIKit.UIViewController or subclass - [MonoTouch.Foundation.Register("Toolbar1_iPhone")] - public partial class Toolbar1_iPhone { - - private MonoTouch.UIKit.UIView __mt_view; - - private MonoTouch.UIKit.UIBarButtonItem __mt_btnFour; - - private MonoTouch.UIKit.UIBarButtonItem __mt_btnOne; - - private MonoTouch.UIKit.UIBarButtonItem __mt_btnThree; - - private MonoTouch.UIKit.UIBarButtonItem __mt_btnTwo; - - #pragma warning disable 0169 - [MonoTouch.Foundation.Connect("view")] - private MonoTouch.UIKit.UIView view { - get { - this.__mt_view = ((MonoTouch.UIKit.UIView)(this.GetNativeField("view"))); - return this.__mt_view; - } - set { - this.__mt_view = value; - this.SetNativeField("view", value); - } - } - - [MonoTouch.Foundation.Connect("btnFour")] - private MonoTouch.UIKit.UIBarButtonItem btnFour { - get { - this.__mt_btnFour = ((MonoTouch.UIKit.UIBarButtonItem)(this.GetNativeField("btnFour"))); - return this.__mt_btnFour; - } - set { - this.__mt_btnFour = value; - this.SetNativeField("btnFour", value); - } - } - - [MonoTouch.Foundation.Connect("btnOne")] - private MonoTouch.UIKit.UIBarButtonItem btnOne { - get { - this.__mt_btnOne = ((MonoTouch.UIKit.UIBarButtonItem)(this.GetNativeField("btnOne"))); - return this.__mt_btnOne; - } - set { - this.__mt_btnOne = value; - this.SetNativeField("btnOne", value); - } - } - - [MonoTouch.Foundation.Connect("btnThree")] - private MonoTouch.UIKit.UIBarButtonItem btnThree { - get { - this.__mt_btnThree = ((MonoTouch.UIKit.UIBarButtonItem)(this.GetNativeField("btnThree"))); - return this.__mt_btnThree; - } - set { - this.__mt_btnThree = value; - this.SetNativeField("btnThree", value); - } - } - - [MonoTouch.Foundation.Connect("btnTwo")] - private MonoTouch.UIKit.UIBarButtonItem btnTwo { - get { - this.__mt_btnTwo = ((MonoTouch.UIKit.UIBarButtonItem)(this.GetNativeField("btnTwo"))); - return this.__mt_btnTwo; - } - set { - this.__mt_btnTwo = value; - this.SetNativeField("btnTwo", value); - } - } - } -} diff --git a/StandardControls/StandardControls/Screens/iPhone/Toolbar/ToolbarItems.xib b/StandardControls/StandardControls/Screens/iPhone/Toolbar/ToolbarItems.xib deleted file mode 100755 index fd00d37f3..000000000 --- a/StandardControls/StandardControls/Screens/iPhone/Toolbar/ToolbarItems.xib +++ /dev/null @@ -1,372 +0,0 @@ - - - - 768 - 10F569 - 788 - 1038.29 - 461.00 - - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - 117 - - - YES - - - - YES - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - YES - - YES - - - YES - - - - YES - - IBFilesOwner - IBCocoaTouchFramework - - - IBFirstResponder - IBCocoaTouchFramework - - - - 292 - - YES - - - 266 - {{0, 256}, {480, 44}} - - NO - NO - IBCocoaTouchFramework - - YES - - Item - IBCocoaTouchFramework - 1 - - - - Item - IBCocoaTouchFramework - 2 - - - - IBCocoaTouchFramework - 1 - - 4 - - - IBCocoaTouchFramework - - 4 - - - IBCocoaTouchFramework - - 7 - - - IBCocoaTouchFramework - - 8 - - - IBCocoaTouchFramework - - 9 - - - IBCocoaTouchFramework - - 10 - - - IBCocoaTouchFramework - - 16 - - - IBCocoaTouchFramework - - 14 - - - IBCocoaTouchFramework - - 15 - - - IBCocoaTouchFramework - - 19 - - - IBCocoaTouchFramework - - 23 - - - - - {480, 300} - - - 3 - MQA - - 2 - - - - - 3 - - IBCocoaTouchFramework - - - - - YES - - - view - - - - 7 - - - - - YES - - 0 - - - - - - 1 - - - YES - - - - - - -1 - - - File's Owner - - - -2 - - - - - 8 - - - YES - - - - - - - - - - - - - - - - - - 9 - - - - - 10 - - - - - 11 - - - - - 12 - - - - - 13 - - - - - 14 - - - - - 15 - - - - - 16 - - - - - 17 - - - - - 18 - - - - - 19 - - - - - 20 - - - - - 21 - - - - - - - YES - - YES - -1.CustomClassName - -2.CustomClassName - 1.IBEditorWindowLastContentRect - 1.IBPluginDependency - 10.IBPluginDependency - 11.IBPluginDependency - 12.IBPluginDependency - 13.IBPluginDependency - 14.IBPluginDependency - 15.IBPluginDependency - 16.IBPluginDependency - 17.IBPluginDependency - 18.IBPluginDependency - 19.IBPluginDependency - 20.IBPluginDependency - 21.IBPluginDependency - 8.IBPluginDependency - 9.IBPluginDependency - - - YES - ToolbarItems - UIResponder - {{277, 355}, {480, 320}} - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - - YES - - - YES - - - - - YES - - - YES - - - - 21 - - - - YES - - ToolbarItems - - view - id - - - view - - view - id - - - - IBUserSource - - - - - - 0 - IBCocoaTouchFramework - - com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS - - - - com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3 - - - YES - - 3 - 117 - - diff --git a/StandardControls/StandardControls/Screens/iPhone/Toolbar/ToolbarItems.xib.cs b/StandardControls/StandardControls/Screens/iPhone/Toolbar/ToolbarItems.xib.cs deleted file mode 100755 index a994d4d79..000000000 --- a/StandardControls/StandardControls/Screens/iPhone/Toolbar/ToolbarItems.xib.cs +++ /dev/null @@ -1,59 +0,0 @@ - -using System; -using System.Collections.Generic; -using System.Linq; -using MonoTouch.Foundation; -using MonoTouch.UIKit; - -namespace Example_StandardControls.Screens.iPhone.Toolbar -{ - public partial class ToolbarItems : UIViewController - { - #region Constructors - - // The IntPtr and initWithCoder constructors are required for items that need - // to be able to be created from a xib rather than from managed code - - public ToolbarItems (IntPtr handle) : base(handle) - { - Initialize (); - } - - [Export("initWithCoder:")] - public ToolbarItems (NSCoder coder) : base(coder) - { - Initialize (); - } - - public ToolbarItems () : base("ToolbarItems", null) - { - Initialize (); - } - - void Initialize () - { - } - - #endregion - - public override void ViewDidLoad () - { - base.ViewDidLoad (); - - this.Title = "Various toolbar items"; - } - - public override bool ShouldAutorotateToInterfaceOrientation (UIInterfaceOrientation toInterfaceOrientation) - { - if (toInterfaceOrientation == UIInterfaceOrientation.LandscapeLeft || toInterfaceOrientation == UIInterfaceOrientation.LandscapeRight) - { - return true; - } - else - { - return false; - } - } - } -} - diff --git a/StandardControls/StandardControls/Screens/iPhone/Toolbar/ToolbarItems.xib.designer.cs b/StandardControls/StandardControls/Screens/iPhone/Toolbar/ToolbarItems.xib.designer.cs deleted file mode 100755 index 14d1f2e72..000000000 --- a/StandardControls/StandardControls/Screens/iPhone/Toolbar/ToolbarItems.xib.designer.cs +++ /dev/null @@ -1,33 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Mono Runtime Version: 2.0.50727.1433 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -namespace Example_StandardControls.Screens.iPhone.Toolbar { - - - // Base type probably should be MonoTouch.UIKit.UIViewController or subclass - [MonoTouch.Foundation.Register("ToolbarItems")] - public partial class ToolbarItems { - - private MonoTouch.UIKit.UIView __mt_view; - - #pragma warning disable 0169 - [MonoTouch.Foundation.Connect("view")] - private MonoTouch.UIKit.UIView view { - get { - this.__mt_view = ((MonoTouch.UIKit.UIView)(this.GetNativeField("view"))); - return this.__mt_view; - } - set { - this.__mt_view = value; - this.SetNativeField("view", value); - } - } - } -} diff --git a/StandardControls/StandardControls/StandardControls.csproj b/StandardControls/StandardControls/StandardControls.csproj deleted file mode 100644 index 5dc644548..000000000 --- a/StandardControls/StandardControls/StandardControls.csproj +++ /dev/null @@ -1,315 +0,0 @@ - - - - Debug - iPhoneSimulator - 9.0.21022 - 2.0 - {42F47640-1879-403C-9F7E-E1CDAEE2D5C4} - {6BC8ED88-2882-458C-8E55-DFD12B67127B};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - Exe - Example_StandardControls - Example_StandardControls - - - True - full - False - bin\iPhoneSimulator\Debug - DEBUG - prompt - 4 - True - None - - false - - - none - False - bin\iPhoneSimulator\Release - prompt - 4 - None - - false - - - True - full - False - bin\iPhone\Debug - DEBUG - prompt - 4 - True - iPhone Developer - - false - - - - none - False - bin\iPhone\Release - prompt - 4 - iPhone Developer - - false - - - - - - - - - - - - - - - - - ButtonsScreen_iPhone.xib - - - ButtonsScreen_iPhone.xib - - - LabelsScreen_iPhone.xib - - - LabelsScreen_iPhone.xib - - - TextFields_iPhone.xib - - - TextFields_iPhone.xib - - - Switches_iPhone.xib - - - Switches_iPhone.xib - - - Sliders_iPhone.xib - - - Sliders_iPhone.xib - - - ProgressBars_iPhone.xib - - - ProgressBars_iPhone.xib - - - PagerControl_iPhone.xib - - - PagerControl_iPhone.xib - - - - - - AlertViewsScreen_iPhone.xib - - - AlertViewsScreen_iPhone.xib - - - - - - - ActivitySpinnerScreen_iPhone.xib - - - ActivitySpinnerScreen_iPhone.xib - - - - ActionSheets_iPhone.xib - - - ActionSheets_iPhone.xib - - - - ActionSheets_iPad.xib - - - ActionSheets_iPad.xib - - - SegmentedControls_iPhone.xib - - - SegmentedControls_iPhone.xib - - - SegmentedControls2_iPhone.xib - - - SegmentedControls2_iPhone.xib - - - Images_iPhone.xib - - - Images_iPhone.xib - - - Images2_iPhone.xib - - - Images2_iPhone.xib - - - DatePicker_iPhone.xib - - - DatePicker_iPhone.xib - - - DatePickerSimple_iPhone.xib - - - DatePickerSimple_iPhone.xib - - - - DatePickerSimple_iPad.xib - - - DatePickerSimple_iPad.xib - - - ActionSheetDatePicker_iPad.xib - - - ActionSheetDatePicker_iPad.xib - - - PickerView1_iPhone.xib - - - PickerView1_iPhone.xib - - - PickerWithMultipleComponents_iPhone.xib - - - PickerWithMultipleComponents_iPhone.xib - - - Toolbar1_iPhone.xib - - - Toolbar1_iPhone.xib - - - - ToolbarItems.xib - - - ToolbarItems.xib - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/StandardControls/movedto.md b/StandardControls/movedto.md new file mode 100644 index 000000000..ba966f682 --- /dev/null +++ b/StandardControls/movedto.md @@ -0,0 +1 @@ +https://github.com/xamarin/mobile-samples/tree/master/StandardControls \ No newline at end of file diff --git a/TableAndCellStyles/Metadata.xml b/TableAndCellStyles/Metadata.xml deleted file mode 100644 index 84996b80c..000000000 --- a/TableAndCellStyles/Metadata.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - 3ccabde0-fade-46c4-bc9e-bcdf832bf7f3 - false - Intermediate - User Interface - diff --git a/TableAndCellStyles/README.md b/TableAndCellStyles/README.md deleted file mode 100644 index 1a8da817e..000000000 --- a/TableAndCellStyles/README.md +++ /dev/null @@ -1,11 +0,0 @@ -Table and Cell Styles -===================== - -This sample illustrates the various table and cell styles available out of -the box, as well as illustrates how to create custom cells both in code, -and using Xib files. - -Authors -------- - -Bryan Costanich diff --git a/TableAndCellStyles/Screenshots/01.png b/TableAndCellStyles/Screenshots/01.png deleted file mode 100644 index 63bbc84dc..000000000 Binary files a/TableAndCellStyles/Screenshots/01.png and /dev/null differ diff --git a/TableAndCellStyles/Screenshots/02.png b/TableAndCellStyles/Screenshots/02.png deleted file mode 100644 index 61dba96ff..000000000 Binary files a/TableAndCellStyles/Screenshots/02.png and /dev/null differ diff --git a/TableAndCellStyles/Screenshots/03.png b/TableAndCellStyles/Screenshots/03.png deleted file mode 100644 index fc54299c3..000000000 Binary files a/TableAndCellStyles/Screenshots/03.png and /dev/null differ diff --git a/TableAndCellStyles/Screenshots/04.png b/TableAndCellStyles/Screenshots/04.png deleted file mode 100644 index f92739d81..000000000 Binary files a/TableAndCellStyles/Screenshots/04.png and /dev/null differ diff --git a/TableAndCellStyles/Screenshots/05.png b/TableAndCellStyles/Screenshots/05.png deleted file mode 100644 index 8e6bc6941..000000000 Binary files a/TableAndCellStyles/Screenshots/05.png and /dev/null differ diff --git a/TableAndCellStyles/Screenshots/06.png b/TableAndCellStyles/Screenshots/06.png deleted file mode 100644 index 17ab5fe48..000000000 Binary files a/TableAndCellStyles/Screenshots/06.png and /dev/null differ diff --git a/TableAndCellStyles/Screenshots/07.png b/TableAndCellStyles/Screenshots/07.png deleted file mode 100644 index 17ab5fe48..000000000 Binary files a/TableAndCellStyles/Screenshots/07.png and /dev/null differ diff --git a/TableAndCellStyles/Screenshots/08.png b/TableAndCellStyles/Screenshots/08.png deleted file mode 100644 index 17ab5fe48..000000000 Binary files a/TableAndCellStyles/Screenshots/08.png and /dev/null differ diff --git a/TableAndCellStyles/Screenshots/09.png b/TableAndCellStyles/Screenshots/09.png deleted file mode 100644 index 17ab5fe48..000000000 Binary files a/TableAndCellStyles/Screenshots/09.png and /dev/null differ diff --git a/TableAndCellStyles/Screenshots/10.png b/TableAndCellStyles/Screenshots/10.png deleted file mode 100644 index 97a881030..000000000 Binary files a/TableAndCellStyles/Screenshots/10.png and /dev/null differ diff --git a/TableAndCellStyles/Screenshots/11.png b/TableAndCellStyles/Screenshots/11.png deleted file mode 100644 index 24a7bd290..000000000 Binary files a/TableAndCellStyles/Screenshots/11.png and /dev/null differ diff --git a/TableAndCellStyles/Screenshots/12.png b/TableAndCellStyles/Screenshots/12.png deleted file mode 100644 index 37d564e04..000000000 Binary files a/TableAndCellStyles/Screenshots/12.png and /dev/null differ diff --git a/TableAndCellStyles/Screenshots/13.png b/TableAndCellStyles/Screenshots/13.png deleted file mode 100644 index 4e88119e8..000000000 Binary files a/TableAndCellStyles/Screenshots/13.png and /dev/null differ diff --git a/TableAndCellStyles/Screenshots/14.png b/TableAndCellStyles/Screenshots/14.png deleted file mode 100644 index f7b8db391..000000000 Binary files a/TableAndCellStyles/Screenshots/14.png and /dev/null differ diff --git a/TableAndCellStyles/Screenshots/15.png b/TableAndCellStyles/Screenshots/15.png deleted file mode 100644 index b942a0d6a..000000000 Binary files a/TableAndCellStyles/Screenshots/15.png and /dev/null differ diff --git a/TableAndCellStyles/Screenshots/16.png b/TableAndCellStyles/Screenshots/16.png deleted file mode 100644 index 1734db6b2..000000000 Binary files a/TableAndCellStyles/Screenshots/16.png and /dev/null differ diff --git a/TableAndCellStyles/TableAndCellStyles.sln b/TableAndCellStyles/TableAndCellStyles.sln deleted file mode 100644 index 3f540db26..000000000 --- a/TableAndCellStyles/TableAndCellStyles.sln +++ /dev/null @@ -1,26 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 11.00 -# Visual Studio 2010 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TableAndCellStyles", "TableAndCellStyles\TableAndCellStyles.csproj", "{4702FF8D-62D6-4480-B2AD-DFBCFC321BA0}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|iPhoneSimulator = Debug|iPhoneSimulator - Release|iPhoneSimulator = Release|iPhoneSimulator - Debug|iPhone = Debug|iPhone - Release|iPhone = Release|iPhone - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {4702FF8D-62D6-4480-B2AD-DFBCFC321BA0}.Debug|iPhone.ActiveCfg = Debug|iPhone - {4702FF8D-62D6-4480-B2AD-DFBCFC321BA0}.Debug|iPhone.Build.0 = Debug|iPhone - {4702FF8D-62D6-4480-B2AD-DFBCFC321BA0}.Debug|iPhoneSimulator.ActiveCfg = Debug|iPhoneSimulator - {4702FF8D-62D6-4480-B2AD-DFBCFC321BA0}.Debug|iPhoneSimulator.Build.0 = Debug|iPhoneSimulator - {4702FF8D-62D6-4480-B2AD-DFBCFC321BA0}.Release|iPhone.ActiveCfg = Release|iPhone - {4702FF8D-62D6-4480-B2AD-DFBCFC321BA0}.Release|iPhone.Build.0 = Release|iPhone - {4702FF8D-62D6-4480-B2AD-DFBCFC321BA0}.Release|iPhoneSimulator.ActiveCfg = Release|iPhoneSimulator - {4702FF8D-62D6-4480-B2AD-DFBCFC321BA0}.Release|iPhoneSimulator.Build.0 = Release|iPhoneSimulator - EndGlobalSection - GlobalSection(MonoDevelopProperties) = preSolution - StartupItem = TableAndCellStyles\TableAndCellStyles.csproj - EndGlobalSection -EndGlobal diff --git a/TableAndCellStyles/TableAndCellStyles/AppDelegate.cs b/TableAndCellStyles/TableAndCellStyles/AppDelegate.cs deleted file mode 100755 index 702319f73..000000000 --- a/TableAndCellStyles/TableAndCellStyles/AppDelegate.cs +++ /dev/null @@ -1,38 +0,0 @@ -using System; -using MonoTouch.UIKit; -using MonoTouch.Foundation; - -namespace Example_TableAndCellStyles -{ - [Register("AppDelegate")] - public class AppDelegate : UIApplicationDelegate - { - #region declarations and properties - - protected UIWindow window; - protected UINavigationController navController; - protected Example_TableAndCellStyles.Screens.iPhone.Home.HomeNavController iPhoneHome; - - #endregion - - public override bool FinishedLaunching (UIApplication app, NSDictionary options) - { - // create our window - window = new UIWindow (UIScreen.MainScreen.Bounds); - window.MakeKeyAndVisible (); - - // create our navigation controller - navController = new UINavigationController(); - - // create the home screen and add it to the nav controller - iPhoneHome = new Example_TableAndCellStyles.Screens.iPhone.Home.HomeNavController(); - navController.PushViewController(iPhoneHome, false); - - window.RootViewController = navController; - - // - return true; - } - - } -} diff --git a/TableAndCellStyles/TableAndCellStyles/Application.cs b/TableAndCellStyles/TableAndCellStyles/Application.cs deleted file mode 100755 index 0c0f5f64a..000000000 --- a/TableAndCellStyles/TableAndCellStyles/Application.cs +++ /dev/null @@ -1,17 +0,0 @@ -using System; -using MonoTouch.UIKit; - -namespace Example_TableAndCellStyles -{ - public class Application// : UIApplication - { - public static void Main (string[] args) - { - try { - UIApplication.Main (args, null, "AppDelegate"); - } catch (Exception e) { - Console.WriteLine (e.ToString ()); - } - } - } -} diff --git a/TableAndCellStyles/TableAndCellStyles/Code/CustomCells/CustomCellController1.xib b/TableAndCellStyles/TableAndCellStyles/Code/CustomCells/CustomCellController1.xib deleted file mode 100755 index fd2d845fb..000000000 --- a/TableAndCellStyles/TableAndCellStyles/Code/CustomCells/CustomCellController1.xib +++ /dev/null @@ -1,338 +0,0 @@ - - - - 768 - 10F569 - 788 - 1038.29 - 461.00 - - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - 117 - - - YES - - - - YES - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - YES - - YES - - - YES - - - - YES - - IBFilesOwner - IBCocoaTouchFramework - - - IBFirstResponder - IBCocoaTouchFramework - - - - 292 - - YES - - - 256 - - YES - - - 257 - {{214, 5}, {100, 75}} - - NO - IBCocoaTouchFramework - - - - 292 - {{11, 0}, {195, 46}} - - NO - YES - 7 - NO - IBCocoaTouchFramework - Label - - Helvetica - 32 - 16 - - - 2 - MC40NjY2NjY2OTg1IDAuMzYwNzg0MzIyIDAuMjU4ODIzNTQzOAA - - - 1 - 10 - - - - 292 - {{20, 45}, {186, 30}} - - NO - YES - 7 - NO - IBCocoaTouchFramework - Label - - Helvetica - 13 - 16 - - - 3 - MC41AA - - - 1 - 10 - 0 - - - {320, 85} - - - 3 - MCAwAA - - NO - YES - 4 - YES - IBCocoaTouchFramework - - - {320, 85} - - - 1 - MSAxIDEAA - - IBCocoaTouchFramework - 1 - - MyCustomCell1 - - - - - YES - - - celMain - - - - 12 - - - - imgMain - - - - 13 - - - - lblHeading - - - - 14 - - - - lblSubHeading - - - - 15 - - - - - YES - - 0 - - - - - - -1 - - - File's Owner - - - -2 - - - - - 8 - - - YES - - - - - - - - 9 - - - - - 10 - - - - - 11 - - - - - - - YES - - YES - -1.CustomClassName - -2.CustomClassName - 10.IBPluginDependency - 11.IBPluginDependency - 8.IBEditorWindowLastContentRect - 8.IBPluginDependency - 9.IBPluginDependency - - - YES - CustomCellController1 - UIResponder - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - {{459, 695}, {320, 85}} - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - - YES - - - YES - - - - - YES - - - YES - - - - 15 - - - - YES - - CustomCellController1 - - YES - - YES - celMain - imgMain - lblHeading - lblSubHeading - view - - - YES - id - id - id - id - id - - - - YES - - YES - celMain - imgMain - lblHeading - lblSubHeading - view - - - YES - - celMain - id - - - imgMain - id - - - lblHeading - id - - - lblSubHeading - id - - - view - id - - - - - IBUserSource - - - - - - 0 - IBCocoaTouchFramework - - com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS - - - - com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3 - - - YES - - 3 - 117 - - diff --git a/TableAndCellStyles/TableAndCellStyles/Code/CustomCells/CustomCellController1.xib.cs b/TableAndCellStyles/TableAndCellStyles/Code/CustomCells/CustomCellController1.xib.cs deleted file mode 100755 index 543d5a223..000000000 --- a/TableAndCellStyles/TableAndCellStyles/Code/CustomCells/CustomCellController1.xib.cs +++ /dev/null @@ -1,64 +0,0 @@ - -using System; -using System.Collections.Generic; -using System.Linq; -using MonoTouch.Foundation; -using MonoTouch.UIKit; - -namespace Example_TableAndCellStyles.Code.CustomCells -{ - public partial class CustomCellController1 : UIViewController - { - public UITableViewCell Cell - { - get { return this.celMain; } - } - public string Heading - { - get { return this.lblHeading.Text; } - set { this.lblHeading.Text = value; } - } - public string SubHeading - { - get { return this.lblSubHeading.Text; } - set { this.lblSubHeading.Text = value; } - } - - public UIImage Image - { - get { return this.imgMain.Image; } - set { this.imgMain.Image = value; } - } - - - #region Constructors - - // The IntPtr and initWithCoder constructors are required for items that need - // to be able to be created from a xib rather than from managed code - - public CustomCellController1 (IntPtr handle) : base(handle) - { - Initialize (); - } - - [Export("initWithCoder:")] - public CustomCellController1 (NSCoder coder) : base(coder) - { - Initialize (); - } - - public CustomCellController1 ()// : base("CustomCellController1", null) - { - // this next line forces the loading of the xib file to be synchronous - MonoTouch.Foundation.NSBundle.MainBundle.LoadNib ("CustomCellController1", this, null); - Initialize (); - } - - void Initialize () - { - } - - #endregion - } -} - diff --git a/TableAndCellStyles/TableAndCellStyles/Code/CustomCells/CustomCellController1.xib.designer.cs b/TableAndCellStyles/TableAndCellStyles/Code/CustomCells/CustomCellController1.xib.designer.cs deleted file mode 100755 index 9f486eca2..000000000 --- a/TableAndCellStyles/TableAndCellStyles/Code/CustomCells/CustomCellController1.xib.designer.cs +++ /dev/null @@ -1,75 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Mono Runtime Version: 2.0.50727.1433 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -namespace Example_TableAndCellStyles.Code.CustomCells { - - - // Base type probably should be MonoTouch.UIKit.UIViewController or subclass - [MonoTouch.Foundation.Register("CustomCellController1")] - public partial class CustomCellController1 { - - private MonoTouch.UIKit.UITableViewCell __mt_celMain; - - private MonoTouch.UIKit.UIImageView __mt_imgMain; - - private MonoTouch.UIKit.UILabel __mt_lblHeading; - - private MonoTouch.UIKit.UILabel __mt_lblSubHeading; - - #pragma warning disable 0169 - [MonoTouch.Foundation.Connect("celMain")] - private MonoTouch.UIKit.UITableViewCell celMain { - get { - this.__mt_celMain = ((MonoTouch.UIKit.UITableViewCell)(this.GetNativeField("celMain"))); - return this.__mt_celMain; - } - set { - this.__mt_celMain = value; - this.SetNativeField("celMain", value); - } - } - - [MonoTouch.Foundation.Connect("imgMain")] - private MonoTouch.UIKit.UIImageView imgMain { - get { - this.__mt_imgMain = ((MonoTouch.UIKit.UIImageView)(this.GetNativeField("imgMain"))); - return this.__mt_imgMain; - } - set { - this.__mt_imgMain = value; - this.SetNativeField("imgMain", value); - } - } - - [MonoTouch.Foundation.Connect("lblHeading")] - private MonoTouch.UIKit.UILabel lblHeading { - get { - this.__mt_lblHeading = ((MonoTouch.UIKit.UILabel)(this.GetNativeField("lblHeading"))); - return this.__mt_lblHeading; - } - set { - this.__mt_lblHeading = value; - this.SetNativeField("lblHeading", value); - } - } - - [MonoTouch.Foundation.Connect("lblSubHeading")] - private MonoTouch.UIKit.UILabel lblSubHeading { - get { - this.__mt_lblSubHeading = ((MonoTouch.UIKit.UILabel)(this.GetNativeField("lblSubHeading"))); - return this.__mt_lblSubHeading; - } - set { - this.__mt_lblSubHeading = value; - this.SetNativeField("lblSubHeading", value); - } - } - } -} diff --git a/TableAndCellStyles/TableAndCellStyles/Code/CustomCells/CustomCellController2.cs b/TableAndCellStyles/TableAndCellStyles/Code/CustomCells/CustomCellController2.cs deleted file mode 100755 index f9d88e7da..000000000 --- a/TableAndCellStyles/TableAndCellStyles/Code/CustomCells/CustomCellController2.cs +++ /dev/null @@ -1,52 +0,0 @@ -using System; -using MonoTouch.UIKit; -using System.Drawing; - -namespace Example_TableAndCellStyles.Code.CustomCells -{ - public class CustomCellController2 : UIViewController - { - UILabel lblHeading = new UILabel (new RectangleF (11, 0, 195, 46)); - UILabel lblSubHeading = new UILabel (new RectangleF (20, 45, 186, 30)); - UIImageView imgMain = new UIImageView (new RectangleF (214, 5, 100, 75)); - - public UITableViewCell Cell - { - get { return cell; } - } - UITableViewCell cell = new UITableViewCell(UITableViewCellStyle.Default, "CustomCell2"); - - public string Heading - { - get { return lblHeading.Text; } - set { lblHeading.Text = value; } - } - public string SubHeading - { - get { return lblSubHeading.Text; } - set { lblSubHeading.Text = value; } - } - - public UIImage Image - { - get { return imgMain.Image; } - set { imgMain.Image = value; } - } - - public CustomCellController2 () : base() - { - base.View.AddSubview (cell); - cell.AddSubview (lblHeading); - cell.AddSubview (lblSubHeading); - cell.AddSubview (imgMain); - - imgMain.AutoresizingMask = UIViewAutoresizing.FlexibleLeftMargin; - lblHeading.TextColor = UIColor.Brown; - lblHeading.Font = UIFont.SystemFontOfSize (32); - lblSubHeading.TextColor = UIColor.DarkGray; - lblSubHeading.Font = UIFont.SystemFontOfSize (13); - - } - } -} - diff --git a/TableAndCellStyles/TableAndCellStyles/Code/NavigationTable/NavItem.cs b/TableAndCellStyles/TableAndCellStyles/Code/NavigationTable/NavItem.cs deleted file mode 100755 index d96830687..000000000 --- a/TableAndCellStyles/TableAndCellStyles/Code/NavigationTable/NavItem.cs +++ /dev/null @@ -1,133 +0,0 @@ - -using System; -using MonoTouch.UIKit; - -namespace Example_TableAndCellStyles.Code.NavigationTable -{ - - /// - /// - /// - public class NavItem - { - #region declarations - - /// - /// The name of the nav item, shows up as the label - /// - public string Name - { - get { return name; } - set { name = value; } - } - protected string name; - - /// - /// The UIViewController that the nav item opens. Use this property if you - /// wanted to early instantiate the controller when the nav table is built out, - /// otherwise just set the Type property and it will lazy-instantiate when the - /// nav item is clicked on. - /// - public UIViewController Controller - { - get { return controller; } - set { controller = value; } - } - protected UIViewController controller; - - /// - /// Path to the image to show in the nav item - /// - public string ImagePath - { - get { return imagePath; } - set { imagePath = value; } - } - protected string imagePath; - - /// - /// The Type of the UIViewController. Set this to the type and leave the Controller - /// property empty to lazy-instantiate the ViewController when the nav item is - /// clicked. - /// - public Type ControllerType - { - get { return controllerType; } - set { controllerType = value; } - } - protected Type controllerType; - - /// - /// a list of the constructor args (if neccesary) for the controller. use this in - /// conjunction with ControllerType if lazy-creating controllers. - /// - public object[] ControllerConstructorArgs - { - get { return controllerConstructorArgs; } - set - { - controllerConstructorArgs = value; - - controllerConstructorTypes = new Type[controllerConstructorArgs.Length]; - for(int i = 0; i < controllerConstructorArgs.Length; i++) - controllerConstructorTypes[i] = controllerConstructorArgs[i].GetType (); - } - } - protected object[] controllerConstructorArgs = new object[] {}; - - /// - /// The types of constructor args. - /// - public Type[] ControllerConstructorTypes - { - get { return controllerConstructorTypes; } - } - protected Type[] controllerConstructorTypes = Type.EmptyTypes; - - #endregion - - - #region -= constructors =- - - public NavItem () - { - } - - public NavItem (string name) : this() - { - this.name = name; - } - - public NavItem (string name, UIViewController controller) : this(name) - { - this.controller = controller; - } - - public NavItem (string name, Type controllerType) : this(name) - { - this.controllerType = controllerType; - } - - public NavItem (string name, Type controllerType, object[] controllerConstructorArgs) : this(name, controllerType) - { - this.ControllerConstructorArgs = controllerConstructorArgs; - } - - public NavItem (string name, UIViewController controller, string imagePath) : this(name, controller) - { - this.imagePath = imagePath; - } - - public NavItem (string name, string imagePath, Type controllerType) : this(name, controllerType) - { - this.imagePath = imagePath; - } - - public NavItem (string name, string imagePath, Type controllerType, object[] controllerConstructorArgs) : this(name, controllerType, controllerConstructorArgs) - { - this.imagePath = imagePath; - } - - #endregion - } -} diff --git a/TableAndCellStyles/TableAndCellStyles/Code/NavigationTable/NavItemGroup.cs b/TableAndCellStyles/TableAndCellStyles/Code/NavigationTable/NavItemGroup.cs deleted file mode 100755 index fd422460e..000000000 --- a/TableAndCellStyles/TableAndCellStyles/Code/NavigationTable/NavItemGroup.cs +++ /dev/null @@ -1,40 +0,0 @@ -using System; -using System.Collections.Generic; - -namespace Example_TableAndCellStyles.Code.NavigationTable -{ - /// - /// A group that contains table items - /// - public class NavItemGroup - { - public string Name - { - get; - set; - } - - public string Footer - { - get; - set; - } - - public List Items - { - get { return items; } - set { items = value; } - } - protected List items = new List (); - - public NavItemGroup () - { - } - - public NavItemGroup (string name) - { - this.Name = name; - } - } -} - diff --git a/TableAndCellStyles/TableAndCellStyles/Code/NavigationTable/NavItemTableSource.cs b/TableAndCellStyles/TableAndCellStyles/Code/NavigationTable/NavItemTableSource.cs deleted file mode 100755 index 807bebccf..000000000 --- a/TableAndCellStyles/TableAndCellStyles/Code/NavigationTable/NavItemTableSource.cs +++ /dev/null @@ -1,165 +0,0 @@ -using System; -using System.Collections.Generic; -using MonoTouch.UIKit; -using MonoTouch.Foundation; -using System.Reflection; - -namespace Example_TableAndCellStyles.Code.NavigationTable -{ - /// - /// Combined DataSource and Delegate for our UITableView - /// - public class NavItemTableSource : UITableViewSource - { - protected List navItems; - string cellIdentifier = "NavTableCellView"; - UINavigationController navigationController; - - public NavItemTableSource (UINavigationController navigationController, List items) - { - navItems = items; - this.navigationController = navigationController; - } - - /// - /// Called by the TableView to determine how many sections(groups) there are. - /// - public override int NumberOfSections (UITableView tableView) - { - return navItems.Count; - } - - /// - /// Called by the TableView to determine how many cells to create for that particular section. - /// - public override int RowsInSection (UITableView tableview, int section) - { - return navItems[section].Items.Count; - } - - /// - /// Called by the TableView to retrieve the header text for the particular section(group) - /// - public override string TitleForHeader (UITableView tableView, int section) - { - return navItems[section].Name; - } - - /// - /// Called by the TableView to retrieve the footer text for the particular section(group) - /// - public override string TitleForFooter (UITableView tableView, int section) - { - return navItems[section].Footer; - } - - /// - /// Called by the TableView to actually build each cell. - /// - public override UITableViewCell GetCell (UITableView tableView, NSIndexPath indexPath) - { - // declare vars - NavItem navItem = navItems[indexPath.Section].Items[indexPath.Row]; - UIImage navIcon = null; - - var cell = tableView.DequeueReusableCell (cellIdentifier); - if (cell == null) - { - cell = new UITableViewCell (UITableViewCellStyle.Default, cellIdentifier); - cell.Tag = Environment.TickCount; - } - - // set the cell properties - cell.TextLabel.Text = navItems[indexPath.Section].Items[indexPath.Row].Name; - cell.Accessory = UITableViewCellAccessory.DisclosureIndicator; - -// if (!String.IsNullOrEmpty (navItem.ImagePath)) -// { -// navIcon = UIImage.FromFile (navItem.ImagePath); -// if (navIcon != null) -// { -// navTableCellView.IconImage = navIcon; -// } -// } - - // return the cell - return cell; - } - - /// - /// Is called when a row is selected - /// - public override void RowSelected (UITableView tableView, NSIndexPath indexPath) - { - // get a reference to the nav item - NavItem navItem = navItems[indexPath.Section].Items[indexPath.Row]; - - // if the nav item has a proper controller, push it on to the NavigationController - // NOTE: we could also raise an event here, to loosely couple this, but isn't neccessary, - // because we'll only ever use this this way - if (navItem.Controller != null) - { - navigationController.PushViewController (navItem.Controller, true); - // show the nav bar (we don't show it on the home page) - navigationController.NavigationBarHidden = false; - } - else - { - if (navItem.ControllerType != null) - { - // - ConstructorInfo ctor = null; - - // if the nav item has constructor aguments - if (navItem.ControllerConstructorArgs.Length > 0) - { - // look for the constructor - ctor = navItem.ControllerType.GetConstructor (navItem.ControllerConstructorTypes); - } - else - { - // search for the default constructor - ctor = navItem.ControllerType.GetConstructor (System.Type.EmptyTypes); - } - - // if we found the constructor - if (ctor != null) - { - // - UIViewController instance = null; - - if (navItem.ControllerConstructorArgs.Length > 0) - { - // instance the view controller - instance = ctor.Invoke (navItem.ControllerConstructorArgs) as UIViewController; - } - else - { - // instance the view controller - instance = ctor.Invoke (null) as UIViewController; - } - - if (instance != null) - { - // save the object - navItem.Controller = instance; - - // push the view controller onto the stack - navigationController.PushViewController (navItem.Controller, true); - } - else - { - Console.WriteLine ("instance of view controller not created"); - } - } - else - { - Console.WriteLine ("constructor not found"); - } - } - } - } - - } -} - diff --git a/TableAndCellStyles/TableAndCellStyles/Code/TableItem.cs b/TableAndCellStyles/TableAndCellStyles/Code/TableItem.cs deleted file mode 100755 index 8742844b8..000000000 --- a/TableAndCellStyles/TableAndCellStyles/Code/TableItem.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System; -using MonoTouch.UIKit; -namespace Example_TableAndCellStyles.Code -{ - /// - /// Represents our item in the table - /// - public class TableItem - { - public string Heading { get; set; } - - public string SubHeading { get; set; } - - public string ImageName { get; set; } - - public UITableViewCellStyle CellStyle - { - get { return cellStyle; } - set { cellStyle = value; } - } - protected UITableViewCellStyle cellStyle = UITableViewCellStyle.Default; - - public UITableViewCellAccessory CellAccessory - { - get { return cellAccessory; } - set { cellAccessory = value; } - } - protected UITableViewCellAccessory cellAccessory = UITableViewCellAccessory.None; - - public TableItem () { } - - public TableItem (string heading) - { this.Heading = heading; } - } -} - diff --git a/TableAndCellStyles/TableAndCellStyles/Code/TableItemGroup.cs b/TableAndCellStyles/TableAndCellStyles/Code/TableItemGroup.cs deleted file mode 100755 index e48e44992..000000000 --- a/TableAndCellStyles/TableAndCellStyles/Code/TableItemGroup.cs +++ /dev/null @@ -1,24 +0,0 @@ -using System; -using System.Collections.Generic; -using MonoTouch.UIKit; - -namespace Example_TableAndCellStyles.Code -{ - /// - /// A group that contains table items - /// - public class TableItemGroup - { - public string Name { get; set; } - - public string Footer { get; set; } - - public List Items - { - get { return items; } - set { items = value; } - } - protected List items = new List (); - } -} - diff --git a/TableAndCellStyles/TableAndCellStyles/Code/TableSource.cs b/TableAndCellStyles/TableAndCellStyles/Code/TableSource.cs deleted file mode 100755 index 7947a2104..000000000 --- a/TableAndCellStyles/TableAndCellStyles/Code/TableSource.cs +++ /dev/null @@ -1,118 +0,0 @@ -using System; -using MonoTouch.UIKit; -using System.Collections.Generic; -using MonoTouch.Foundation; -using System.IO; - -namespace Example_TableAndCellStyles.Code -{ - /// - /// Combined DataSource and Delegate for our UITableView - /// - public class TableSource : UITableViewSource - { - // declare vars - protected List tableItems; - protected string cellIdentifier = "TableCell"; - - protected TableSource() {} - - public TableSource (List items) - { - tableItems = items; - } - - #region -= data binding/display methods =- - - /// - /// Called by the TableView to determine how many sections(groups) there are. - /// - public override int NumberOfSections (UITableView tableView) - { - return tableItems.Count; - } - - /// - /// Called by the TableView to determine how many cells to create for that particular section. - /// - public override int RowsInSection (UITableView tableview, int section) - { - return tableItems[section].Items.Count; - } - - /// - /// Called by the TableView to retrieve the header text for the particular section(group) - /// - public override string TitleForHeader (UITableView tableView, int section) - { - return tableItems[section].Name; - } - - /// - /// Called by the TableView to retrieve the footer text for the particular section(group) - /// - public override string TitleForFooter (UITableView tableView, int section) - { - return tableItems[section].Footer; - } - - #endregion - - #region -= user interaction methods =- - - public override void RowSelected (UITableView tableView, NSIndexPath indexPath) - { - new UIAlertView("Row Selected" - , tableItems[indexPath.Section].Items[indexPath.Row].Heading, null, "OK", null).Show(); - } - - public override void RowDeselected (UITableView tableView, NSIndexPath indexPath) - { - Console.WriteLine("Row " + indexPath.Row.ToString() + " deselected"); - } - - public override void AccessoryButtonTapped (UITableView tableView, NSIndexPath indexPath) - { - Console.WriteLine("Accessory for Section, " + indexPath.Section.ToString() + " and Row, " + indexPath.Row.ToString() + " tapped"); - } - - #endregion - - /// - /// Called by the TableView to get the actual UITableViewCell to render for the particular section and row - /// - public override UITableViewCell GetCell (UITableView tableView, MonoTouch.Foundation.NSIndexPath indexPath) - { - // declare vars - UITableViewCell cell = tableView.DequeueReusableCell (cellIdentifier); - TableItem item = tableItems[indexPath.Section].Items[indexPath.Row]; - - // if there are no cells to reuse, create a new one - if (cell == null) - cell = new UITableViewCell (item.CellStyle, cellIdentifier); - - // set the item text - cell.TextLabel.Text = tableItems[indexPath.Section].Items[indexPath.Row].Heading; - - // if it's a cell style that supports a subheading, set it - if(item.CellStyle == UITableViewCellStyle.Subtitle - || item.CellStyle == UITableViewCellStyle.Value1 - || item.CellStyle == UITableViewCellStyle.Value2) - { cell.DetailTextLabel.Text = item.SubHeading; } - - // if the item has a valid image, and it's not the contact style (doesn't support images) - if(!string.IsNullOrEmpty(item.ImageName) && item.CellStyle != UITableViewCellStyle.Value2) - { - if(File.Exists(item.ImageName)) - cell.ImageView.Image = UIImage.FromBundle(item.ImageName); - } - - // set the accessory - cell.Accessory = item.CellAccessory; - - return cell; - } - - } -} - diff --git a/TableAndCellStyles/TableAndCellStyles/Code/TableSourceWithIndex.cs b/TableAndCellStyles/TableAndCellStyles/Code/TableSourceWithIndex.cs deleted file mode 100755 index f63aabb99..000000000 --- a/TableAndCellStyles/TableAndCellStyles/Code/TableSourceWithIndex.cs +++ /dev/null @@ -1,40 +0,0 @@ -using System; -using System.Collections.Generic; - -namespace Example_TableAndCellStyles.Code -{ - /// - /// A sample table source implementation that supports a table index - /// - public class TableSourceWithIndex : TableSource - { - Dictionary indexSectionMap = null; - - /// - /// - /// - public TableSourceWithIndex (List items, Dictionary indexSectionMap) - { - tableItems = items; - this.indexSectionMap = indexSectionMap; - } - - /// - /// called by the table view to get a list of the index section titles - /// - public override string[] SectionIndexTitles (MonoTouch.UIKit.UITableView tableView) - { - return new List (indexSectionMap.Keys).ToArray (); - } - - /// - /// called by the table view when a user clicks on an index section. used to retrieve the - /// appropriate section in the table for that particular index. - /// - public override int SectionFor (MonoTouch.UIKit.UITableView tableView, string title, int atIndex) - { - return indexSectionMap[title]; - } - } -} - diff --git a/TableAndCellStyles/TableAndCellStyles/Images/Beach.png b/TableAndCellStyles/TableAndCellStyles/Images/Beach.png deleted file mode 100755 index f55b94050..000000000 Binary files a/TableAndCellStyles/TableAndCellStyles/Images/Beach.png and /dev/null differ diff --git a/TableAndCellStyles/TableAndCellStyles/Images/Beach@2x.png b/TableAndCellStyles/TableAndCellStyles/Images/Beach@2x.png deleted file mode 100755 index f7f31a71b..000000000 Binary files a/TableAndCellStyles/TableAndCellStyles/Images/Beach@2x.png and /dev/null differ diff --git a/TableAndCellStyles/TableAndCellStyles/Images/Plants.png b/TableAndCellStyles/TableAndCellStyles/Images/Plants.png deleted file mode 100755 index f7e13cc3d..000000000 Binary files a/TableAndCellStyles/TableAndCellStyles/Images/Plants.png and /dev/null differ diff --git a/TableAndCellStyles/TableAndCellStyles/Images/Plants@2x.png b/TableAndCellStyles/TableAndCellStyles/Images/Plants@2x.png deleted file mode 100755 index cbfe24cd4..000000000 Binary files a/TableAndCellStyles/TableAndCellStyles/Images/Plants@2x.png and /dev/null differ diff --git a/TableAndCellStyles/TableAndCellStyles/Images/Seeds.png b/TableAndCellStyles/TableAndCellStyles/Images/Seeds.png deleted file mode 100755 index 354d10827..000000000 Binary files a/TableAndCellStyles/TableAndCellStyles/Images/Seeds.png and /dev/null differ diff --git a/TableAndCellStyles/TableAndCellStyles/Images/Seeds@2x.png b/TableAndCellStyles/TableAndCellStyles/Images/Seeds@2x.png deleted file mode 100755 index f2acaf3c5..000000000 Binary files a/TableAndCellStyles/TableAndCellStyles/Images/Seeds@2x.png and /dev/null differ diff --git a/TableAndCellStyles/TableAndCellStyles/Images/Shanghai.png b/TableAndCellStyles/TableAndCellStyles/Images/Shanghai.png deleted file mode 100755 index d1bf4a549..000000000 Binary files a/TableAndCellStyles/TableAndCellStyles/Images/Shanghai.png and /dev/null differ diff --git a/TableAndCellStyles/TableAndCellStyles/Images/Shanghai@2x.png b/TableAndCellStyles/TableAndCellStyles/Images/Shanghai@2x.png deleted file mode 100755 index 9f2c8b7a7..000000000 Binary files a/TableAndCellStyles/TableAndCellStyles/Images/Shanghai@2x.png and /dev/null differ diff --git a/TableAndCellStyles/TableAndCellStyles/Info.plist b/TableAndCellStyles/TableAndCellStyles/Info.plist deleted file mode 100644 index 21e5ccbe6..000000000 --- a/TableAndCellStyles/TableAndCellStyles/Info.plist +++ /dev/null @@ -1,25 +0,0 @@ - - - - - CFBundleDisplayName - Table Styles - CFBundleIconFiles - - Resources/icon-57.png - Resources/icon-114.png - Resources/icon-72.png - Resources/icon-144.png - Resources/icon-29.png - Resources/icon-58.png - Resources/icon-50.png - Resources/icon-100.png - - MinimumOSVersion - 4.0 - UIDeviceFamily - - 1 - - - diff --git a/TableAndCellStyles/TableAndCellStyles/Resources/Default-568h@2x.png b/TableAndCellStyles/TableAndCellStyles/Resources/Default-568h@2x.png deleted file mode 100644 index b3f66780c..000000000 Binary files a/TableAndCellStyles/TableAndCellStyles/Resources/Default-568h@2x.png and /dev/null differ diff --git a/TableAndCellStyles/TableAndCellStyles/Resources/Default-Landscape@2x~ipad.png b/TableAndCellStyles/TableAndCellStyles/Resources/Default-Landscape@2x~ipad.png deleted file mode 100644 index 13cd433d9..000000000 Binary files a/TableAndCellStyles/TableAndCellStyles/Resources/Default-Landscape@2x~ipad.png and /dev/null differ diff --git a/TableAndCellStyles/TableAndCellStyles/Resources/Default-Landscape~ipad.png b/TableAndCellStyles/TableAndCellStyles/Resources/Default-Landscape~ipad.png deleted file mode 100644 index 18532e3b9..000000000 Binary files a/TableAndCellStyles/TableAndCellStyles/Resources/Default-Landscape~ipad.png and /dev/null differ diff --git a/TableAndCellStyles/TableAndCellStyles/Resources/Default-Portrait@2x~ipad.png b/TableAndCellStyles/TableAndCellStyles/Resources/Default-Portrait@2x~ipad.png deleted file mode 100644 index becc2fe1c..000000000 Binary files a/TableAndCellStyles/TableAndCellStyles/Resources/Default-Portrait@2x~ipad.png and /dev/null differ diff --git a/TableAndCellStyles/TableAndCellStyles/Resources/Default-Portrait~ipad.png b/TableAndCellStyles/TableAndCellStyles/Resources/Default-Portrait~ipad.png deleted file mode 100644 index 1bc6fa7f3..000000000 Binary files a/TableAndCellStyles/TableAndCellStyles/Resources/Default-Portrait~ipad.png and /dev/null differ diff --git a/TableAndCellStyles/TableAndCellStyles/Resources/Default.png b/TableAndCellStyles/TableAndCellStyles/Resources/Default.png deleted file mode 100644 index 7ad63b043..000000000 Binary files a/TableAndCellStyles/TableAndCellStyles/Resources/Default.png and /dev/null differ diff --git a/TableAndCellStyles/TableAndCellStyles/Resources/Default@2x.png b/TableAndCellStyles/TableAndCellStyles/Resources/Default@2x.png deleted file mode 100644 index 8d59426f3..000000000 Binary files a/TableAndCellStyles/TableAndCellStyles/Resources/Default@2x.png and /dev/null differ diff --git a/TableAndCellStyles/TableAndCellStyles/Resources/iTunesArtwork.png b/TableAndCellStyles/TableAndCellStyles/Resources/iTunesArtwork.png deleted file mode 100644 index 0baf12237..000000000 Binary files a/TableAndCellStyles/TableAndCellStyles/Resources/iTunesArtwork.png and /dev/null differ diff --git a/TableAndCellStyles/TableAndCellStyles/Resources/iTunesArtwork@2x.png b/TableAndCellStyles/TableAndCellStyles/Resources/iTunesArtwork@2x.png deleted file mode 100644 index 85346748c..000000000 Binary files a/TableAndCellStyles/TableAndCellStyles/Resources/iTunesArtwork@2x.png and /dev/null differ diff --git a/TableAndCellStyles/TableAndCellStyles/Resources/icon-100.png b/TableAndCellStyles/TableAndCellStyles/Resources/icon-100.png deleted file mode 100644 index 13a7b3c4a..000000000 Binary files a/TableAndCellStyles/TableAndCellStyles/Resources/icon-100.png and /dev/null differ diff --git a/TableAndCellStyles/TableAndCellStyles/Resources/icon-114.png b/TableAndCellStyles/TableAndCellStyles/Resources/icon-114.png deleted file mode 100644 index 7a29a3749..000000000 Binary files a/TableAndCellStyles/TableAndCellStyles/Resources/icon-114.png and /dev/null differ diff --git a/TableAndCellStyles/TableAndCellStyles/Resources/icon-144.png b/TableAndCellStyles/TableAndCellStyles/Resources/icon-144.png deleted file mode 100644 index 0e17a295d..000000000 Binary files a/TableAndCellStyles/TableAndCellStyles/Resources/icon-144.png and /dev/null differ diff --git a/TableAndCellStyles/TableAndCellStyles/Resources/icon-29.png b/TableAndCellStyles/TableAndCellStyles/Resources/icon-29.png deleted file mode 100644 index 9cbe18993..000000000 Binary files a/TableAndCellStyles/TableAndCellStyles/Resources/icon-29.png and /dev/null differ diff --git a/TableAndCellStyles/TableAndCellStyles/Resources/icon-50.png b/TableAndCellStyles/TableAndCellStyles/Resources/icon-50.png deleted file mode 100644 index 7199467b7..000000000 Binary files a/TableAndCellStyles/TableAndCellStyles/Resources/icon-50.png and /dev/null differ diff --git a/TableAndCellStyles/TableAndCellStyles/Resources/icon-57.png b/TableAndCellStyles/TableAndCellStyles/Resources/icon-57.png deleted file mode 100644 index af8016ccb..000000000 Binary files a/TableAndCellStyles/TableAndCellStyles/Resources/icon-57.png and /dev/null differ diff --git a/TableAndCellStyles/TableAndCellStyles/Resources/icon-58.png b/TableAndCellStyles/TableAndCellStyles/Resources/icon-58.png deleted file mode 100644 index e33ac58c6..000000000 Binary files a/TableAndCellStyles/TableAndCellStyles/Resources/icon-58.png and /dev/null differ diff --git a/TableAndCellStyles/TableAndCellStyles/Resources/icon-72.png b/TableAndCellStyles/TableAndCellStyles/Resources/icon-72.png deleted file mode 100644 index 0efca0711..000000000 Binary files a/TableAndCellStyles/TableAndCellStyles/Resources/icon-72.png and /dev/null differ diff --git a/TableAndCellStyles/TableAndCellStyles/Screens/iPhone/CellStyles/TableScreen.cs b/TableAndCellStyles/TableAndCellStyles/Screens/iPhone/CellStyles/TableScreen.cs deleted file mode 100755 index d8591880a..000000000 --- a/TableAndCellStyles/TableAndCellStyles/Screens/iPhone/CellStyles/TableScreen.cs +++ /dev/null @@ -1,83 +0,0 @@ -using System; -using Example_TableAndCellStyles.Code; -using MonoTouch.Foundation; -using MonoTouch.UIKit; -using System.Collections.Generic; - -namespace Example_TableAndCellStyles.Screens.iPhone.CellStyles -{ - public class TableScreen : UITableViewController - { - protected TableSource tableSource; - protected UITableViewCellStyle cellStyle; - protected UITableViewCellAccessory cellAccessory; - - #region Constructors - - // The IntPtr and initWithCoder constructors are required for controllers that need - // to be able to be created from a xib rather than from managed code - - public TableScreen (IntPtr handle) : base(handle) - { - - } - - [Export("initWithCoder:")] - public TableScreen (NSCoder coder) : base(coder) - { - } - - /// - /// You specify the table style in the constructor when using a UITableViewController - /// - public TableScreen (UITableViewStyle tableStyle, UITableViewCellStyle cellStyle, UITableViewCellAccessory cellAccessory) - : base (tableStyle) - { - cellStyle = cellStyle; - cellAccessory = cellAccessory; - } - - #endregion - - public override void ViewDidLoad () - { - base.ViewDidLoad (); - - Title = cellStyle.ToString () + " Style"; - - CreateTableItems (); - TableView.Source = tableSource; - - } - - /// - /// Creates a set of table items. - /// - protected void CreateTableItems () - { - List tableItems = new List (); - - // declare vars - TableItemGroup tGroup; - - // Section 1 - tGroup = new TableItemGroup() { Name = "Places" }; - tGroup.Items.Add (new TableItem() { CellStyle = cellStyle, CellAccessory = cellAccessory, - ImageName = "Images/Beach.png", Heading = "Fiji", SubHeading = "A nice beach" }); - tGroup.Items.Add (new TableItem() { CellStyle = cellStyle, CellAccessory = cellAccessory, - ImageName = "Images/Shanghai.png", Heading = "Beijing", SubHeading = "AKA Shanghai" }); - tableItems.Add (tGroup); - - // Section 2 - tGroup = new TableItemGroup() { Name = "Other" }; - tGroup.Items.Add (new TableItem() { CellStyle = cellStyle, CellAccessory = cellAccessory, - ImageName = "Images/Seeds.png", Heading = "Seedlings", SubHeading = "Tiny Plants" }); - tGroup.Items.Add (new TableItem() { CellStyle = cellStyle, CellAccessory = cellAccessory, - ImageName = "Images/Plants.png", Heading = "Plants", SubHeading = "Green plants" }); - tableItems.Add (tGroup); - - tableSource = new TableSource(tableItems); - } - } -} - diff --git a/TableAndCellStyles/TableAndCellStyles/Screens/iPhone/CustomCells/CustomCell1TableScreen.cs b/TableAndCellStyles/TableAndCellStyles/Screens/iPhone/CustomCells/CustomCell1TableScreen.cs deleted file mode 100755 index 85f5085da..000000000 --- a/TableAndCellStyles/TableAndCellStyles/Screens/iPhone/CustomCells/CustomCell1TableScreen.cs +++ /dev/null @@ -1,138 +0,0 @@ -using System; -using System.Collections.Generic; -using Example_TableAndCellStyles.Code.CustomCells; -using MonoTouch.UIKit; -using Example_TableAndCellStyles.Code; -using MonoTouch.Foundation; -using System.IO; - -namespace Example_TableAndCellStyles.Screens.iPhone.CustomCells -{ - public class CustomCell1TableScreen : UITableViewController - { - protected CustomCellTableSource tableSource; - protected string cellType; - - #region Constructors - - // The IntPtr and initWithCoder constructors are required for controllers that need - // to be able to be created from a xib rather than from managed code - - public CustomCell1TableScreen (IntPtr handle) : base(handle) - { - - } - - [Export("initWithCoder:")] - public CustomCell1TableScreen (NSCoder coder) : base(coder) - { - } - - /// - /// You specify the table style in the constructor when using a UITableViewController - /// - public CustomCell1TableScreen () - : base (UITableViewStyle.Plain) - { - - } - - #endregion - - public override void ViewDidLoad () - { - base.ViewDidLoad (); - - Title = "Custom Cells"; - - CreateTableItems (); - TableView.Source = tableSource; - - } - - /// - /// Creates a set of table items. - /// - protected void CreateTableItems () - { - List tableItems = new List (); - - // declare vars - TableItemGroup tGroup; - - // Section 1 - tGroup = new TableItemGroup() { Name = "Places" }; - tGroup.Items.Add (new TableItem() { ImageName = "Images/Beach.png" - , Heading = "Fiji", SubHeading = "A nice beach" }); - tGroup.Items.Add (new TableItem() { ImageName = "Images/Shanghai.png" - , Heading = "Beijing", SubHeading = "AKA Shanghai" }); - tableItems.Add (tGroup); - - // Section 2 - tGroup = new TableItemGroup() { Name = "Other" }; - tGroup.Items.Add (new TableItem() { ImageName = "Images/Seeds.png" - , Heading = "Seedlings", SubHeading = "Tiny Plants" }); - tGroup.Items.Add (new TableItem() { ImageName = "Images/Plants.png" - , Heading = "Plants", SubHeading = "Green plants" }); - tableItems.Add (tGroup); - - // For custom cells, comment out the first and uncomment the second. - tableSource = new CustomCellTableSource(tableItems); - } - - public override bool ShouldAutorotateToInterfaceOrientation (UIInterfaceOrientation toInterfaceOrientation) - { - return true; - } - - public class CustomCellTableSource : TableSource - { - // we need to keep a list of our cell controllers, since the table only has - // references to the cells, we'll link the two via a TickCount value - protected Dictionary cellControllers = new Dictionary(); - - public CustomCellTableSource (List items) : base(items) - { - cellIdentifier = "MyCustomCell1"; - } - - public override float GetHeightForRow (UITableView tableView, NSIndexPath indexPath) - { - return 85; - } - - public override UITableViewCell GetCell (UITableView tableView, NSIndexPath indexPath) - { - // declare vars - UITableViewCell cell = tableView.DequeueReusableCell (cellIdentifier); - TableItem item = tableItems[indexPath.Section].Items[indexPath.Row]; - CustomCellController1 cellController = null; - - // if there are no cells to reuse, create a new one - if (cell == null) { - cellController = new CustomCellController1(); - cell = cellController.Cell; - cell.Tag = Environment.TickCount; - cellControllers[cell.Tag] = cellController; - } else // if we did get one, we also need to lookup the controller - { - cellController = cellControllers[cell.Tag]; - } - - // set the properties on the cell - cellController.Heading = item.Heading; - cellController.SubHeading = item.SubHeading; - - // if the item has a valid image - if(!string.IsNullOrEmpty(item.ImageName)) { - if(File.Exists(item.ImageName)) - cellController.Image = UIImage.FromBundle(item.ImageName); - } - - return cell; - } - } - - } -} - diff --git a/TableAndCellStyles/TableAndCellStyles/Screens/iPhone/CustomCells/CustomCell2TableScreen.cs b/TableAndCellStyles/TableAndCellStyles/Screens/iPhone/CustomCells/CustomCell2TableScreen.cs deleted file mode 100755 index fe40df864..000000000 --- a/TableAndCellStyles/TableAndCellStyles/Screens/iPhone/CustomCells/CustomCell2TableScreen.cs +++ /dev/null @@ -1,138 +0,0 @@ -using System; -using System.Collections.Generic; -using Example_TableAndCellStyles.Code.CustomCells; -using MonoTouch.UIKit; -using Example_TableAndCellStyles.Code; -using MonoTouch.Foundation; -using System.IO; - -namespace Example_TableAndCellStyles.Screens.iPhone.CustomCells -{ - public class CustomCell12TableScreen : UITableViewController - { - protected CustomCellTableSource tableSource; - protected string cellType; - - #region Constructors - - // The IntPtr and initWithCoder constructors are required for controllers that need - // to be able to be created from a xib rather than from managed code - - public CustomCell12TableScreen (IntPtr handle) : base(handle) - { - - } - - [Export("initWithCoder:")] - public CustomCell12TableScreen (NSCoder coder) : base(coder) - { - } - - /// - /// You specify the table style in the constructor when using a UITableViewController - /// - public CustomCell12TableScreen () - : base (UITableViewStyle.Plain) - { - - } - - #endregion - - public override void ViewDidLoad () - { - base.ViewDidLoad (); - - Title = "Custom Cells"; - - CreateTableItems (); - TableView.Source = tableSource; - - } - - /// - /// Creates a set of table items. - /// - protected void CreateTableItems () - { - List tableItems = new List (); - - // declare vars - TableItemGroup tGroup; - - // Section 1 - tGroup = new TableItemGroup() { Name = "Places" }; - tGroup.Items.Add (new TableItem() { ImageName = "Images/Beach.png" - , Heading = "Fiji", SubHeading = "A nice beach" }); - tGroup.Items.Add (new TableItem() { ImageName = "Images/Shanghai.png" - , Heading = "Beijing", SubHeading = "AKA Shanghai" }); - tableItems.Add (tGroup); - - // Section 2 - tGroup = new TableItemGroup() { Name = "Other" }; - tGroup.Items.Add (new TableItem() { ImageName = "Images/Seeds.png" - , Heading = "Seedlings", SubHeading = "Tiny Plants" }); - tGroup.Items.Add (new TableItem() { ImageName = "Images/Plants.png" - , Heading = "Plants", SubHeading = "Green plants" }); - tableItems.Add (tGroup); - - // For custom cells, comment out the first and uncomment the second. - tableSource = new CustomCellTableSource(tableItems); - } - - public override bool ShouldAutorotateToInterfaceOrientation (UIInterfaceOrientation toInterfaceOrientation) - { - return true; - } - - public class CustomCellTableSource : TableSource - { - // we need to keep a list of our cell controllers, since the table only has - // references to the cells, we'll link the two via a TickCount value - protected Dictionary cellControllers = new Dictionary(); - - public CustomCellTableSource (List items) : base(items) - { - cellIdentifier = "MyCustomCell1"; - } - - public override float GetHeightForRow (UITableView tableView, NSIndexPath indexPath) - { - return 85; - } - - public override UITableViewCell GetCell (UITableView tableView, NSIndexPath indexPath) - { - // declare vars - UITableViewCell cell = tableView.DequeueReusableCell (cellIdentifier); - TableItem item = tableItems[indexPath.Section].Items[indexPath.Row]; - CustomCellController2 cellController = null; - - // if there are no cells to reuse, create a new one - if (cell == null) { - cellController = new CustomCellController2(); - cell = cellController.Cell; - cell.Tag = Environment.TickCount; - cellControllers[cell.Tag] = cellController; - } else // if we did get one, we also need to lookup the controller - { - cellController = cellControllers[cell.Tag]; - } - - // set the properties on the cell - cellController.Heading = item.Heading; - cellController.SubHeading = item.SubHeading; - - // if the item has a valid image - if(!string.IsNullOrEmpty(item.ImageName)) { - if(File.Exists(item.ImageName)) - cellController.Image = UIImage.FromBundle(item.ImageName); - } - - return cell; - } - } - - } -} - diff --git a/TableAndCellStyles/TableAndCellStyles/Screens/iPhone/Home/HomeTableViewController.cs b/TableAndCellStyles/TableAndCellStyles/Screens/iPhone/Home/HomeTableViewController.cs deleted file mode 100755 index 0b76e0a6e..000000000 --- a/TableAndCellStyles/TableAndCellStyles/Screens/iPhone/Home/HomeTableViewController.cs +++ /dev/null @@ -1,79 +0,0 @@ -using System; -using MonoTouch.UIKit; -using System.Collections.Generic; -using Example_TableAndCellStyles.Code.NavigationTable; -using Example_TableAndCellStyles.Screens.iPhone; - -namespace Example_TableAndCellStyles.Screens.iPhone.Home -{ - public class HomeNavController : UITableViewController - { - // declare vars - List navItems = new List (); - NavItemTableSource tableSource; - - public HomeNavController () : base(UITableViewStyle.Grouped) - { - } - - public override void ViewWillAppear (bool animated) - { - base.ViewWillAppear (animated); - // hide the nav bar when this controller appears - this.NavigationController.SetNavigationBarHidden (true, true); - } - - public override void ViewWillDisappear (bool animated) - { - base.ViewWillDisappear (animated); - // show the nav bar when other controllers appear - this.NavigationController.SetNavigationBarHidden (false, true); - } - - public override void ViewDidLoad () - { - base.ViewDidLoad (); - - - // create the navigation items - NavItemGroup navGroup = new NavItemGroup ("Table Styles"); - navItems.Add (navGroup); - navGroup.Items.Add (new NavItem ("Grouped", "", typeof(TableStyles.SimpleTableScreen), new object[] { UITableViewStyle.Grouped })); - navGroup.Items.Add (new NavItem ("Plain", "", typeof(TableStyles.SimpleTableScreen), new object[] { UITableViewStyle.Plain })); - navGroup.Items.Add (new NavItem ("Indexed Grouped", "", typeof(TableStyles.TableWithIndexScreen), new object[] { UITableViewStyle.Grouped })); - navGroup.Items.Add (new NavItem ("Indexed Plain", "", typeof(TableStyles.TableWithIndexScreen), new object[] { UITableViewStyle.Plain })); - - navGroup = new NavItemGroup ("Cell Styles"); - navItems.Add (navGroup); - navGroup.Items.Add (new NavItem ("Default", "", typeof(CellStyles.TableScreen) - , new object[] { UITableViewStyle.Plain, UITableViewCellStyle.Default, UITableViewCellAccessory.None })); - navGroup.Items.Add (new NavItem ("Subtitle", "", typeof(CellStyles.TableScreen) - , new object[] { UITableViewStyle.Plain, UITableViewCellStyle.Subtitle, UITableViewCellAccessory.None })); - navGroup.Items.Add (new NavItem ("Value1 (Right-Aligned Subtitle)", "", typeof(CellStyles.TableScreen) - , new object[] { UITableViewStyle.Plain, UITableViewCellStyle.Value1, UITableViewCellAccessory.None })); - navGroup.Items.Add (new NavItem ("Value2 (Contact Style)", "", typeof(CellStyles.TableScreen) - , new object[] { UITableViewStyle.Plain, UITableViewCellStyle.Value2, UITableViewCellAccessory.None })); - - navGroup = new NavItemGroup ("Accessory Styles"); - navItems.Add (navGroup); - navGroup.Items.Add (new NavItem ("Checkmark", "", typeof(CellStyles.TableScreen) - , new object[] { UITableViewStyle.Plain, UITableViewCellStyle.Default, UITableViewCellAccessory.Checkmark })); - navGroup.Items.Add (new NavItem ("DetailDisclosureButton", "", typeof(CellStyles.TableScreen) - , new object[] { UITableViewStyle.Plain, UITableViewCellStyle.Default, UITableViewCellAccessory.DetailDisclosureButton })); - navGroup.Items.Add (new NavItem ("DisclosureIndicator", "", typeof(CellStyles.TableScreen) - , new object[] { UITableViewStyle.Plain, UITableViewCellStyle.Default, UITableViewCellAccessory.DisclosureIndicator })); - - navGroup = new NavItemGroup ("Custom Cells"); - navItems.Add (navGroup); - navGroup.Items.Add (new NavItem ("Custom Cell from XIB", "", typeof(CustomCells.CustomCell1TableScreen))); - navGroup.Items.Add (new NavItem ("Custom Cell in code", "", typeof(CustomCells.CustomCell12TableScreen))); - - // create a table source from our nav items - tableSource = new NavItemTableSource (this.NavigationController, navItems); - - // set the source on the table to our data source - base.TableView.Source = tableSource; - } - } -} - diff --git a/TableAndCellStyles/TableAndCellStyles/Screens/iPhone/TableStyles/SimpleTableScreen.cs b/TableAndCellStyles/TableAndCellStyles/Screens/iPhone/TableStyles/SimpleTableScreen.cs deleted file mode 100755 index 8ddfc9460..000000000 --- a/TableAndCellStyles/TableAndCellStyles/Screens/iPhone/TableStyles/SimpleTableScreen.cs +++ /dev/null @@ -1,87 +0,0 @@ -using System; -using System.Collections.Generic; -using Example_TableAndCellStyles.Code; -using MonoTouch.Foundation; -using MonoTouch.UIKit; - -namespace Example_TableAndCellStyles.Screens.iPhone.TableStyles -{ - public class SimpleTableScreen : UITableViewController - { - protected TableSource tableSource; - - #region Constructors - - // The IntPtr and initWithCoder constructors are required for controllers that need - // to be able to be created from a xib rather than from managed code - - public SimpleTableScreen (IntPtr handle) : base(handle) - { - - } - - [Export("initWithCoder:")] - public SimpleTableScreen (NSCoder coder) : base(coder) - { - } - - /// - /// You specify the table style in the constructor when using a UITableViewController - /// - public SimpleTableScreen (UITableViewStyle tableStyle) : base (tableStyle) - { - } - - #endregion - - public override void ViewDidLoad () - { - base.ViewDidLoad (); - - if(TableView.Style == UITableViewStyle.Grouped) - Title = "Grouped Table"; - else if (TableView.Style == UITableViewStyle.Plain) - Title = "Plain Table"; - - CreateTableItems (); - TableView.Source = tableSource; - - } - - /// - /// Creates a set of table items. - /// - protected void CreateTableItems () - { - List tableItems = new List (); - - // declare vars - TableItemGroup tGroup; - - // Section 1 - tGroup = new TableItemGroup() { Name = "Section 0 Header", Footer = "Section 0 Footer" }; - tGroup.Items.Add (new TableItem("Row 0")); - tGroup.Items.Add (new TableItem("Row 1")); - tGroup.Items.Add (new TableItem("Row 2")); - tableItems.Add (tGroup); - - // Section 2 - tGroup = new TableItemGroup() { Name = "Section 1 Header", Footer = "Section 1 Footer" }; - tGroup.Items.Add (new TableItem("Row 0")); - tGroup.Items.Add (new TableItem("Row 1")); - tGroup.Items.Add (new TableItem("Row 2")); - tableItems.Add (tGroup); - - // Section 3 - tGroup = new TableItemGroup() { Name = "Section 2 Header", Footer = "Section 2 Footer" }; - tGroup.Items.Add (new TableItem("Row 0")); - tGroup.Items.Add (new TableItem("Row 1")); - tGroup.Items.Add (new TableItem("Row 2")); - tableItems.Add (tGroup); - - // For custom cells, comment out the first and uncomment the second. - tableSource = new TableSource (tableItems); - } - } -} - diff --git a/TableAndCellStyles/TableAndCellStyles/Screens/iPhone/TableStyles/TableWithIndexScreen.cs b/TableAndCellStyles/TableAndCellStyles/Screens/iPhone/TableStyles/TableWithIndexScreen.cs deleted file mode 100755 index d0eb7a696..000000000 --- a/TableAndCellStyles/TableAndCellStyles/Screens/iPhone/TableStyles/TableWithIndexScreen.cs +++ /dev/null @@ -1,153 +0,0 @@ -using System; -using System.Collections.Generic; -using Example_TableAndCellStyles.Code; -using MonoTouch.Foundation; -using MonoTouch.UIKit; - -namespace Example_TableAndCellStyles.Screens.iPhone.TableStyles -{ - public class TableWithIndexScreen : UITableViewController - { - protected TableSourceWithIndex tableSource; - - #region Constructors - - // The IntPtr and initWithCoder constructors are required for controllers that need - // to be able to be created from a xib rather than from managed code - - public TableWithIndexScreen (IntPtr handle) : base(handle) - { - } - - [Export("initWithCoder:")] - public TableWithIndexScreen (NSCoder coder) : base(coder) - { - } - - /// - /// You specify the table style in the constructor when using a UITableViewController - /// - public TableWithIndexScreen (UITableViewStyle tableStyle) : base (tableStyle) - { - } - - #endregion - - public override void ViewDidLoad () - { - base.ViewDidLoad (); - - Title = "Table with Index"; - - CreateTableItems (); - TableView.Source = tableSource; - - } - - /// - /// Creates a set of table items. - /// - protected void CreateTableItems () - { - List tableItems = new List (); - Dictionary indexSectionMap = new Dictionary(); - - // declare vars - TableItemGroup tGroup; - - // Section - tGroup = new TableItemGroup() { Name = "A"}; - tGroup.Items.Add (new TableItem("Apple")); - tGroup.Items.Add (new TableItem("Artichoke")); - tableItems.Add (tGroup); - indexSectionMap["A"] = 0; - - // Section - tGroup = new TableItemGroup() { Name = "B"}; - tGroup.Items.Add (new TableItem("Banana")); - tGroup.Items.Add (new TableItem("Berries")); - tableItems.Add (tGroup); - indexSectionMap["B"] = 1; - - // Section - tGroup = new TableItemGroup() { Name = "C"}; - tGroup.Items.Add (new TableItem("Cucumber")); - tGroup.Items.Add (new TableItem("Cantalopes")); - tableItems.Add (tGroup); - indexSectionMap["C"] = 2; - - // Section - tGroup = new TableItemGroup() { Name = "D"}; - tGroup.Items.Add (new TableItem("Daikon")); - tableItems.Add (tGroup); - indexSectionMap["D"] = 3; - - // Section - tGroup = new TableItemGroup() { Name = "E"}; - tGroup.Items.Add (new TableItem("Eggplant")); - tGroup.Items.Add (new TableItem("Elderberry")); - tableItems.Add (tGroup); - indexSectionMap["E"] = 4; - - // Section - tGroup = new TableItemGroup() { Name = "F"}; - tGroup.Items.Add (new TableItem("Fig")); - tableItems.Add (tGroup); - indexSectionMap["F"] = 5; - - // Section - tGroup = new TableItemGroup() { Name = "G"}; - tGroup.Items.Add (new TableItem("Grape")); - tGroup.Items.Add (new TableItem("Guava")); - tableItems.Add (tGroup); - indexSectionMap["G"] = 6; - - // Section - tGroup = new TableItemGroup() { Name = "H"}; - tGroup.Items.Add (new TableItem("Honeydew")); - tGroup.Items.Add (new TableItem("Huckleberry")); - tableItems.Add (tGroup); - indexSectionMap["H"] = 7; - - // Section - tGroup = new TableItemGroup() { Name = "I"}; - tGroup.Items.Add (new TableItem("Indian Fig")); - tableItems.Add (tGroup); - indexSectionMap["I"] = 8; - - // Section - tGroup = new TableItemGroup() { Name = "J"}; - tGroup.Items.Add (new TableItem("Jackfruit")); - tableItems.Add (tGroup); - indexSectionMap["J"] = 9; - - // Section - tGroup = new TableItemGroup() { Name = "K"}; - tGroup.Items.Add (new TableItem("Kiwi")); - tGroup.Items.Add (new TableItem("Kumquat")); - tableItems.Add (tGroup); - indexSectionMap["K"] = 10; - - - indexSectionMap["L"] = 10; - indexSectionMap["M"] = 10; - indexSectionMap["N"] = 10; - indexSectionMap["O"] = 10; - indexSectionMap["P"] = 10; - indexSectionMap["Q"] = 10; - indexSectionMap["R"] = 10; - indexSectionMap["S"] = 10; - indexSectionMap["T"] = 10; - indexSectionMap["U"] = 10; - indexSectionMap["V"] = 10; - indexSectionMap["W"] = 10; - indexSectionMap["X"] = 10; - indexSectionMap["Y"] = 10; - indexSectionMap["Z"] = 10; - - // For custom cells, comment out the first and uncomment the second. - tableSource = new TableSourceWithIndex(tableItems, indexSectionMap); - } - } -} - diff --git a/TableAndCellStyles/TableAndCellStyles/TableAndCellStyles.csproj b/TableAndCellStyles/TableAndCellStyles/TableAndCellStyles.csproj deleted file mode 100644 index c5ada3abd..000000000 --- a/TableAndCellStyles/TableAndCellStyles/TableAndCellStyles.csproj +++ /dev/null @@ -1,145 +0,0 @@ - - - - Debug - iPhoneSimulator - 9.0.21022 - 2.0 - {4702FF8D-62D6-4480-B2AD-DFBCFC321BA0} - {6BC8ED88-2882-458C-8E55-DFD12B67127B};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - Exe - Example_TableAndCellStyles - Example_TableAndCellStyles - - - True - full - False - bin\iPhoneSimulator\Debug - DEBUG - prompt - 4 - True - False - None - - false - - - none - False - bin\iPhoneSimulator\Release - prompt - 4 - False - None - - false - - - True - full - False - bin\iPhone\Debug - DEBUG - prompt - 4 - True - False - iPhone Developer - - false - - - none - False - bin\iPhone\Release - prompt - 4 - False - iPhone Developer - - false - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - CustomCellController1.xib - - - CustomCellController1.xib - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/TableAndCellStyles/movedto.md b/TableAndCellStyles/movedto.md new file mode 100644 index 000000000..55718c252 --- /dev/null +++ b/TableAndCellStyles/movedto.md @@ -0,0 +1 @@ +https://github.com/xamarin/mobile-samples/tree/master/TablesLists \ No newline at end of file