Produced by Araxis Merge on 2/1/2017 2:56:50 PM Eastern Standard Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | C:\Araxis_Merge_Comprasion\Pub_un\BTSSS_CIF_122016.zip\BTSSS_CIF_12_20_16\clean\CRM\trunk\SDK\SampleCode\CS\ModernAndMobileApps\ModernSoapApp | MainPageItem.cs | Tue Dec 20 19:51:47 2016 UTC |
| 2 | Wed Feb 1 19:56:50 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 0 | 0 |
| Changed | 0 | 0 |
| Inserted | 0 | 0 |
| Removed | 1 | 76 |
| Whitespace | |
|---|---|
| Character case | Differences in character case are significant |
| Line endings | Differences in line endings (CR and LF characters) are ignored |
| CR/LF characters | Not shown in the comparison detail |
No regular expressions were active.
| 1 | // ======= ========== ========== ========== ========== ========== ========== == | |||||
| 2 | // | |||||
| 3 | // This f ile is par t of the M icrosoft D ynamics CR M SDK Code Samples. | |||||
| 4 | // | |||||
| 5 | // Copyri ght (C) Mi crosoft Co rporation. All righ ts reserve d. | |||||
| 6 | // | |||||
| 7 | // This s ource code is intend ed only as a supplem ent to Mic rosoft | |||||
| 8 | // Develo pment Tool s and/or o nline docu mentation. See thes e other | |||||
| 9 | // materi als for de tailed inf ormation r egarding M icrosoft c ode sample s. | |||||
| 10 | // | |||||
| 11 | // THIS C ODE AND IN FORMATION ARE PROVID ED "AS IS" WITHOUT W ARRANTY OF ANY | |||||
| 12 | // KIND, EITHER EXP RESSED OR IMPLIED, I NCLUDING B UT NOT LIM ITED TO TH E | |||||
| 13 | // IMPLIE D WARRANTI ES OF MERC HANTABILIT Y AND/OR F ITNESS FOR A | |||||
| 14 | // PARTIC ULAR PURPO SE. | |||||
| 15 | // | |||||
| 16 | // ======= ========== ========== ========== ========== ========== ========== == | |||||
| 17 | ||||||
| 18 | using Syst em; | |||||
| 19 | using Syst em.Collect ions.Gener ic; | |||||
| 20 | using Syst em.Linq; | |||||
| 21 | using Syst em.Text; | |||||
| 22 | using Syst em.Threadi ng.Tasks; | |||||
| 23 | using Wind ows.UI.Xam l; | |||||
| 24 | using Wind ows.UI.Xam l.Controls ; | |||||
| 25 | using Wind ows.UI.Xam l.Media; | |||||
| 26 | ||||||
| 27 | namespace ModernSoap App | |||||
| 28 | { | |||||
| 29 | public c lass MainP ageItem | |||||
| 30 | { | |||||
| 31 | public string Na me { get; set; } | |||||
| 32 | ||||||
| 33 | //Retu rn the Ite m name | |||||
| 34 | public string It emName | |||||
| 35 | { | |||||
| 36 | get | |||||
| 37 | { | |||||
| 38 | re turn strin g.Format(" {0:00}", N ame); | |||||
| 39 | } | |||||
| 40 | } | |||||
| 41 | ||||||
| 42 | //Get the Item I mage | |||||
| 43 | public string Im age | |||||
| 44 | { | |||||
| 45 | get | |||||
| 46 | { | |||||
| 47 | re turn strin g.Format(" ms-appx:// /Assets/Ma inPage/{0} .png", Nam e); | |||||
| 48 | } | |||||
| 49 | } | |||||
| 50 | ||||||
| 51 | //Crea te the Ite m | |||||
| 52 | public UIElement XAMLItem | |||||
| 53 | { | |||||
| 54 | get | |||||
| 55 | { | |||||
| 56 | // XAML Item Uri... | |||||
| 57 | st ring xamlP ath = stri ng.Format( "ms-appx:/ //Assets/M ainPage/{0 }.xaml", N ame); | |||||
| 58 | Ur i xamlUri = new Uri( xamlPath, UriKind.Ab solute); | |||||
| 59 | ||||||
| 60 | // Create new canvas el ement for the rectan gle and pa th to be l oaded into ... | |||||
| 61 | Ca nvas targe tCanvas = new Canvas (); | |||||
| 62 | ||||||
| 63 | // Load the c ontents of the XAML Card's .xa ml file in to the in memory can vas using App.LoadCo mponent | |||||
| 64 | Ap p.LoadComp onent(targ etCanvas, xamlUri); | |||||
| 65 | ||||||
| 66 | // Wrap the n ew canvas up in a Vi ewbox so t hat it sca les to fit the conta iner. | |||||
| 67 | Vi ewbox view Box = new Viewbox(); | |||||
| 68 | vi ewBox.Chil d = target Canvas; | |||||
| 69 | ||||||
| 70 | // Return the Viewbox.. . | |||||
| 71 | re turn viewB ox; | |||||
| 72 | } | |||||
| 73 | } | |||||
| 74 | ||||||
| 75 | } | |||||
| 76 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.