Where is PagedCollectionView in Silverlight 5? - silverlight-5.0

Where is PagedCollectionView in Silverlight 5? I'm trying to convert a SL3 app to 5 but can't find PagedCollectionView.

It is on System.Windows.Data (C:\Program Files (x86)\MicrosoftSDKs\Silverlight\v5.0\Libraries\Client\System.Windows.Data.dll)

Related

Has Newton’s Cradle playground been ported to use swift 3 code

I'm looking for a Xcode 8 port of the Newton’s Cradle playground that's been rewritten in swift 3.
You can do it manually from the menu:
Edit -> Convert -> To Current Swift Syntax
Worked for me.
I updated the playground to use Swift 3 and Xcode 8.2 in the following repo
https://github.com/omaralbeik/NewtonsCradle-Swift3

integrating cocos2d-x with gaf in visual studio

i'm using cocos2d-x 3.7 on windows, visual studio 2013 and GAF_VERSION 5.0.
i'v downloaded "Cocos2dxGAFPlayer" and copied it into cocos2d/external, after that i added the gafplayer project to my cocos2dx project solution. i'm not sure but i think i have configured it properly as its running while it has this code in "HelloWorld::init()" :
auto animation = GAFAsset::createWithBundle("anim1.zip", "anim1/anim1.gaf", nullptr);
object = animation->createObjectAndRun(true);
object->setAnchorPoint(Vec2::ANCHOR_MIDDLE);
object->setPosition(Director::getInstance()->getVisibleSize() / 2);
this->addChild(object,1);
but by using this only the png file, containing parts of animation is shown( i have attached the file i mean).
when i use the zip file generated by gap in the GAFTest project by only replacing the recourse (not the source code) it works fine.
i've searched the net for a solution, and a correct way to integrate cocos2d-x and gaf. but i couldn't find a way.
please guide me.
is there any tutorial about how to integrate cocos2d-x with gaf on visual studio so i make sure i'm doing the configuration right?
tnx
A member of GAFmedia forum suggested something which solved the problem : http://gafmedia.com/forum/viewtopic.php?f=8&t=447
Postby Dmitry Bushtets » October 7th, 2015, 7:36 am
I have one idea. Have you method call to CODE: SELECT ALL
cocos2d::Director::setContentScaleFactor
in the code? (it can be in AppDelegate.cpp) If yes - try to remove
this call (set content scale factor to 1) and check result. Or
convert swf to gaf with CSF 1 and 2 (and 3, 4 maybe :) ). You can find
this option in GAF Converter. [Texture Atlas -> Scale Settings ->
Advanced]

Orchard 1.6 - Error building web site in Visual Studio 2012

Using WebPI 4.0 I have installed and run successfuly Orchard 1.6, then for deploying purposes, I opened the web site in Visual studio 2012 and tried to build it but got the next:
1 error as next:
Object reference not set to an instance of an object.
C:\inetpub\wwwroot\Orchard\Modules\Contrib.Cache\Contrib.Cache.csproj
1
the error points to the first line: <?xml version="1.0" encoding="utf-8"?>
and some warnings as next:
The element 'PropertyGroup' in namespace
'http://schemas.microsoft.com/developer/msbuild/2003' has invalid
child element 'MvcBuildViews' in namespace
'http://schemas.microsoft.com/developer/msbuild/2003'. List of
possible elements expected: 'Property, AllowUnsafeBlocks,
AppConfigForCompiler, ...
the warnings point to the different lines in the same file above.
I could find nowhere a similar case, any idea please ?
I finally found that the WebPI downloads the already compiled version of Orchard CMS, so most of the source code is missing there, and it is wrong way to try to compile it again in Visual Studio.
The solution here is to cancel using the WebPI version and to download the source code version instead in a zip file from here:
http://orchard.codeplex.com/releases/view/90325#ReviewsAnchor

DragDockPanel problem with Silverlight 5 beta?

Has anyone have problem with using Silverlight 5 with backlight's DragDockPanel?
When I have DragDockPanel or add a DragDockPanel in the DragDockPanelHost, there will be java script error :
Line: 56
Error: Unhandled Error in Silverlight Application
Code: 2028
Category: ParserError
Message: The name already exists in the tree: PART_TopLeftClip.
File:
Line: 0
Position: 0
I wonder if anyone also have this problem?
I am developing a new project and was going to use the DragDockPanel for the main display menu... But as I know the Backlight project had been stopped, I wonder if there is any replacement for this control?
Thanks in advance,
King
I created a simple Silverlight 5 test project, and added the following to the MainPage:
<Grid x:Name="LayoutRoot" Background="White">
<blacklight:DragDockPanelHost>
<blacklight:DragDockPanel>
</blacklight:DragDockPanel>
<blacklight:DragDockPanel>
</blacklight:DragDockPanel>
</blacklight:DragDockPanelHost>
</Grid>
And that worked in fine in FF4 and IE8 on Windows 7 Professional x86. The 2 dock panels were displayed and could be dragged and maximized/minimized fine. What version of the blacklight library are you using? I am using 2.5.0.0. I assume you changed the target silverlight version of the blacklight project to be Silverlight 5.

