attached-properties Questions
2
Solved
I am trying to do some sample applications to use Dependency Property in a DataGrid,but when i tried to run application I am getting an run time exception
The attachable property 'SelectedColum...
Laminitis asked 20/11, 2011 at 7:1
1
Solved
I' writing a control library. In this library there are some custom panels which are populated with user UIElements. Since every child element in my lib must have a "Title" property, I wrote the fo...
Vickery asked 11/11, 2011 at 10:49
1
Solved
I have created an Image within a ButtonStyle. Now I have created an Attached Property so that I can set the Source for that Image. Should be straight forward but I am stuck with it.
This is my sho...
Nela asked 21/8, 2011 at 16:48
1
Solved
I can't get the following XAML to work as I want. All bindings work because get no errors from the bindings. But I don't get the expected result from the binding on the RatioShape rectangle. The pr...
Lowpitched asked 25/5, 2011 at 14:37
1
What is the order in which attached properties are applied to an object ? I guess I should ignore this, but here my scenario:
I've got an attached property to stick the VM to the View, and then, a...
Trio asked 19/4, 2011 at 7:49
1
Solved
I want keyboard focus to be set to a TextBox when I click a Button on my view. I don't want to use any codebehind, so wondered if anyone had written an attached property or similar solution?
F asked 14/1, 2011 at 17:35
2
I have created an attached behavior that is used to execute a Delegate of type Func<bool> when the behavior is invoked. Below is the dependancy property definition.
public static readonly De...
Matti asked 8/9, 2010 at 15:17
2
Solved
I'm trying to figure out how to programmatically apply a theme at runtime in our Silverlight 4 application. I figured this should be as simple as loading a resource dictionary from XAML and merging...
Hurwitz asked 20/9, 2010 at 19:14
3
Solved
I have a rectangle in my XAML and want to change its Canvas.Left property in code behind:
<UserControl x:Class="Second90.Page"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"...
Krell asked 12/2, 2009 at 14:18
1
Solved
ist there a way to get a change notification if an attached property changed?
A simple example is a Canvas with a Rectangle in it. The position of the Rectange is set by using the DepenendyP...
Juvenescent asked 17/3, 2010 at 13:8
1
Solved
Hope this is not a dupe.
I would like to be able to do the following in XAML:
<DataTemplate DataType="{x:Type TestApp:ButtonVM}">
<Button
Grid.Column="{Binding GridColumn}"
Grid.Ro...
Alon asked 12/3, 2010 at 13:6
1
Solved
I have an element positioned on Canvas using attached properties Canvas.Top and Canvas.Left. Then using animations the element is moved to different set of coordinates, like this:
DoubleAnimation ...
Pitman asked 3/2, 2010 at 14:31
1
Solved
I want to create an attached property that can be used with this syntax:
<Button>
<Image .../>
<ui:ToolbarItem.DisplayFilter>
<TabItem .../>
<TabItem .../>
<T...
Oxidize asked 19/9, 2009 at 16:34
1
I have a routed event declared as such (names have been changed to protect the innocent):
public class DragHelper : DependencyObject {
public static readonly RoutedEvent DragCompleteEvent = Event...
Astragalus asked 27/8, 2009 at 18:34
3
Solved
I'm a bit mystified as to how Attached Properties actually convey their values to either parent or child elements. TextElement.FontFamily causes child elements to inherit the value assigned to that...
Vedi asked 23/7, 2009 at 18:6
1
Solved
I was trying out attached properties and style triggers hoping to learn more about it.
I wrote a very simple WPF windows app with an attached property:
public static readonly DependencyProperty S...
Grotto asked 10/4, 2009 at 0:2
1
Solved
I want to add a DataBinding per Codebehind for an attached Property and want to show the Canvas.Left property in a TextBox. How do I add this property?
Guanabana asked 1/3, 2009 at 20:28
2
Solved
What does InitializeComponent() do, and how does it work in WPF?
In general first, but I would especially be interested to know the gory details of order of construction, and what happens when the...
Swinge asked 29/10, 2008 at 4:48
© 2022 - 2024 — McMap. All rights reserved.