Hi,
My goal is to be able to write this in XAML:
<Grid>
<Rectangle Fill="AliceBlue"
myCore:MyTimePanel.BeginningDate="03/03/2010"
/>
</Grid>
Problem :
Silverlight XAML can't parse a DateTime from a string. So at runtime I have the XamlParseException "can't create a DateTime from that string".
When I use a...
I am trying to create a Silverlight custom control that derives from System.Windows.Controls.Control with visibility internal, but I am seeing problems when trying to apply a default style. Here's the simplest form of the class ...
internal class MyClass : Control
{
public MyClass()
{
DefaultStyleKey = typeof(MyClass);
...
I believe this to be a bug in WPF (v4.0 if it matters), but it is late, and maybe I'm missing something.
I am binding to a fake example for illustrative purposes:
<x:Array x:Key="SampleItems" Type="sys:String">
<sys:String>Foo</sys:String>
<sys:String>Bar</sys:String>
<sys:String>Baz</sys:String>
</x:Arr...
I'm trying to use MSTest to write unit tests for methods in my MainWindow class in my WPF application. However, I get the following exception:
System.Windows.Markup.XamlParseException: 'Provide value on 'System.Windows.StaticResourceExtension' threw an exception.' Line number '127' and line position '32'. ---> System.Exception: Cann...
I'm looking to create a background with the top 48 pixels one color, and everything below it another color. I've created a style, but it crashes the phone with a "XamlParseException" when I try to use it.
<Style x:Key="BackgroundStyle" TargetType="Grid">
<Setter Property="Background">
<Setter.Value>
...