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

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 […]
Δημοσίευση στην κατηγορία: , , , , , ,
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 [...]
Δημοσίευση στην κατηγορία: , , , , , , , , , , ,
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 [...]
Δημοσίευση στην κατηγορία: , , , , , , , , , , ,
Fix: The tag ‘TimeUpDown’ does not exist in XML namespace (Silverlight Toolkit)
14 Ιουλίου 12 07:59 μμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
If you use TimeUpDown control from Silverlight Toolkit in your XAML like below (copy pasting from CaptionGrid at ClipFlair source): <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" > <DataTemplate x:Key="StartTimeCellTemplate"> <TextBlock Margin="4" Text="{Binding Begin}" /> </DataTemplate> <DataTemplate x:Key="StartTimeCellEditTemplate"> <!-- <TextBox Margin="4" Text="{Binding Begin, Mode=TwoWay, ValidatesOnExceptions=True, NotifyOnValidationError=true}" /> --> <input:TimeUpDown Format="hh:mm:ss" Value="{Binding Begin, Mode=TwoWay, ValidatesOnExceptions=True, NotifyOnValidationError=true}" /> </DataTemplate> … </ResourceDictionary> [...]
Δημοσίευση στην κατηγορία: , , , , , , , , , , ,
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 [...]
Δημοσίευση στην κατηγορία: , , , , , , , , , ,

Search

Go

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

Συνδρομές