Click here to Skip to main content
15,923,909 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: control name in datatemplate Pin
Pete O'Hanlon9-Dec-08 22:34
mvePete O'Hanlon9-Dec-08 22:34 
QuestionListView Grouping W/Expander Help Pin
aaj239-Dec-08 8:51
aaj239-Dec-08 8:51 
AnswerRe: ListView Grouping W/Expander Help Pin
Insincere Dave9-Dec-08 13:44
Insincere Dave9-Dec-08 13:44 
GeneralRe: ListView Grouping W/Expander Help Pin
aaj239-Dec-08 15:59
aaj239-Dec-08 15:59 
QuestionWhy do WPF storyboards lock/freeze target properties? Pin
Josh Fischer9-Dec-08 8:40
Josh Fischer9-Dec-08 8:40 
AnswerRe: Why do WPF storyboards lock/freeze target properties? [modified] Pin
Josh Fischer10-Dec-08 3:02
Josh Fischer10-Dec-08 3:02 
GeneralRe: Why do WPF storyboards lock/freeze target properties? Pin
Member 33786674-Mar-09 7:43
Member 33786674-Mar-09 7:43 
QuestionWPF base class DependencyProperty Pin
Doug Hagerman9-Dec-08 8:23
Doug Hagerman9-Dec-08 8:23 
[WPF 3.5 SP1] is there any way to place a DependencyProperty in a base class so that if you have a set of usercontrols (with the same base) and each of those controls acting as a Routed Template and you had a for instance that you were binding a Title DependencyProperty to...

Templates being: XceedSubControl_3D
XceedSubControl_Standard

Since you have to have specify [typeof(XceedSubControl)] when the DependencyProperty is registered...and each of your templates have a different name how would you go about this? The DependencyProperty itself compiles fine but binding fails.


public class SubControlBase : UserControl {   public static DependencyProperty TitleProperty =            DependencyProperty.Register(                "Title",                typeof(String),                typeof(XceedSubControl), //Do you use SubControlBase here?                new FrameworkPropertyMetadata(                    new PropertyChangedCallback(ChangeTitle)));        public String Title        {            get { return (String)GetValue(TitleProperty); }            set { SetValue(TitleProperty, value); }        }        private static void ChangeTitle(DependencyObject source, DependencyPropertyChangedEventArgs e)        {            (source as XceedSubControl).UpdateTitle((String)e.NewValue);        }        private void UpdateTitle(String Title)        {            SetTitle(Title);        }        public void SetTitle(String title)        {            ControlTitle.Text = title;        }}//class Examplepublic partial class XceedSubControl : SubControlBase{}




Thoughts or insights would be appreciated.
QuestionGridViewColumn Pin
Mohammed Elkholy9-Dec-08 2:17
Mohammed Elkholy9-Dec-08 2:17 
AnswerRe: GridViewColumn Pin
Gideon Engelberth9-Dec-08 3:25
Gideon Engelberth9-Dec-08 3:25 
GeneralRe: GridViewColumn Pin
Mohammed Elkholy10-Dec-08 0:41
Mohammed Elkholy10-Dec-08 0:41 
QuestionWPF user controls Pin
koleraba7-Dec-08 9:46
koleraba7-Dec-08 9:46 
AnswerRe: WPF user controls Pin
ColinM1237-Dec-08 14:30
ColinM1237-Dec-08 14:30 
GeneralRe: WPF user controls Pin
koleraba7-Dec-08 20:43
koleraba7-Dec-08 20:43 
GeneralRe: WPF user controls Pin
Mark Salsbery8-Dec-08 7:36
Mark Salsbery8-Dec-08 7:36 
QuestionHow to drag-and-drop an .msg file from MS Outlook? Pin
Vipul Mehta6-Dec-08 1:34
Vipul Mehta6-Dec-08 1:34 
QuestionDataGrid for WPF - lc.exe not found Pin
Arijit Manna5-Dec-08 19:35
Arijit Manna5-Dec-08 19:35 
QuestionRe: DataGrid for WPF - lc.exe not found Pin
Mark Salsbery6-Dec-08 6:26
Mark Salsbery6-Dec-08 6:26 
AnswerRe: DataGrid for WPF - lc.exe not found Pin
Pete O'Hanlon6-Dec-08 9:32
mvePete O'Hanlon6-Dec-08 9:32 
QuestionPassword!!! Pin
VisualLive5-Dec-08 14:36
VisualLive5-Dec-08 14:36 
AnswerRe: Password!!! Pin
Jammer5-Dec-08 22:05
Jammer5-Dec-08 22:05 
GeneralRe: Password!!! Pin
VisualLive7-Dec-08 21:18
VisualLive7-Dec-08 21:18 
GeneralRe: Password!!! Pin
Jammer8-Dec-08 0:40
Jammer8-Dec-08 0:40 
GeneralRe: Password!!! Pin
Pete O'Hanlon8-Dec-08 2:15
mvePete O'Hanlon8-Dec-08 2:15 
GeneralRe: Password!!! Pin
Jammer8-Dec-08 5:18
Jammer8-Dec-08 5:18 

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.