Click here to Skip to main content
15,888,816 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: textbox validation in silverlight [modified] Pin
Abhinav S30-Nov-09 23:45
Abhinav S30-Nov-09 23:45 
GeneralRe: textbox validation in silverlight Pin
Mark Salsbery1-Dec-09 8:08
Mark Salsbery1-Dec-09 8:08 
AnswerRe: textbox validation in silverlight Pin
fred_1-Dec-09 4:40
fred_1-Dec-09 4:40 
QuestionValidationRule bind two values Pin
ezazazel30-Nov-09 20:25
ezazazel30-Nov-09 20:25 
AnswerRe: ValidationRule bind two values Pin
Pete O'Hanlon30-Nov-09 21:42
mvePete O'Hanlon30-Nov-09 21:42 
Questionhelp animation wpf - vb Pin
Member 360941530-Nov-09 6:55
Member 360941530-Nov-09 6:55 
AnswerRe: help animation wpf - vb Pin
Christian Graus1-Dec-09 5:32
protectorChristian Graus1-Dec-09 5:32 
QuestionWPF property xaml serialization in design time problem Pin
Thomas Duwe30-Nov-09 3:20
Thomas Duwe30-Nov-09 3:20 
Hi,

I develop a custom control in VS 2008 and in that control is a DP property of a custom class.
The class has mainly two DP properties of type System.Globalization.CultureInfo and System.Globalization.Calendar. The class derives from DependencyObject.

So when in design time I choose a value for the class, the designer generates xaml code similar to:
<CustomControl.Culture>
    <Culture Culture="Deutsch (Deutschland)">
        <Culture.Calendar>
            <my:GregorianCalendar />
        <Culture.Calendar>
    </Culture>
</CustomControl.Culture>


But what I want is following:

<CustomControl.Culture>
    <Culture Culture="Deutsch (Deutschland)" Calendar="Gregorian Localized">
    </Culture>
</CustomControl.Culture>


I adorned the Calendar DP property in the custom class with a TypeConverterAttribute and an ValueSerializerAttribute and built a design dll adding the attributes to the metadata store but nothing is working.

If I write the code in xaml in the second form the designer accepts it and all is fine, but every time
I change the Calendar property in the property browser, the designer changes the code to the first form.

If I implement the custom class derived from object without DP properties, the designer generates code in the second form.

Any ideas if I can influence the designer generated code?

Thanks,

Thomas.
QuestionDesign issue Pin
Tauseef A29-Nov-09 16:51
Tauseef A29-Nov-09 16:51 
AnswerRe: Design issue Pin
Mark Salsbery30-Nov-09 9:17
Mark Salsbery30-Nov-09 9:17 
QuestionAdvantages and disadvantage using sliverlight Pin
Gopal_Kanchana27-Nov-09 18:22
Gopal_Kanchana27-Nov-09 18:22 
AnswerRe: Advantages and disadvantage using sliverlight Pin
Mark Salsbery28-Nov-09 8:40
Mark Salsbery28-Nov-09 8:40 
AnswerRe: Advantages and disadvantage using sliverlight Pin
Kunal Chowdhury «IN»6-Dec-09 7:07
professionalKunal Chowdhury «IN»6-Dec-09 7:07 
GeneralRe: Advantages and disadvantage using sliverlight Pin
Gopal_Kanchana6-Dec-09 18:43
Gopal_Kanchana6-Dec-09 18:43 
GeneralRe: Advantages and disadvantage using sliverlight Pin
Teun L9-Dec-09 1:33
Teun L9-Dec-09 1:33 
AnswerRe: Advantages and disadvantage using sliverlight Pin
Abhinav S6-Dec-09 17:45
Abhinav S6-Dec-09 17:45 
GeneralRe: Advantages and disadvantage using sliverlight Pin
Kunal Chowdhury «IN»11-Dec-09 3:39
professionalKunal Chowdhury «IN»11-Dec-09 3:39 
AnswerRe: Advantages and disadvantage using sliverlight Pin
Michael Eber19-Jan-10 6:24
Michael Eber19-Jan-10 6:24 
QuestionWPF - staggering storyboard executions Pin
gritter27-Nov-09 16:59
gritter27-Nov-09 16:59 
AnswerRe: WPF - staggering storyboard executions Pin
gritter28-Nov-09 3:05
gritter28-Nov-09 3:05 
QuestionMDI type of application using WPF Pin
nilam247726-Nov-09 23:37
nilam247726-Nov-09 23:37 
QuestionWPF UserControl Inheritance in VB.NET? Pin
ThisIsJustAPunkRockSong25-Nov-09 23:08
ThisIsJustAPunkRockSong25-Nov-09 23:08 
Questionpolicy issue Pin
Tauseef A25-Nov-09 10:28
Tauseef A25-Nov-09 10:28 
AnswerRe: policy issue Pin
Mark Salsbery25-Nov-09 10:54
Mark Salsbery25-Nov-09 10:54 
QuestionRe: policy issue Pin
Tauseef A25-Nov-09 19:44
Tauseef A25-Nov-09 19:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.