Click here to Skip to main content
16,011,839 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: Determine image format [modified] Pin
Rohde29-May-08 7:38
Rohde29-May-08 7:38 
Question3 ways to create a spring animation .. need help with 2 of them .. partially implemented. Pin
Leblanc Meneses28-May-08 20:57
Leblanc Meneses28-May-08 20:57 
AnswerRe: 3 ways to create a spring animation .. need help with 2 of them .. partially implemented. Pin
Leblanc Meneses29-May-08 21:35
Leblanc Meneses29-May-08 21:35 
Questionhow to create own set of tool palette? Pin
katelva28-May-08 18:58
katelva28-May-08 18:58 
AnswerRe: how to create own set of tool palette? Pin
Michael Sync28-May-08 20:10
Michael Sync28-May-08 20:10 
GeneralRe: how to create own set of tool palette? Pin
katelva3-Jun-08 19:51
katelva3-Jun-08 19:51 
GeneralRe: how to create own set of tool palette? Pin
Michael Sync4-Jun-08 20:58
Michael Sync4-Jun-08 20:58 
QuestionWalking the Visual Tree ... Pin
Jammer28-May-08 4:07
Jammer28-May-08 4:07 
Hi All,

Just need a couple of pointers as to why something isn't working ...

Say I have a textbox on my WPF 'form' thus:

<TextBox x:Name="EnabledTextBox" Style="{DynamicResource TextBox.Default}" ToolTip="TextBox" Text="Hello World!" TextWrapping="NoWrap" Margin="4,4,4,4" IsEnabled="True"/>

Then in my code I'm walking the visual tree and grabbing various bits of information like:

if (obj.ReadLocalValue(NameProperty) != DependencyProperty.UnsetValue)
{
    _elementName = obj.ReadLocalValue(NameProperty).ToString();
}


this results in _elementName being "EnabledTextBox" ... great all good. But when I do the same for the Style:

if (obj.ReadLocalValue(StyleProperty).ToString() != null)
{
    _styleProperty = obj.ReadLocalValue(StyleProperty).ToString();
}


Style always results in "System.Windows.ResourceReferenceExpression" I've been looking through the object explorer windows on a breakpoint. How do I drill down further to get the bound style ResourceKey ...

hmm ...

Jammer

Going where everyone here has gone before! Smile | :)
My Blog

QuestionRe: Walking the Visual Tree ... Pin
Jammer29-May-08 3:13
Jammer29-May-08 3:13 
AnswerRe: Walking the Visual Tree ... Pin
Insincere Dave29-May-08 6:03
Insincere Dave29-May-08 6:03 
GeneralRe: Walking the Visual Tree ... Pin
Jammer29-May-08 6:31
Jammer29-May-08 6:31 
GeneralRe: Walking the Visual Tree ... Pin
Insincere Dave29-May-08 6:53
Insincere Dave29-May-08 6:53 
GeneralRe: Walking the Visual Tree ... Pin
Jammer29-May-08 7:53
Jammer29-May-08 7:53 
QuestionAbout Web Camara Pin
viralsarvaiya28-May-08 3:30
viralsarvaiya28-May-08 3:30 
AnswerRe: About Web Camara Pin
Michael Sync28-May-08 5:41
Michael Sync28-May-08 5:41 
AnswerRe: About Web Camara Pin
Michael Sync28-May-08 14:17
Michael Sync28-May-08 14:17 
QuestionAlternative namespace for mx.messaging.MessageAgent in Silverlight Pin
am 200928-May-08 0:15
am 200928-May-08 0:15 
AnswerRe: Alternative namespace for mx.messaging.MessageAgent in Silverlight Pin
Michael Sync28-May-08 5:38
Michael Sync28-May-08 5:38 
Questionconversion from ActionScript3 to Silverlight Pin
am 200927-May-08 19:41
am 200927-May-08 19:41 
AnswerRe: conversion from ActionScript3 to Silverlight Pin
Michael Sync28-May-08 5:37
Michael Sync28-May-08 5:37 
QuestionCreate a TreeViewItem outside the main thread Pin
Lutosław27-May-08 9:02
Lutosław27-May-08 9:02 
AnswerRe: Create a TreeViewItem outside the main thread Pin
Pete O'Hanlon27-May-08 9:16
mvePete O'Hanlon27-May-08 9:16 
QuestionMemory problem with Frame objects Pin
Super Lloyd27-May-08 5:43
Super Lloyd27-May-08 5:43 
QuestionTreeView using XAML code in WPF Pin
Arijit Manna26-May-08 3:15
Arijit Manna26-May-08 3:15 
QuestionStarting with Silverlight Pin
Zeeshan Riaz25-May-08 10:22
Zeeshan Riaz25-May-08 10:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.