frameworkelement Questions
4
Solved
here is the error I have when I want to attach a FrameworkElement to a new Window to publish it to a PNG file.
So my idea is to remove the parent-child link, call my method, and add the child agai...
Unplaced asked 2/2, 2012 at 9:17
2
Solved
I have a Canvas which contains a few Textblocks and I need to find the top and left corner points that were assigned in the XAML Document. How can I get those two properties?
When I loop through th...
Diametrically asked 22/7, 2010 at 20:44
4
Hello WPF Pros at least I hope some of you read this!
DataContext is a property on FrameworkElement (base class for all WPF Controls) and is implemented as a DependencyProperty. That means all the...
Howsoever asked 18/12, 2010 at 21:56
2
When do I derive from UIElement and FrameworkElement considering FrameworkElement inherits UIElement. Can anyone give real life examples?
Euripides asked 10/5, 2011 at 21:45
1
Solved
I am unclear about when you would use a UIElement as opposed to a FrameworkElement, and why is there a FrameworkElement class at at all. Essentially, what is the extra functionality that a Framewor...
Krp asked 5/9, 2011 at 19:24
3
How do I programmatically get the current Visual State of a WPF FrameworkElement? And by state I mean the states like "Normal", "MouseOver", "Disabled", etc.
EDIT:
Basically, I am changing the Vis...
Belloc asked 14/1, 2010 at 15:20
2
Solved
In a WP7 app, I used FrameworkElement.Parent recursively to determine whether a specific element is inside of another element. But it does not always work correctly.
Then I changed my code to use V...
Doubledealing asked 3/8, 2011 at 5:5
2
Solved
I am attempting to set the Name property of a Page in the constructor:
public partial class PageListView : Page
{
public PageListView(string title)
{
InitializeComponent();
Name = title;
}
}
...
Haematoblast asked 24/3, 2011 at 0:6
2
Trying to get OnMouse events appearing in a child FrameworkElement. The parent element is a Panel (and the Background property is not Null).
class MyFrameworkElement : FrameworkElement
{
protect...
Nutriment asked 16/7, 2010 at 21:52
1
Solved
I'm trying to move a control from one parent to another (if this will work I'm not quite sure). I can get a hold of the control that I want to move. Here is my code:
public void MoveElement(UIElem...
La asked 6/4, 2010 at 4:16
1
Solved
One of my data sources produces a collection of values which are typed to the following interface
public interface IData
{
string Name { get; }
FrameworkElement VisualElement { get; }
}
I'd li...
Fendig asked 2/4, 2010 at 7:43
1
Solved
I have a FrameworkElement (really a ToggleButton) that has inside its content a Popup.
I access it like this:
ToggleButton button = (ToggleButton)sender;
Popup popup = (Popup)button.FindName("pop...
Waiter asked 17/2, 2010 at 23:19
1
Solved
We have a languaging mechanism that recurses through our XAML pages when they load, examines each element for a Tag property and uses its value to retrieve a string resource to apply to the element...
Thulium asked 15/10, 2009 at 8:31
1
© 2022 - 2024 — McMap. All rights reserved.