コード例 #1
0
        internal NativePageData ToNative()
        {
            NativePageData native = null;
#if __ANDROID__
            native = new NativePageData(PageId.ToNative(), PageLayoutIndex);
            foreach (var data in Data)
            {
                native.Update(data.ToNative());
            }
#elif __IOS__
            native = NativePageData.Create(PageId.ToNative(), (nuint)PageLayoutIndex, Data.Select(d => d.ToNative()).ToArray());
#elif WINDOWS_PHONE_APP
            native = new NativePageData(PageId.ToNative(), PageLayoutIndex, Data.Select(d => d.ToNative()).ToArray());
#endif
            return native;
        }
コード例 #2
0
        internal NativePageData ToNative()
        {
            NativePageData native = null;

#if __ANDROID__
            native = new NativePageData(PageId.ToNative(), PageLayoutIndex);
            foreach (var data in Data)
            {
                native.Update(data.ToNative());
            }
#elif __IOS__
            native = NativePageData.Create(PageId.ToNative(), (nuint)PageLayoutIndex, Data.Select(d => d.ToNative()).ToArray());
#elif WINDOWS_PHONE_APP
            native = new NativePageData(PageId.ToNative(), PageLayoutIndex, Data.Select(d => d.ToNative()).ToArray());
#endif
            return(native);
        }