Παρουσίαση με Ετικέτες

Suggestion: C# static extension methods invokable on class type too
09 Δεκεμβρίου 15 05:30 πμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
it would be nice if C# supported syntax like: public static DependencyProperty Register(static DependencyProperty x, string name, Type propertyType, Type ownerType, FrameworkPropertyMetadata typeMetadata) that is static extension methods for classes, that can be invoked without a class instance (just with the class type), apart from normal extension methods that can be invoked on a class […]
Δημοσίευση στην κατηγορία: , , , , , , , ,
Difference between LocalizableAttribute and LocalizabilityAttribute in .NET
30 Νοεμβρίου 15 02:22 μμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
I’ve just updated an older answer of mine at: https://social.msdn.microsoft.com/Forums/vstudio/en-US/716ef041-0a59-4c1d-9519-e14db4de7e75/localizability-vs-localizable-attributes-in-control-dev?forum=wpf In case you’re wondering too what’s the difference between Localizable and Localizability attributes in .NET, maybe this helps a bit: https://msdn.microsoft.com/en-us/library/ms753944(v=vs.100).aspx  LocalizableAttribute – Specifies whether a property should be localized LocalizabilityAttribute – Specifies the localization attributes for a binary XAML (BAML) class or class member […]
Δημοσίευση στην κατηγορία: , , , , , ,
Suggestion: property and event setting block attached to C# type instance
25 Αυγούστου 15 03:31 μμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
Instead of having to write in C#       speechRecognizer = CreateSpeechRecognizer();       if (speechRecognizer != null)       {         speechRecognizer.SomeProperty = someValue;         speechRecognizer.SomeOtherProperty = someOtherValue;         speechRecognizer.SpeechRecognized += SpeechRecognized;         speechRecognizer.SpeechHypothesized += SpeechHypothesized;         speechRecognizer.SpeechRecognitionRejected += SpeechRecognitionRejected;       } I’d prefer to write:       speechRecognizer = CreateSpeechRecognizer() {         SomeProperty = someValue,         SomeOtherProperty […]
Δημοσίευση στην κατηγορία: , , , , , ,
HowTo: Bind to a DataContext property named Source in XAML
14 Αυγούστου 12 03:27 μμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
While refactoring ClipFlair code to use MVVM (Model-View-ViewModel) pattern, I came across the XAML error “Object reference not set to an instance of an object.”, shown in Visual Studio when trying to bind to my ViewModel (accessed implicitly, being set as the DataContext of the XAML control) for a property named Source. I have settled [...]
Δημοσίευση στην κατηγορία: , , , , , , , , , , ,

Search

Go

Ιστορικό Δημοσιεύσεων

Συνδρομές