Advanced Forum Search Results
-
If you need to use Decimal, you could explicitly declare your value as a decimal, use the M suffix:
decimal d = 3.0M;
-
Can you detach the Entities from their object context?
-
This is a request for comment on patterns & code for field validation in Silverlight 2. Since Silverlight developers are likely familiar with ASP.Net as well, it uses the <XValiator ControlToValidate="abc"/> ...
-
Using the code behind above, I get a compiler error that List requires a generic Type parameter which looks correct to me. Anyway...
The various entity codes for less than cause the same error: &#60; &#x3C; \u003c
-
You are correct that TemplateBinding is only used within control templates.
Can you create the bindings in code?
-
Does it work if you do something like this:
Why is classB inside your resources as well as classA? I'm not sure that will work.
If outside your resources, you could try
<aa:ClassB DataContext="{StaticResource clsA}" ClassBProp="{Binding Path=YourID}"/>
-
In your second example, the result of the LINQ query is an IEnumerable<whatever>, not an instance of the Type you're looking for. Casting mythumbnail using "as" returns null rather than throwing a classcastexception. You want to say myThumbnail = myProduct.First<T> or similar.
-
Are you sure the names match? Is ctl.Name "Image" ?
try LayoutRoot.Resources[] ?
-
With WCF you'll get plumbing and serialization and such. The Protocol is already figured out for you: request/response message passing. The lowest level transport details are already implemented for you.
Socket code will require much more work and testing on your part, but can potentially be faster. You'll have to create ...
-
Would it save time to start in Blend and choose "edit a copy" of the control's template, then remove the storyboards?