Click here to Skip to main content
15,922,894 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: WPF/MVVM Tabbed UI - Handle Menu Commands Pin
Kevin Marois14-Jun-16 15:15
professionalKevin Marois14-Jun-16 15:15 
GeneralRe: WPF/MVVM Tabbed UI - Handle Menu Commands Pin
Mycroft Holmes14-Jun-16 16:27
professionalMycroft Holmes14-Jun-16 16:27 
AnswerRe: WPF/MVVM Tabbed UI - Handle Menu Commands Pin
U. G. Leander16-Jun-16 1:34
professionalU. G. Leander16-Jun-16 1:34 
QuestionHow to Change WPF Textbox SpellCheck Language to UK English Pin
Dave M121:-)4-Jun-16 22:33
Dave M121:-)4-Jun-16 22:33 
AnswerRe: How to Change WPF Textbox SpellCheck Language to UK English Pin
Gerry Schmitz5-Jun-16 6:56
mveGerry Schmitz5-Jun-16 6:56 
GeneralRe: How to Change WPF Textbox SpellCheck Language to UK English Pin
Dave M121:-)6-Jun-16 0:06
Dave M121:-)6-Jun-16 0:06 
QuestionResources not showing up in WPF control put in Winform Pin
pgmr_648044-Jun-16 5:36
pgmr_648044-Jun-16 5:36 
AnswerRe: Resources not showing up in WPF control put in Winform Pin
Gerry Schmitz5-Jun-16 8:09
mveGerry Schmitz5-Jun-16 8:09 
GeneralRe: Resources not showing up in WPF control put in Winform Pin
pgmr_648045-Jun-16 9:15
pgmr_648045-Jun-16 9:15 
QuestionTwo-Dimensional Datagrid Help Pin
madusanka8931-May-16 3:13
madusanka8931-May-16 3:13 
AnswerRe: Two-Dimensional Datagrid Help Pin
CHill6031-May-16 5:11
mveCHill6031-May-16 5:11 
GeneralRe: Two-Dimensional Datagrid Help Pin
Gerry Schmitz31-May-16 5:37
mveGerry Schmitz31-May-16 5:37 
GeneralRe: Two-Dimensional Datagrid Help Pin
CHill6031-May-16 5:42
mveCHill6031-May-16 5:42 
QuestionThe name "employeeviewmodel" does not exist in the namespace "clr-namespace:testwpfvbapplication.viewmodel". Pin
indian14326-May-16 10:24
indian14326-May-16 10:24 
AnswerRe: The name "employeeviewmodel" does not exist in the namespace "clr-namespace:testwpfvbapplication.viewmodel". C:\users\abdul.aleem\desktop\testwpfapplication\testwpfvbapplication\view\mainwindow.xaml Pin
Richard Deeming26-May-16 10:55
mveRichard Deeming26-May-16 10:55 
GeneralRe: The name "employeeviewmodel" does not exist in the namespace "clr-namespace:testwpfvbapplication.viewmodel". Pin
indian14326-May-16 12:17
indian14326-May-16 12:17 
QuestionRequest Entity Too Large Pin
Mycroft Holmes25-May-16 21:57
professionalMycroft Holmes25-May-16 21:57 
AnswerRe: Request Entity Too Large Pin
Gerry Schmitz26-May-16 7:45
mveGerry Schmitz26-May-16 7:45 
GeneralRe: Request Entity Too Large Pin
Mycroft Holmes26-May-16 14:28
professionalMycroft Holmes26-May-16 14:28 
GeneralRe: Request Entity Too Large Pin
Mycroft Holmes26-May-16 17:58
professionalMycroft Holmes26-May-16 17:58 
QuestionHow to bind a nested Property of an attached Property Pin
Member 808505724-May-16 4:47
Member 808505724-May-16 4:47 
I would like to bind a nested property of an attached Property
C#
public class MyTag
    {
        public decimal MyValue { get; set; }
        public string MyDescription { get; set; }
        public bool Enabled { get; set; }
    }


Build the attached property.....

C#
public class Attached : DependencyObject
{
    public static readonly DependencyProperty MyTagProperty =
        DependencyProperty.RegisterAttached("MyTag", typeof(MyTag), typeof(Attached),
            new FrameworkPropertyMetadata(null,
                FrameworkPropertyMetadataOptions.BindsTwoWayByDefault | FrameworkPropertyMetadataOptions.Inherits));

    public static MyTag GetMyTag(DependencyObject dObj)
    {
        return dObj.GetValue(MyTagProperty) as MyTag;
    }

    public static void SetPLCTag(DependencyObject dObj, MyTag value)
    {
        dObj.SetValue(MyTagProperty, value);
    }
}


and would like to bind in xaml like this

XML
<Button
                x:Name="button"
                Width="75"
                general:Attached.MyTag="{Binding First}"   // First is an object of type MyTag
                Content="{Binding Path=(general:Attached.MyTag.MyValue)}"/>

QuestionWPF Binding Question Pin
#realJSOP24-May-16 4:12
professional#realJSOP24-May-16 4:12 
AnswerRe: WPF Binding Question Pin
#realJSOP24-May-16 5:02
professional#realJSOP24-May-16 5:02 
QuestionBinding the x,y location on a Canvas with a ItemsControl Pin
Kenneth Haugland19-May-16 17:38
mvaKenneth Haugland19-May-16 17:38 
AnswerRe: Binding the x,y location on a Canvas with a ItemsControl Pin
Kenneth Haugland19-May-16 19:28
mvaKenneth Haugland19-May-16 19:28 

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.