George Birbilis' blog
...discussing pretty much everything
Παρουσίαση με Ετικέτες
Όλες οι Ετικέτε...
»
WPF
(RSS)
.NET
Alias Types
Binding
Blend
Border
Capture
ClipFlair
Collection
Color
Colors
Compatibility
Compiler
Constructors
Contains
Controls
Decorator
DeepZoom
DependencyProperty
Design
Development
Dictionary
Difference
Documentation
Downloads
Drawing
Events
Expression
Extensions
Find
Generic.xaml
Geometry
Gotcha
HowTo
HTML5
Image
Inconsistency
Information
Input
Insertion
IsMoveToPointEnabled
Isolated Storage
IsolatedStorageSettings
Layout
Learning
Links
Localization
Margin
Microsoft
Mouse
MVVM
Naming
NewLine
Padding
Pen
Persistence
Pivot
Posts
Programming
Projects
Properties
PropertyMetadata
Recognition
Rect
Reference
Resizing
Resources
Runtime
ScaleTransform
Scaling
SeaDragon
Sharing
Silverlight
Slider
Smart Classroom
Source
Spacing
Speech
StackPanel
Text
TextBlock
Tracking
Transforms
Troubleshooting
Turtle
UI
UserControl
VisualStudio
Voice
VSIX
Windows
XAML
XAMLParseException
ZUI
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 […]
Gotcha: WPF UserControl SizeChanged event not firing at resizing
28 Νοεμβρίου 15 04:15 μμ
|
Μπιρμπίλης Γεώργιος
|
0 σχόλια
Useful to know: If you set the Width and Height on the UserControl though, you have set a fixed size and thus even if its parent tool window changes size, the UserControl never will. You should not set Width and Height on the UserControl if you want that event to be raised as the parent […]
HowTo: List all known color names and find name of given color at WPF
01 Σεπτεμβρίου 15 06:11 μμ
|
Μπιρμπίλης Γεώργιος
|
0 σχόλια
This is my answer at http://stackoverflow.com/questions/4475391/wpf-silverlight-find-the-name-of-a-color Modified answer from Thomas Levesque to populate the Dictionary only when 1st needed, instead of taking the cost at startup (going to use at speech recognition-driven turtle graphics, so that user can pronounce known color names to change the turtle’s pen color) //Project: SpeechTurtle (http://SpeechTurtle.codeplex.com) //Filename: ColorUtils.cs //Version: 20150901 […]
HowTo: Insert new line and spacing at content of WPF TextBlock control
28 Αυγούστου 15 04:34 μμ
|
Μπιρμπίλης Γεώργιος
|
0 σχόλια
While adding more voice commands at SpeechTurtle, I had to update the active legend where the available commands are displayed and their text is highlighted as the respective commands are recognized by the speech recognition engine (using .NET’s managed Speech API). A problem I faced was how to add a newline and prefixing the 2nd […]
Managed .NET Speech API links
24 Αυγούστου 15 03:11 πμ
|
Μπιρμπίλης Γεώργιος
|
0 σχόλια
(this is my answer at http://stackoverflow.com/questions/14771474/voice-recognition-in-windows) I’m looking into adding speech recognition to my fork of Hotspotizer Kinect-based app (http://github.com/birbilis/hotspotizer) After some search I see you can’t markup the actionable UI elements with related speech commands in order to simulate user actions on them as one would expect if Speech input was integrated in WPF. […]
HowTo: use PivotViewer in WPF
04 Σεπτεμβρίου 14 02:12 μμ
|
Μπιρμπίλης Γεώργιος
|
0 σχόλια
PivotViewer is an impressive Silverlight control (see my usage at http://gallery.clipflair.net), however Microsoft never released it for WPF. One could work arround this by embedding Silverlight in their WPF app using the WebBrowser control and talking to it via the JavaScript Bridge of Silverlight, however they could also embed one of those HTML5 PivotViewer-compatible controls […]
Gotcha: OnLostMouseCapture always called by CaptureMouse at WPF
14 Μαρτίου 14 12:08 πμ
|
Μπιρμπίλης Γεώργιος
|
0 σχόλια
It seems that CaptureMouse is behaving differently in WPF and Silverlight, in that in the former one it immediately calls OnLostMouseCapture at a Visual, whereas in Silverlight it doesn’t get called if the element didn’t have the mouse capture already (btw, in Silverlight that method is at a UIElement – there is no Visual ancestor […]
HowTo: Make Project Linker extension’s VSIX install at Visual Studio 2012
27 Νοεμβρίου 12 10:24 πμ
|
Μπιρμπίλης Γεώργιος
|
0 σχόλια
Project Linker is a Visual Studio Extension that “helps to automatically create and maintain links from a source project to a target project to share code that is common to Silverlight and WPF”. In ClipFlair, where I have shared code between a Silverlight and a WPF project (I guess same would be for XNA projects [...]
HowTo: Scale control arround its center using a render transform
15 Αυγούστου 12 07:02 μμ
|
Μπιρμπίλης Γεώργιος
|
0 σχόλια
In the context of ClipFlair development, I was recently adding independent scaling (zooming) functionality to its ZUI container’s floating windows (apart from the container zooming functionality) and came across some strange behavior, where the windows seemed to also move apart from getting scaled. After banging my head a bit I decided to take a closer [...]
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 [...]
Single statement ScaleTransform initialization in both WPF and SL
11 Αυγούστου 12 06:32 μμ
|
Μπιρμπίλης Γεώργιος
|
0 σχόλια
With Silverlight using a cut-down .NET API, some decisions have been at least ackward, causing Silverlight code to be sometimes unnecesserily more complex than its WPF counterpart and WPF code needing several changes to get ported for Silverlight. In ClipFlair I’ve implemented a WPFCompatibility layer to ease compiling WPF code for Silverlight (and vice-versa too) [...]
Gotcha: Silverlight DependencyProperty metadata: 0d not 0 for double
09 Αυγούστου 12 11:38 μμ
|
Μπιρμπίλης Γεώργιος
|
0 σχόλια
Just came accross a runtime error message that troubled me a bit to resolve while adding Prezi-like content scaling functionality in ClipFlair‘s FloatingWindowHostZUI (ZUI = Zoomable User Interface) container. I had added the following: /// Identifies the <see cref="FloatingWindow.Scale" /> dependency property. /// </summary> /// <value> /// The identifier for the <see cref="FloatingWindow.Scale" /> dependency [...]
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 [...]
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 [...]
Zoom and Pan control for WPF and Silverlight (via WPF compatibility layer)
18 Ιουνίου 12 08:50 μμ
|
Μπιρμπίλης Γεώργιος
|
0 σχόλια
I’ve managed to combine http://www.codeproject.com/Articles/85603/A-WPF-custom-control-for-zooming-and-panning and a cut-down version of it for Silverlight that was out there: http://www.codeproject.com/Articles/167453/A-Silverlight-custom-control-for-zooming-and-panni I did it in a way that the Silverlight version is source-code compatible with the WPF version (via a WPF compatibility layer that even implements value coercion), so that both the WPF and the Silverlight projects share [...]
IsolatedStorageSettings for WPF
18 Ιουνίου 12 04:01 πμ
|
Μπιρμπίλης Γεώργιος
|
0 σχόλια
System.IO.IsolatedStorageSettings doesn’t exist in WPF (only in Silverlight) but can easily be ported from Mono project’s Moonlight implementation (the Moonlight project home is at http://www.mono-project.com/Moonlight), as suggested at: http://groups.google.com/group/wpf-disciples/browse_thread/thread/4ed6c009f3fb7d69 I found that implementation at the following URL: http://vega.frugalware.org/tmpgit/moon/class/System.Windows/System.IO.IsolatedStorage/IsolatedStorageSettings.cs Did some modifications to IsolatedStorageSettings.cs to make it work with WPF (whether the application is deployed via [...]
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 [...]
Microsoft Expression Blend – learning and community resources
02 Ιουλίου 11 02:55 πμ
|
Μπιρμπίλης Γεώργιος
|
0 σχόλια
Copying from Expression Blend 4 User Guide’s “Learning and community resources” section: Apart from this User Guide, the following additional content and resources are available. Expression Blend and other Expression Studio products Expression community website (training, tutorials, videos, and webcasts) Expression Blend and Expression Design team blog Expression Blend discussion forums Feedback and bug reporting [...]
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