I get blue squiggles int the XAML when trying to bind a slider to a double value property (well of course it doesn't know that it's a double vlaue propert till runtime ..._
<
Slider Margin="5" Width="Auto" Grid.Row="1" Grid.ColumnSpan="2" Grid.Column="0" Orientation="Horizontal" Value="{Binding Path=Value}" Minimum="0" Maximum="2" TickFrequency="0.01" IsSnapToTickEnabled="True"/>Seems like a problem in the schema
--
Dan

Invalid attribute when attempting to bind slider Value
lkshikoh
Hmmm... that's strange. I hadn't looked at in a while so assumed that was still the case. Perhaps they are no longer accepting feedback
In any case this is such a visible problem that I expect they are aware of it. the only issue is whether or not it will be addressed in the first version.
Dinesh Kokate
JeffZ
I thought this was where I was supposed to report faults ....
I'll write them up on connect
Thanks
--
Dan
Jain1122
Hmm, The Windows Presentation Foundation (Avalon) connection (siteid 212) only offers these versions to report faults against, which all appear quite old I'm using The Windows Vista RC1 SDK ....
Avalon and Indigo Community Technology Preview March 2005
Microsoft Pre-Release Software Code Named Avalon and Indigo Beta 1 RC
WinFX Runtime Components Beta 1
WinFX Runtime Components Community Technology Preview December 2005
WinFx Runtime Components Community Technology Preview February 2006
WinFx Runtime Components Community Technology Preview January 2006
WinFX Runtime Components Community Technology Preview Sept 2005
--
Dan
Ross Watson
gofrm
Mark Rendle
So, I have a DataTemplate for a DataType Foo, as follows. The error is that the string '{Binding Path=Value}' is not a valid Double Value, which of course it isn't as it's a binding to a property which returns a double ....
<
DataTemplate DataType="{x:Type MyLib:Foo}"><Grid Margin="0,0,0,0" ShowGridLines="True" >
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Label Grid.Row="0" Grid.Column="0" Margin="5" Content="{Binding Path=Name}"/>
<TextBox Grid.Row="0" Grid.Column="1" Margin="5" Text="{Binding Path=Value}" HorizontalAlignment="Right"/>
<Slider Margin="5" Width="Auto" Grid.Row="1" Grid.ColumnSpan="2" Grid.Column="0" Orientation="Horizontal" Value="{Binding Path=Value}" Minimum="0" Maximum="2" TickFrequency="0.01" IsSnapToTickEnabled="True"/>
</Grid>
</DataTemplate>
namespace Fred
{
using namespace System;
public value struct Foo
{
public:
Foo(MyObj* obj) : m_obj(obj)
{
}
property String^ Name
{
String^ get()
{
CString fullName;
m_obj->getFullName(fullName);
return gcnew String(fullName);
}
} property double Value
{
double get()
{
return m_obj->getValue();
} void set(double value)
{
m_obj->setValue(value);
}
}
private:
myObj* m_Obj;
};
}
nagual
Yes, it matters, developers will be very confused and not know what works and what doesn't. The designer and the compiler must be consistent with each other
--
Dan
Allen_Simmons