svcutil failing on IIS7 server, but not on Visual Studio 2010 temporary web server

I've created a LINQ to SQL class and a Silverlight-enabled WCF Service to a Silverlight 4.0 solution I'm working on. I'm in the process of publishing it to a local IIS7 server, instead of running inside the Visual Studio temporary web server. Whenever I build the project with the service running on the temporary web server, it works fine, but once I move it to my IIS7 web server, it fails with the following errors:
Warning 1 Custom tool warning: Cannot import wsdl:portType
Detail: An exception was thrown while running a WSDL import extension: System.ServiceModel.Description.DataContractSerializerMessageContractImporter
Error: Schema with target namespace '' could not be found.
XPath to Error Source: //wsdl:definitions[#targetNamespace='']/wsdl:portType[#name='SpaceGameDBService'] C:\Users\MindWorX\documents\visual studio 2010\Projects\MindWorX.Spacegame\MindWorX.Spacegame\Service References\DBServiceReference\Reference.svcmap 1 1 MindWorX.Spacegame
Warning 2 Custom tool warning: Cannot import wsdl:binding
Detail: There was an error importing a wsdl:portType that the wsdl:binding is dependent on.
XPath to wsdl:portType: //wsdl:definitions[#targetNamespace='']/wsdl:portType[#name='SpaceGameDBService']
XPath to Error Source: //wsdl:definitions[#targetNamespace='http://tempuri.org/']/wsdl:binding[#name='CustomBinding_SpaceGameDBService'] C:\Users\MindWorX\documents\visual studio 2010\Projects\MindWorX.Spacegame\MindWorX.Spacegame\Service References\DBServiceReference\Reference.svcmap 1 1 MindWorX.Spacegame
Warning 3 Custom tool warning: Cannot import wsdl:port
Detail: There was an error importing a wsdl:binding that the wsdl:port is dependent on.
XPath to wsdl:binding: //wsdl:definitions[#targetNamespace='http://tempuri.org/']/wsdl:binding[#name='CustomBinding_SpaceGameDBService']
XPath to Error Source: //wsdl:definitions[#targetNamespace='http://tempuri.org/']/wsdl:service[#name='SpaceGameDBService']/wsdl:port[#name='CustomBinding_SpaceGameDBService'] C:\Users\MindWorX\documents\visual studio 2010\Projects\MindWorX.Spacegame\MindWorX.Spacegame\Service References\DBServiceReference\Reference.svcmap 1 1 MindWorX.Spacegame
Warning 4 Custom tool warning: No endpoints compatible with Silverlight 4 were found. The generated client class will not be usable unless endpoint information is provided via the constructor. C:\Users\MindWorX\documents\visual studio 2010\Projects\MindWorX.Spacegame\MindWorX.Spacegame\Service References\DBServiceReference\Reference.svcmap 1 1 MindWorX.Spacegame
Warning 5 Custom tool warning: Exception has been thrown by the target of an invocation. C:\Users\MindWorX\documents\visual studio 2010\Projects\MindWorX.Spacegame\MindWorX.Spacegame\Service References\DBServiceReference\Reference.svcmap 1 1 MindWorX.Spacegame
Error 6 Custom tool error: Failed to generate code for the service reference 'DBServiceReference'. Please check other error and warning messages for details. C:\Users\MindWorX\documents\visual studio 2010\Projects\MindWorX.Spacegame\MindWorX.Spacegame\Service References\DBServiceReference\Reference.svcmap 1 1 MindWorX.Spacegame
Now, I believe that warning 4 and 5 and error 6 is a result of warning 1, 2 and 3, so I've ignored them for now. I've been googling around, and seen suggestions telling me to untick the checkbox "Reuse types in referenced assemblies" when I add the service reference to the main Silverlight project, however this hasn't fixed my issue at all. I've tried restarting Visual Studio as well, but this hasn't fixed anything either. I've started to consider that it's some sort of setting in the IIS7 web server, that I'm missing, but I looked around for hours now, and decided to come here for help. I found a similar problem here, but the "solution" was to not solve the problem, but instead find another way. I'm hoping this time we can find a solution instead.
Turns out that when I created the solution, I forgot to tick "Enable WCF RIA Services". Along with this I also redid web.config from scratch. How this still works on the development server is a mystery to me, however doing both things solved the problem.