George Birbilis' blog
...discussing pretty much everything
Παρουσίαση με Ετικέτες
Όλες οι Ετικέτε...
»
.NET
(RSS)
.NET 3.5
ADO.net
Alias Types
AmnesiaOfWho
Analysis
API
Architecture
Array
ASP.net
Audio
Binding
Border
Bugs
ByName
ByRef
ByVal
C#
Captioning
Characters
Class
ClipFlair
Codec
CommandLine
Compatibility
Compiler
Compression
Config
Configuration
Constructors
Contains
Contracts
Controls
Conversion
CurrentCulture
Data
Decorator
DependencyProperty
Development
Difference
DLL
Documentation
Downloads
EndsWith
Enterprise
Errors
Extensions
Fail
Filename
Filesystem
Filters
Fix
Folders
Formatting
Forums
Functions
GDI+
Generic.xaml
Gotcha
GraphX
Help
HowTo
HTTP
If
IIS
Image
Immutability
Information
Input
Installation
Invalid
Links
Namespaces
Porting
Posts
Prefix
Programming
Properties
Reference
RegEx
Replace
Samples
Silverlight
Smart Classroom
Source
String
Structured
Styles
Suffix
Termination
Themes
Troubleshooting
UI
VisualStudio
WinForms
Workarround
WPF
Xamarin
XAML
XML
ZUI
How to crash Visual Studio 2010 via (Silverlight) XAML recursion bug
12 Ιουλίου 12 04:42 μμ
|
Μπιρμπίλης Γεώργιος
|
0 σχόλια
Following up on a note about Visual Studio 2010 crashing at my previous post, this is the XAML that crashes VS2010 when opened up in a Silverlight project: <UserControl x:Class="SilverlightApplication1.MainPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" d:DesignHeight="300" d:DesignWidth="400"> <UserControl.Resources> <ResourceDictionary> <Style x:Key="MyStyle" TargetType="StackPanel"> <Setter Property="Margin" Value="0,5,0,5" [...]
How to space StackPanel items in XAML (has no Padding property)
11 Ιουλίου 12 01:34 μμ
|
Μπιρμπίλης Γεώργιος
|
0 σχόλια
While adding some properties to the back panels of ClipFlair windows, I came upon the issue of how to space items in a StackPanel. A Padding property is missing from multiple item containers (only single content controls have such), but a nice solution is described at: http://stackoverflow.com/questions/932510/how-do-i-space-out-the-child-elements-of-a-stackpanel Sergey Aldoukhov suggested there (WPF example): Use Margin [...]
Collection of useful links for .NET, Silverlight, WPF etc. development
05 Ιουλίου 12 12:22 μμ
|
Μπιρμπίλης Γεώργιος
|
0 σχόλια
During the development of ClipFlair (currently at Alpha1-internal version), I’ve been doing lots of research, hunting for information (documentation, related discussion threads, useful download links) needed when writing and refactoring source code etc. I have tried to organize these links as (Windows) Internet shortcut files into folders. They do need some further restructuring, but they [...]
C# Using Alias Directive, Namespace Alias Qualifier and a sad story
04 Ιουλίου 12 10:45 μμ
|
Μπιρμπίλης Γεώργιος
|
0 σχόλια
Following up on my last post: http://zoomicon.wordpress.com/2012/07/04/how-to-compile-code-that-uses-wpf-decorator-type-in-silverlight/ I’m copying from a mental note I added to: http://stackoverflow.com/questions/4936941/using-a-using-alias-class-with-generic-types/11334359: As shown at: http://msdn.microsoft.com/en-us/library/sf0df423.aspx and http://msdn.microsoft.com/en-us/library/c3ay4x3d%28VS.80%29.aspx you can do: using gen = System.Collections.Generic; using GenList = System.Collections.Generic.List<int>; and then use gen::List<int> x = new gen::List<int>; or GenList x = new GenList(); However: you have to replicate those using [...]
How to compile code that uses WPF Decorator type in Silverlight
04 Ιουλίου 12 09:57 μμ
|
Μπιρμπίλης Γεώργιος
|
0 σχόλια
At ClipFlair I’m using a modified version of FloatingWindow control, where I try to make the WPF and Silverlight flavours of the original control share as much code as possible (this is work in progress currently, hoping to eventually have the WPF and Silverlight projects both link to the same source files [this is currently [...]
Why I don’t see static extension support for constructors in C# coming
02 Ιουλίου 12 12:30 πμ
|
Μπιρμπίλης Γεώργιος
|
0 σχόλια
I was hoping C# would someday add static extension support for constructors too (apart from classic methods), that would help a lot in source-level compatibility layers (for example at my WPF_Compatibility project for WPF syntax in Silverlight, which one can find under the ClipFlair source base). However, according to : http://mrpmorris.blogspot.gr/2007/01/net-calling-base-constructors-in-c.html Anders Hejlsberg (father of [...]
Fix: The tag XXX does not exist in XML namespace ‘clr-namespace:YYY’
02 Ιουλίου 12 12:18 πμ
|
Μπιρμπίλης Γεώργιος
|
0 σχόλια
I just had some big trouble troubleshooting the Visual Studio / XAML compiler error message: The tag XXX does not exist in XML namespace ‘clr-namespace:YYY’ It turned out this occurred because I had a Silverlight library with Assembly name X and default namespace X (at properties pane), but was using it from a demo project [...]
HowTo: Load a XAML ResourceDictionary from a .NET assembly
11 Ιουνίου 12 07:08 μμ
|
Μπιρμπίλης Γεώργιος
|
0 σχόλια
Copying here my answer at: http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/11a42336-8d87-4656-91a3-275413d3cc19 What seems to work for me is the following (copying from the source code of http://ClipFlair.codeplex.com [currently under development]) note I’m using Build Action = "Page" and Custom Tool="MSBuild:Compile" at the properties of Themes\DropDownTheme.xml and Themes\RotateHorizontalTheme.xaml, as was for Themes\Generic.xaml. Seems to work OK (probably this is faster at [...]
What to do if Generic.xaml doesn’t get loaded for WPF control
10 Ιουνίου 12 05:26 μμ
|
Μπιρμπίλης Γεώργιος
|
0 σχόλια
Just came across http://wangmo.wordpress.com/2007/09/27/themesgenericxaml/ which gave me a hint on why a WPF control wasn’t getting instantiated correctly when loaded from an external assembly (dll): to load generic.xaml for WPF, at the start of Properties\AssemblyInfo.cs you need (note this isn’t used/needed in Silverlight): using System.Windows; and at the end of Properties\AssemblyInfo.cs you need: [assembly: ThemeInfo( [...]
workaround: Silverlight Rect class missing ‘bool Contains(Rect)’ method
29 Απριλίου 12 08:20 μμ
|
Μπιρμπίλης Γεώργιος
|
0 σχόλια
I’ve been looking into porting Kael Rowan’s ZoomableCanvas (related to ZUI code used in Code Canvas, Debugger Canvas etc. VisualStudio add-ons) from WPF to Silverlight. One of the issues I found was that Silverlight’s Rect class (I guess this is a case for .NET Compact Framework in general) doesn’t have a method to check if [...]
VB gotcha: when If function isn’t equivalent to an If-Then-Else block
25 Νοεμβρίου 11 01:07 μμ
|
Μπιρμπίλης Γεώργιος
|
0 σχόλια
Just got bitten by the following: Dim takeN As Integer = If(Integer.TryParse(EdTake.Text, takeN), takeN, itemsCount) I had used that instead of writing in 2 lines: Dim takeN As Integer If not Integer.TryParse(EdTake.Text, takeN) then takeN = itemsCount However, there’s an important difference: “If” is a function, so its arguments are evaluated at call-time. The “If” [...]
Gotchas at Wait for a shelled app to finish (with/out timeout) with .NET
21 Σεπτεμβρίου 11 06:47 μμ
|
Μπιρμπίλης Γεώργιος
|
0 σχόλια
I came across a useful Microsoft Support sample called “How to wait for a shelled application to finish by using Visual Basic 2005 or Visual Basic .NET” at http://support.microsoft.com/kb/305368 However, note that there are several gotchas with the code supplied there (just informed Microsoft on that, hope they take notice). Also the article points to [...]
ADO.net DataSet – Watch out for AcceptChanges – Don’t do before Update
02 Σεπτεμβρίου 09 08:46 μμ
|
Μπιρμπίλης Γεώργιος
|
0 σχόλια
I’ve been recently writing a small program in ADO.net, using DataSet classes (using Visual Studio dataset designer) to import Biblionet data on greek books into an osCommerce shop ( MySQL database) and was wandering why it seemed to work ok, but never wrote anything in the database. I started wandering whether it was an issue with the MySQL .NET Connector (this is ver 6.0, see latest
Διαβάστε περισσότερα »
Περισσότερες Δημοσιεύσεις
« Προηγούμενη
Search
Go
Το Ιστολόγιο
Αρχική Σελίδα
Επικοινωνία
Ετικέτες
.NET
ASP.net
Audio
Automation
Binding
Browser
Bugs
C#
Class
ClipFlair
Compatibility
Compression
Computers
Computers and Internet
Configuration
Controls
CSS
Database
Downloads
Ecology
Education
Errors
E-Slate
Events
Extensions
Fail
Filesystem
Filters
Firefox
Fix
Free
Games
Google
Gotcha
Hash
HowTo
HTML
HTTP
IE
IE9
IIS
Installation
Installers
Javascript
Kinect
Law
Layout
Links
Maps
Media
MediaElement
Methods
Microsoft
MMPPF
Mouse
None
Operators
Plugins
Posts
Programming
Prometheus
Properties
Python
RegEx
Security
Sharing
Silverlight
Smart Classroom
SMF
Source
String
Suggestion
Suggestions
Syntax
Text
trafilm
Transforms
Troubleshooting
Twitter
UI
Updates
URL
Usability
Video
Visual Studio
Visualization
VisualStudio
Windows
Windows 10
Windows 7
Word
WordPress
Workarround
WPF
XAML
XML
YouTube
ZIP
ZUI
Αταξινόμητα
Πλοήγηση
Αρχική σελίδα
Ιστολόγια
Συζητήσεις
Εκθέσεις Φωτογραφιών
Αρχειοθήκες
Ιστορικό Δημοσιεύσεων
Ιούνιος 2021 (1)
Απρίλιος 2021 (1)
Φεβρουάριος 2021 (2)
Ιανουάριος 2021 (2)
Αύγουστος 2020 (3)
Ιούλιος 2020 (2)
Απρίλιος 2020 (2)
Μάρτιος 2020 (3)
Φεβρουάριος 2020 (2)
Δεκέμβριος 2019 (1)
Νοέμβριος 2019 (1)
Οκτώβριος 2019 (2)
Αύγουστος 2019 (1)
Ιούνιος 2019 (2)
Απρίλιος 2019 (3)
Ιανουάριος 2019 (1)
Νοέμβριος 2018 (4)
Οκτώβριος 2018 (4)
Σεπτέμβριος 2018 (2)
Αύγουστος 2018 (2)
Ιούνιος 2018 (3)
Μάρτιος 2018 (2)
Φεβρουάριος 2018 (1)
Νοέμβριος 2017 (4)
Ιούνιος 2017 (1)
Απρίλιος 2017 (1)
Μάρτιος 2017 (1)
Μάιος 2016 (5)
Ιανουάριος 2016 (1)
Δεκέμβριος 2015 (7)
Νοέμβριος 2015 (12)
Οκτώβριος 2015 (2)
Σεπτέμβριος 2015 (3)
Αύγουστος 2015 (9)
Ιούλιος 2015 (1)
Ιούνιος 2015 (3)
Μάιος 2015 (1)
Απρίλιος 2015 (2)
Μάρτιος 2015 (2)
Φεβρουάριος 2015 (1)
Ιανουάριος 2015 (2)
Δεκέμβριος 2014 (3)
Νοέμβριος 2014 (3)
Οκτώβριος 2014 (1)
Σεπτέμβριος 2014 (2)
Αύγουστος 2014 (6)
Ιούλιος 2014 (1)
Μάιος 2014 (1)
Απρίλιος 2014 (2)
Μάρτιος 2014 (3)
Φεβρουάριος 2014 (2)
Δεκέμβριος 2013 (2)
Νοέμβριος 2013 (2)
Σεπτέμβριος 2013 (2)
Αύγουστος 2013 (3)
Ιούλιος 2013 (5)
Ιούνιος 2013 (2)
Μάιος 2013 (3)
Απρίλιος 2013 (2)
Μάρτιος 2013 (2)
Φεβρουάριος 2013 (4)
Δεκέμβριος 2012 (6)
Νοέμβριος 2012 (11)
Οκτώβριος 2012 (5)
Σεπτέμβριος 2012 (2)
Αύγουστος 2012 (9)
Ιούλιος 2012 (11)
Ιούνιος 2012 (8)
Μάιος 2012 (2)
Απρίλιος 2012 (2)
Φεβρουάριος 2012 (5)
Ιανουάριος 2012 (5)
Δεκέμβριος 2011 (8)
Νοέμβριος 2011 (3)
Οκτώβριος 2011 (4)
Σεπτέμβριος 2011 (8)
Ιούλιος 2011 (3)
Ιούνιος 2011 (2)
Μάιος 2011 (2)
Μάρτιος 2011 (4)
Φεβρουάριος 2011 (8)
Ιανουάριος 2011 (2)
Δεκέμβριος 2010 (1)
Νοέμβριος 2010 (3)
Οκτώβριος 2010 (12)
Σεπτέμβριος 2010 (2)
Αύγουστος 2010 (2)
Ιούλιος 2010 (9)
Ιούνιος 2010 (3)
Μάιος 2010 (11)
Απρίλιος 2010 (15)
Μάρτιος 2010 (13)
Φεβρουάριος 2010 (15)
Ιανουάριος 2010 (4)
Δεκέμβριος 2009 (3)
Νοέμβριος 2009 (15)
Οκτώβριος 2009 (26)
Σεπτέμβριος 2009 (13)
Αύγουστος 2009 (8)
Ιούλιος 2009 (8)
Ιούνιος 2009 (4)
Μάιος 2009 (4)
Απρίλιος 2009 (7)
Μάρτιος 2009 (8)
Φεβρουάριος 2009 (8)
Ιανουάριος 2009 (3)
Δεκέμβριος 2008 (31)
Νοέμβριος 2008 (24)
Οκτώβριος 2008 (1)
Μάιος 2008 (2)
Αύγουστος 2007 (1)
Νοέμβριος 2006 (1)
Σεπτέμβριος 2006 (1)
Συνδρομές
RSS 2.0
Atom 0.3