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

HowTo: Drop files onto Silverlight controls
27 Μαρτίου 14 05:14 μμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
I was recently adding drop-files support to ClipFlair Studio, so I had to do some research on the related API that is available to Silverlight apps. Silverlight supports a limited set of Drag-and-Drop interaction with the operating system (supposedly for security reasons, but most probably because of the classic cross-platform implementation pains). For example it […]
Δημοσίευση στην κατηγορία: , , , , , , , , , , ,
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: find max ZIndex from a collection of UIElements with LINQ
06 Δεκεμβρίου 13 03:18 μμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
My contribution to http://stackoverflow.com/questions/1101841/linq-how-to-perform-max-on-a-property-of-all-objects-in-a-collection-and-ret Based on  another answer there, here is what I’ve just added to my enhanced version of SilverFlow library’s FloatingWindowHost (copying from FloatingWindowHost.cs at http://clipflair.codeplex.com source code) /// <summary> /// Sets the specified UIElement topmost. /// </summary> /// <param name="element">UIElement to set topmost.</param> /// <exception cref="ArgumentNullException">UIElement is null</exception> private void SetTopmost(UIElement element) […]
Δημοσίευση στην κατηγορία: , , , , , , , , ,
Gotcha: .NET Point and PointConverter inconsistency in string format used
22 Νοεμβρίου 13 01:47 μμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
I have submitted the following issue to Microsoft Connect (product feedback center): http://connect.microsoft.com/VisualStudio/feedback/details/809084/point-class-issue-with-two-way-databinding Point class issue with two-way databinding   In Silverlight, when using databinding code like the following: <StackPanel Orientation="Vertical" Name="propPosition">     <sdk:Label Style="{StaticResource PropertyLabelStyle}" Content="Position:" Target="{Binding ElementName=edPosition}" />      <TextBox Name="edPosition" Text="{Binding Position, Mode=TwoWay, ValidatesOnExceptions=True, NotifyOnValidationError=true}" /> </StackPanel> and binding (via DataContext) to […]
Δημοσίευση στην κατηγορία: , , , , , , , , , ,
HowTo: use a Timer component for delayed execution in WinForms
25 Αυγούστου 13 08:28 μμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
This is my contribution to: http://stackoverflow.com/questions/303116/system-windows-threading-dispatcher-and-winforms Sometimes a Timer component is useful and easy to setup in WinForms, just set its interval and then enable it, then make sure the first thing you do in its Tick event handler is to disable itself. I think Timer runs the code in its own thread, so you […]
Δημοσίευση στην κατηγορία: , , , , , , , , , ,
Fix: Silverlight Media Framework Player VolumeElement out of sync
11 Φεβρουαρίου 13 06:54 μμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
I was just adding a storable (persistent) Volume property to the MediaPlayerView class used at ClipFlair’s MediaPlayerWindow (connected to the underlying SMF player’s VolumeLevel property), when I realized that after reloading saved state, the SMF player’s Volume control would show a different value than the value set to it (which I could confirm by flipping [...]
Δημοσίευση στην κατηγορία: , , , , , , , , , ,
Can’t step-through Silverlight file dialogs with Visual Studio debugger
02 Δεκεμβρίου 12 08:58 μμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
While stepping through “ShowDialog()” method of OpenFileDialog with Visual Studio 2010 debugger, at the Silverlight code pictured below (for loading a ClipFlair window’s stored options), I got a “Dialogs must be user-initiated” exception. Same behaviour will be shown with SaveFileDialog too, every time you try to step through the “ShowDialog()” method. This is because of [...]
Δημοσίευση στην κατηγορία: , , , , , , , , ,
PivotViewer for a rich search experience
28 Νοεμβρίου 12 06:55 μμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
For ClipFlair, I’m looking into implementing advanced search using Silverlight PivotViewer   A really nice example of PivotViewer search is at: http://www.appletoncompassion.org/VirtualExhibitViewer This may take long time to load, since its loading 10000 children art DeepZoom image tiles You can use the mousewheel to zoom in there or the zoom slider at top-right (can also [...]
Δημοσίευση στην κατηγορία: , , , , , , , ,
HowTo: Hide Video area of Silverlight Media Framework Player
03 Οκτωβρίου 12 12:25 μμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
Since our onoing project ClipFlair is a follow-up of the succesful project LeViS, during its development I’m also looking at covering possible use-cases I infer from feedback entries at LvS application issue tracker on Codeplex (note that ClipFlair is also opensourced on Codeplex at http://ClipFlair.codeplex.com). One such issue (http://lvs.codeplex.com/workitem/11511) was titled “Allow video hiding while [...]
Δημοσίευση στην κατηγορία: , , , , , , , , ,
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: Set UI language (CurrentUICulture) in Silverlight
20 Ιουνίου 12 04:11 μμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
At LvS (the opensource application of LeViS), I’ve been using this (VB.net) code to set the UI language (for example to Greek): Thread.CurrentThread.CurrentUICulture = CultureInfo.GetCultureInfo("el") Others seem to have been using (C# – that’s why there is a trailing semicolon): Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture("el"); assuming System.Globalization and System.Threading namespaces have been imported. However, now that I’m [...]
Δημοσίευση στην κατηγορία: , , , , , , ,
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 [...]
Δημοσίευση στην κατηγορία: , , , , , ,

Search

Go

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

Συνδρομές