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

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 […]
Δημοσίευση στην κατηγορία: , , , , , , , , , , , , ,
Fix: XAML – The member Content is not recognized or is not accessible
09 Φεβρουαρίου 14 02:27 μμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
I was looking into some third-party code, upgrading it from Silverlight 4.x and was getting error ‘The member "Content" is not recognized or is not accessible’ at the following code part: Looking it up, found that you don’t need to bind the Content property of a ContentPresenter at all if you put it inside the […]
Δημοσίευση στην κατηγορία: , , , , , ,
Nice DeepZoom image samples via ClipFlair Studio’s Image component
04 Φεβρουαρίου 14 08:12 μμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
Here are some DeepZoom image samples to enjoy via ClipFlair‘s Image component, in our ClipFlair Studio app (Silverlight-based): http://studio.clipflair.net/?image=http://static.seadragon.com/content/misc/blue-marble.dzi http://studio.clipflair.net/?image=http://static.seadragon.com/content/misc/earths-city-lights.dzi http://studio.clipflair.net/?image=http://static.seadragon.com/content/misc/carina-nebula.dzi http://studio.clipflair.net/?image=http://static.seadragon.com/content/misc/orion-nebula.dzi http://studio.clipflair.net/?image=http://static.seadragon.com/content/misc/contoso-fixster.dzi http://studio.clipflair.net/?image=http://static.seadragon.com/content/misc/milwaukee.dzi (hand-drawn pano, 1898) http://studio.clipflair.net/?image=http://static.seadragon.com/content/misc/last-fm.dzi http://studio.clipflair.net/?image=http://static.seadragon.com/content/misc/yosemite-panorama.dzi  (try zooming onto the waterfall) http://studio.clipflair.net/?image=http://static.seadragon.com/content/misc/angkor-wat.dzi Tagged: ClipFlair, DeepZoom, Image, Photography, Visualization, ZUI
Δημοσίευση στην κατηγορία: , , , , , ,
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 […]
Δημοσίευση στην κατηγορία: , , , , , , , , , ,
HowTo: Display version information on WinForm title
20 Αυγούστου 13 11:39 μμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
This is my contribution to http://stackoverflow.com/questions/7178725/version-number-in-winform-form-text I’m using the following at the WinForm of the WebCapture tool I’m making for ClipFlair: public MainForm() { InitializeComponent(); Version version = Assembly.GetExecutingAssembly().GetName().Version; Text = Text + " " + version.Major + "." + version.Minor + " (build " + version.Build + ")"; //change form title } Not showing […]
Δημοσίευση στην κατηγορία: , , , , ,
HowTo: Save screenshot of a control hosted on a WinForm
20 Αυγούστου 13 06:38 μμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
I’m trying to automate grabbing of activity screenshots from ClipFlair Activity Gallery, but most command-line screen capturing tools, like SiteShoter and IECapt fail to get an image from Silverlight content (they get just a background color). Some other opensource tool that I could tweek was ThumbPage, but  that didn’t support command-line and needed to disable […]
Δημοσίευση στην κατηγορία: , , , , , , ,
Gotcha: use server-side comment, not HTML comment in ASP.net
29 Ιουλίου 13 01:15 πμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
I try to remember to use <%– and –%> instead of <!– and –> for comments in server-side web pages, to avoid having implementation details (for security reasons that is) in the output HTML and to keep the download size smaller / have the pages load faster. What came to me though the other day […]
Δημοσίευση στην κατηγορία: , , , , , ,
HowTo: Bind ASP.net control to list of files or folders
15 Ιουλίου 13 03:33 πμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
At from ClipFlair Gallery metadata input pages for Activities and Clips I had to bind an ASP.net control to a list of files and folders respectively and although I found a Folder Contents DataSource control, it didn’t cover my needs (like filtering of a folder contents). I just contributed my solution using .NET Anonymous Types and […]
Δημοσίευση στην κατηγορία: , , , , , , , , , , , ,
HowTo: Remove invalid filename characters in .NET
12 Ιουλίου 13 11:28 μμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
In ClipFlair Studio I use DotNetZip (Ionic.Zip) library for storing components (like the activity and its nested child components) to ZIP archives (.clipflair or .clipflair.zip files). Inside the ZIP archive its child components have their own .clipflair.zip file and so on (so that you could even nest activities at any depth) which construct their filename […]
Δημοσίευση στην κατηγορία: , , , , , , , , , , , ,
HowTo: Perform ASP.net action after page child controls are databound
11 Ιουλίου 13 11:57 πμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
While creating metadata entry/update pages for ClipFlair’s Activity and Clip Galleries I had the problem of figuring out how to do some initialization (from XML data, loaded from a filename based on the 1st item of a DataBound control), after all child controls of the ASP.net Page have been databound (from XmlDataSource). Seems others have […]
Δημοσίευση στην κατηγορία: , , , , , , , ,
Gotcha: var x = x() in Javascript gives “Object Expected” error
14 Ιουνίου 13 12:27 μμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
At ClipFlair Studio (a Silverlight app), I had some time ago implemented a confirmation warning upon user trying to close the webpage (when it was running inside the web browser), which then had stopped functioning. It seems at some refactoring I had added code like the following: var activityView = activityView(); and it was failing […]
Troubleshooting: Silverlight installation on MacOS-X
23 Μαΐου 13 07:45 μμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
One of our ClipFlair Studio users reported on having some issue trying to install Silverlight on MacOS-X, so I gathered some related info below:     First of all, at the Silverlight installation webpage, at the System Requirements tab, you can find the following requirements: Macintosh (Intel-based) Intel Core Duo 1.83-gigahertz (GHz) or higher processor […]
Δημοσίευση στην κατηγορία: , , , , , , ,
.NET String extension methods to check for array of prefixes or suffixes
05 Απριλίου 13 10:51 μμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
Seems StartsWith and EndsWith methods of String class in .NET are missing a version that accepts multiple (as an array) prefixes or suffixes respectively when testing the string. To achieve this I just added the following extension methods to StringExtensions class (of Utils.Extensions namespace) under Utils.Silverlight project at the ClipFlair source code. public static bool [...]
Δημοσίευση στην κατηγορία: , , , , , , , , , , , , ,
.NET String class extensions to replace prefix or suffix
26 Μαρτίου 13 05:47 μμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
Just added the following extension methods to StringExtensions class (of Utils.Extensions namespace) under Utils.Silverlight project at the ClipFlair source code. public static string ReplacePrefix( this string s, string fromPrefix, string toPrefix, StringComparison comparisonType) { return (s.StartsWith(fromPrefix, comparisonType)) ? toPrefix + s.Substring(fromPrefix.Length) : s; } public static string ReplacePrefix( this string s, string[] fromPrefix, string toPrefix, [...]
Δημοσίευση στην κατηγορία: , , , , , , , , ,
IIS FTP login fails after Windows platform update for Server 2008 R2
27 Φεβρουαρίου 13 05:00 μμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
I had recently enabled FTP access to the ClipFlair Gallery to easy its maintenance during development and after the Windows Server 2008 R2 platform update last night (together with release for Internet Explorer 10), the FTP login stopped working. To fix it, from a command prompt with administrator rights (Start/Find, type Command and right click the [...]
Δημοσίευση στην κατηγορία: , , , , , , , ,
HowTo: format XML output of DataContractSerializer
22 Φεβρουαρίου 13 04:52 μμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
based on the other samples posted at StackOverflow on how to format XML created by DataContractSerializer, that use XmlWriter, here’s a version (from ClipFlair source code) that works with streams (and Ionic.Zip library in specific). It also shows how the code is when you don’t apply formatting (using conditional compilation).  Just comment out the #define [...]
Δημοσίευση στην κατηγορία: , , , , , , , , , ,
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 [...]
Δημοσίευση στην κατηγορία: , , , , , , , , , ,
Gotcha: Image component not loading remote URLs during debugging
18 Δεκεμβρίου 12 01:13 πμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
At ClipFlair’s Image component I use the following XAML to make it show an image from a URL that its ViewModel holds at a property named “Source”, of type Uri (URI = Uniform or Universal Resource Identifier in W3C parlance, something like a superset of the old classic URLs). <Image Name="imgContent"        HorizontalAlignment="Stretch" VerticalAlignment="Stretch"        [...]
Δημοσίευση στην κατηγορία: , , , , , , , , ,
Fix: Transform Manager ignoring media files added to watch folders
14 Δεκεμβρίου 12 02:22 μμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
I’ve been puzzled for some days now with the IIS Transform Manager installation we have at ClipFlair for automating the conversion of media files (for example using Microsoft Expression Encoder) into IIS Smooth Streams. The watch folder I’ve set up for this task was ignoring some of the media files I was dropping in for no [...]
Δημοσίευση στην κατηγορία: , , , , , , , ,
HowTo: Troubleshoot .MSI installations
09 Δεκεμβρίου 12 11:14 μμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
Copying from Microsoft Web Deploy readme: If you encounter any problems during installation, you can run appropriate command listed below for your version of Windows to create a log file that will contain information about the installation process: msiexec /L install.log /I <path_to_msi> You can analyze this log file after a failed installation to help [...]
Δημοσίευση στην κατηγορία: , , , , , , ,
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 [...]
Δημοσίευση στην κατηγορία: , , , , , , , ,
Περισσότερες Δημοσιεύσεις « Προηγούμενη - Επόμενη »

Search

Go

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

Συνδρομές