Click here to Skip to main content
15,916,693 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: Download dynamic data with Silverlight app Pin
Mark Salsbery10-Dec-09 7:22
Mark Salsbery10-Dec-09 7:22 
GeneralRe: Download dynamic data with Silverlight app Pin
thrakazog10-Dec-09 7:32
thrakazog10-Dec-09 7:32 
GeneralRe: Download dynamic data with Silverlight app Pin
Mark Salsbery10-Dec-09 7:36
Mark Salsbery10-Dec-09 7:36 
QuestionRounded ListBox Pin
shanmugarajaa9-Dec-09 20:03
shanmugarajaa9-Dec-09 20:03 
AnswerRe: Rounded ListBox Pin
Mark Salsbery9-Dec-09 20:09
Mark Salsbery9-Dec-09 20:09 
GeneralRe: Rounded ListBox Pin
shanmugarajaa9-Dec-09 22:13
shanmugarajaa9-Dec-09 22:13 
GeneralRe: Rounded ListBox Pin
Mark Salsbery10-Dec-09 6:34
Mark Salsbery10-Dec-09 6:34 
QuestionWPF OpenFileDialog and FolderBrowserDialog Pin
ausadmin9-Dec-09 8:47
ausadmin9-Dec-09 8:47 
AnswerRe: WPF OpenFileDialog and FolderBrowserDialog Pin
Mark Salsbery9-Dec-09 10:22
Mark Salsbery9-Dec-09 10:22 
GeneralRe: WPF OpenFileDialog and FolderBrowserDialog Pin
Pete O'Hanlon9-Dec-09 10:59
mvePete O'Hanlon9-Dec-09 10:59 
GeneralRe: WPF OpenFileDialog and FolderBrowserDialog Pin
ausadmin31-Jan-10 10:04
ausadmin31-Jan-10 10:04 
QuestionMVVM newbie question - this doesn't seem to work with databinding Pin
Judah Gabriel Himango9-Dec-09 7:37
sponsorJudah Gabriel Himango9-Dec-09 7:37 
AnswerRe: MVVM newbie question - this doesn't seem to work with databinding Pin
Ian Shlasko9-Dec-09 8:10
Ian Shlasko9-Dec-09 8:10 
GeneralRe: MVVM newbie question - this doesn't seem to work with databinding Pin
Judah Gabriel Himango9-Dec-09 8:11
sponsorJudah Gabriel Himango9-Dec-09 8:11 
GeneralRe: MVVM newbie question - this doesn't seem to work with databinding Pin
Ian Shlasko9-Dec-09 8:14
Ian Shlasko9-Dec-09 8:14 
GeneralRe: MVVM newbie question - this doesn't seem to work with databinding Pin
Judah Gabriel Himango9-Dec-09 11:02
sponsorJudah Gabriel Himango9-Dec-09 11:02 
GeneralRe: MVVM newbie question - this doesn't seem to work with databinding Pin
Ian Shlasko9-Dec-09 11:31
Ian Shlasko9-Dec-09 11:31 
GeneralRe: MVVM newbie question - this doesn't seem to work with databinding Pin
Judah Gabriel Himango9-Dec-09 11:34
sponsorJudah Gabriel Himango9-Dec-09 11:34 
GeneralRe: MVVM newbie question - this doesn't seem to work with databinding Pin
Ian Shlasko9-Dec-09 13:08
Ian Shlasko9-Dec-09 13:08 
AnswerRe: MVVM newbie question - this doesn't seem to work with databinding Pin
Pete O'Hanlon9-Dec-09 10:11
mvePete O'Hanlon9-Dec-09 10:11 
GeneralRe: MVVM newbie question - this doesn't seem to work with databinding [modified] Pin
Judah Gabriel Himango9-Dec-09 10:59
sponsorJudah Gabriel Himango9-Dec-09 10:59 
QuestionDependancy Property not setting on user control Pin
rj_hogan9-Dec-09 4:01
rj_hogan9-Dec-09 4:01 
Hello,

Fairly new to WPF so hope this isn't going to be a case of failing to RTFM but I just can't see what has gone wrong.

I am modifying an existing user control to show slightly different data in a list depending on a setting on the control. I have registered the dependency property, added a get;set to use it else where in code and it comes up in the Intellisense in the XAML file. However it is not set to the value I've set it to in the XAML when it is check in the controls constructor.

Here is the relevant bits of the user control:

public partial class StationGroupControl : UserControl
    {
       
        public StationGroupControl()
        {

            try
            {

                if (ShowAggregates != true)
...

        public static DependencyProperty ShowAggregatesProperty =
            DependencyProperty.Register("ShowAggregates",
            typeof(Boolean),
            typeof(StationGroupControl),
            new FrameworkPropertyMetadata(false));

        public Boolean ShowAggregates
        {
            get
            {
                return (Boolean)GetValue(ShowAggregatesProperty);
            }
            set
            {
                SetValue(ShowAggregatesProperty, value);
            }
        }



And the XAML:

<ResearchCtrl:StationGroupControl Name="MultStation" HorizontalAlignment="Left" Margin="-122,0,0,0" Validation.Error="Ctrl_Error" ShowAggregates="True"></ResearchCtrl:StationGroupControl>


Frustratingly this seemed to be working and I then refactored the code down to smaller chunks and it inexplicably stoppped working. It has me doubting if it was ever working properly.

Is there some issue with using a boolean? Something else I need to do? Any way of debugging what is actually happening?

I'm pushed for time on this so any suggestion gratefully received.

Robert.
AnswerRe: Dependancy Property not setting on user control Pin
Ian Shlasko9-Dec-09 4:31
Ian Shlasko9-Dec-09 4:31 
GeneralRe: Dependancy Property not setting on user control Pin
rj_hogan9-Dec-09 4:46
rj_hogan9-Dec-09 4:46 
GeneralRe: Dependancy Property not setting on user control Pin
rj_hogan9-Dec-09 6:45
rj_hogan9-Dec-09 6:45 

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.