Advanced Forum Search Results
-
Not sure why you would qualify this as a Silverlight tip since this works for any type of project that is loaded in VS IDE and I guess pretty much for any language as well!
-
good examples and explained well with pictures. working with Silverlight is really becoming easy
-
Also check this - http://www.nikhilk.net/Silverlight-ViewModel-Pattern.aspx
-
I was extending the DatePicker control for some other reasons and here is what i did to make it read only, in my custom control
public override void OnApplyTemplate()
{
base.OnApplyTemplate();
DatePickerTextBox box = base.GetTemplateChild("TextBox") as ...
-
Thanks again and one final query before we can close this. Isn't there a need to have the x:Name values unique in a XAML as mentioned here - http://msdn.microsoft.com/en-us/library/ms752290.aspx?
In the template you have mentioned above, there are two rectangles with the same x:Name as DisabledVisual?
-
There is another rectangle with that name, i have pasted a snippet from the template below and bold faced the two rectangles. The one where i faced the error and other which is already called as DisabledVisual
<Rectangle x:Name="Disabled" RadiusX="2" RadiusY="2" Fill="{StaticResource ...
-
I took the DatePicker control template from MSDN (http://msdn.microsoft.com/en-us/library/cc278067(VS.95).aspx). However when I use it as a style for DatePicker control in my code and run the application, I get a System.Stack.OverflowException.
<System_Windows_Controls:DatePicker ...
-
Yi, I actually did that. There are some issues though. If I want to reset the date to the older value (the new one being say invalid), I tried to first set the DisplayDate, but that doesnt' change the one already shown in the edit box. I then tried to set the Text property also, but that will require me to give date in the same format as is ...
-
[quote user="lee_sl"]
you could change the template and make the textbox readonly
[/quote]
I just tried to do this, and surprisingly, the control template appears empty? Am I missing something here? When I select Edit Controls Parts (Template) -> Edit a Copy, I get an empty template and the DatePicker control is no longer visible ...
-
[quote user="lee_sl"]
I think this is a bug. there is a DateValidationError event, not sure if that is being raised if there is an error with the date
[/quote]
Checked, but no validation error is being raised. Can someone from MS confirm if this is a bug?