This commit is contained in:
nosami 2017-11-10 15:56:07 +00:00
Родитель 2e017b63f7
Коммит ba86f2800d
2 изменённых файлов: 7 добавлений и 13 удалений

Просмотреть файл

@ -1,9 +1,6 @@
namespace Xamarin.UIProviders.DesignTime
open System
open System.IO
open System.Xml
open System.Xml.Linq
open System.Linq
[<AutoOpen>]
module XmlHelpers =
@ -58,11 +55,11 @@ module Mac =
|> Seq.choose (actionMapping tryLookup)
|> Seq.toList
return {XmlType = vc.Name.LocalName
CustomClass = customClass.Value
Outlets = outlets
Actions = actions
View = None } }
return { XmlType = vc.Name.LocalName
CustomClass = customClass.Value
Outlets = outlets
Actions = actions
View = None } }
let scenesFromXDoc (xdoc:XDocument) =
let tryLookup = createIdLookup xdoc
@ -71,7 +68,7 @@ module Mac =
vcElement
|> Seq.choose (viewControllerMapping tryLookup)
|> Seq.map (fun vc -> {ViewController=vc}))
let scenesFromStoryBoardFileName (sb:string) =
let xdoc = XDocument.Load(new StreamReader(sb, true))
let xdoc = XDocument.Load sb
scenesFromXDoc xdoc

Просмотреть файл

@ -51,9 +51,6 @@
<HintPath>/Applications/Visual Studio.app/Contents/Resources/lib/monodevelop/AddIns/MonoDevelop.IPhone/MonoTouch.Design.Client.dll</HintPath>
</Reference>
<Reference Include="System.Drawing" />
<Reference Include="MonoDevelop.MacDev">
<HintPath>/Applications/Visual Studio.app/Contents/Resources/lib/monodevelop/AddIns/MonoDevelop.MacDev/MonoDevelop.MacDev.dll</HintPath>
</Reference>
<Reference Include="Xamarin.Designer">
<HintPath>/Applications/Visual Studio.app/Contents/Resources/lib/monodevelop/AddIns/Xamarin.Ide/Xamarin.Designer.dll</HintPath>
</Reference>