Tagged Questions

I am using the following code to create a draggable control by adding a template control to the Thumb. However I need to call methods on the FilePickerPopup object that gets created in order to set ...

I derived from the System.Windows.Controls.ScrollViewer and changed the Template; my idea was to create a ScrollViewer as seen in Visual Studio 2010, which has a small ComboBox to set the zoom into ...

I have a FrameworkElement, such as StackPanel with children, I need to create a DataTempltate whose VisualTree property is my FrameworkElement. To do this work I need to convert my FrameworkElement in ...

I am using Framework ElementFactory for creating a image in DataTemplate. While trying to handle the MouseDown Event for the Image type, an exception is thrown - "Handler Type is not valid.
How can ...

I wrote a snippet to create a own DataTemplate by c# code. And i add it to datagrid column's editing template.
When i called object templateContent = tc.CellTemplate.LoadContent ( );, the application ...

I have a problem with an undesired source update in the OneWayToSource, UpdateSourceTrigger.Explicit scenario
Background:
I have a DataGrid containing user data with a password column.
I have derived ...

I have been stumped with trying to convert the following code into pure c#. This XAML code is from Cavanaghs blog on how to make rounded corners on anything. The code works but I need to convert it ...

I have a ListBox whose DataTemplate is created in code using 3 FrameworkElementFactory objects(A StackPanel with 2 appended children(CheckBox and TextBox)). The item object in the collection that is ...