Click here to Skip to main content
15,791,107 members
Home / Discussions / WPF
   

WPF

 
QuestionToolTip is not fully visible Pin
SRKSHOME2-Apr-14 1:42
SRKSHOME2-Apr-14 1:42 
QuestionBind Grid Row's IsExpanded To Row's Data Object Pin
Kevin Marois31-Mar-14 13:41
professionalKevin Marois31-Mar-14 13:41 
QuestionUser Control Question Pin
Kevin Marois25-Mar-14 9:05
professionalKevin Marois25-Mar-14 9:05 
AnswerRe: User Control Question Pin
_Maxxx_2-Apr-14 19:39
professional_Maxxx_2-Apr-14 19:39 
GeneralRe: User Control Question Pin
Kevin Marois2-Apr-14 19:49
professionalKevin Marois2-Apr-14 19:49 
GeneralRe: User Control Question Pin
_Maxxx_2-Apr-14 20:36
professional_Maxxx_2-Apr-14 20:36 
GeneralRe: User Control Question Pin
Kevin Marois3-Apr-14 6:47
professionalKevin Marois3-Apr-14 6:47 
GeneralRe: User Control Question Pin
BubingaMan23-Apr-14 5:13
BubingaMan23-Apr-14 5:13 
Are you still stuck on this?
I realise it's a bit late, but anyhow...

Assuming your binding is working (didn't test your code, can't at the moment), all you would need to do is add a callback for the dependency property change.

C#
public static readonly DependencyProperty SelectecCategoryProperty =
    DependencyProperty.Register("SelectecCategory", typeof(object), typeof(LookupComboControl), new UIPropertyMetadata(new PropertyChangedCallback(OnChanged))););

...

private static void OnChanged(DependencyObject obj, DependencyPropertyChangedEventArgs e)
{
   //obj is your control.  you can cast it here and call a method on it to get rid of the static state you are in
   var control = obj as LookupComboControl;
   control.SetCategoryOnVm();
}

private void SetCategoryOnVm()
{   
   vm.Category = this.SelectedCategory //(= your dependency property)
}

QuestionPrefixing ListBoxItem index in DataTemplate Pin
Dominick Marciano22-Mar-14 22:33
professionalDominick Marciano22-Mar-14 22:33 
AnswerRe: Prefixing ListBoxItem index in DataTemplate Pin
SledgeHammer0123-Mar-14 10:22
SledgeHammer0123-Mar-14 10:22 
GeneralRe: Prefixing ListBoxItem index in DataTemplate Pin
Dominick Marciano25-Mar-14 5:42
professionalDominick Marciano25-Mar-14 5:42 
GeneralRe: Prefixing ListBoxItem index in DataTemplate Pin
SledgeHammer0125-Mar-14 5:55
SledgeHammer0125-Mar-14 5:55 
QuestionCustom Window WPF con Vb.Net Pin
Pablo Roberto Cuellar Ribera21-Mar-14 10:59
Pablo Roberto Cuellar Ribera21-Mar-14 10:59 
AnswerRe: Custom Window WPF con Vb.Net Pin
Kenneth Haugland21-Mar-14 11:11
professionalKenneth Haugland21-Mar-14 11:11 
GeneralRe: Custom Window WPF con Vb.Net Pin
Pablo Roberto Cuellar Ribera21-Mar-14 11:40
Pablo Roberto Cuellar Ribera21-Mar-14 11:40 
QuestionRe: Custom Window WPF con Vb.Net Pin
Kenneth Haugland23-Mar-14 11:49
professionalKenneth Haugland23-Mar-14 11:49 
AnswerRe: Custom Window WPF con Vb.Net Pin
Meshack Musundi24-Mar-14 21:04
professionalMeshack Musundi24-Mar-14 21:04 
GeneralRe: Custom Window WPF con Vb.Net Pin
Pablo Roberto Cuellar Ribera28-Mar-14 6:58
Pablo Roberto Cuellar Ribera28-Mar-14 6:58 
QuestionWPF problem with ScrollViewer Pin
Federico Barbieri21-Mar-14 0:48
Federico Barbieri21-Mar-14 0:48 
AnswerRe: WPF problem with ScrollViewer Pin
Pete O'Hanlon21-Mar-14 1:08
subeditorPete O'Hanlon21-Mar-14 1:08 
QuestionMoving Items Between StackPanels With Animation Pin
Saeid Mirzaee19-Mar-14 5:01
Saeid Mirzaee19-Mar-14 5:01 
QuestionStyle In Resource Dictionary Not Found Pin
Kevin Marois17-Mar-14 17:49
professionalKevin Marois17-Mar-14 17:49 
AnswerRe: Style In Resource Dictionary Not Found Pin
Pete O'Hanlon18-Mar-14 6:45
subeditorPete O'Hanlon18-Mar-14 6:45 
GeneralRe: Style In Resource Dictionary Not Found Pin
Kevin Marois18-Mar-14 6:46
professionalKevin Marois18-Mar-14 6:46 
QuestionWPF Data Grid - Bind Checkbox To Command On VM Pin
Kevin Marois17-Mar-14 9:13
professionalKevin Marois17-Mar-14 9:13 

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.