Click here to Skip to main content
15,891,184 members
Home / Discussions / WPF
   

WPF

 
QuestionWorking with WPF Web browser control Pin
AshishGoyal086-Jul-12 0:46
AshishGoyal086-Jul-12 0:46 
AnswerRe: Working with WPF Web browser control Pin
darshan_ur12-Jul-12 2:06
darshan_ur12-Jul-12 2:06 
GeneralAccept Button and Data Binding inconsistency Pin
Bernhard Hiller4-Jul-12 23:11
Bernhard Hiller4-Jul-12 23:11 
AnswerRe: Accept Button and Data Binding inconsistency Pin
Wayne Gaylard4-Jul-12 23:20
professionalWayne Gaylard4-Jul-12 23:20 
GeneralRe: Accept Button and Data Binding inconsistency Pin
Bernhard Hiller4-Jul-12 23:22
Bernhard Hiller4-Jul-12 23:22 
AnswerRe: Accept Button and Data Binding inconsistency Pin
Abhinav S4-Jul-12 23:23
Abhinav S4-Jul-12 23:23 
GeneralRe: Accept Button and Data Binding inconsistency Pin
Bernhard Hiller4-Jul-12 23:36
Bernhard Hiller4-Jul-12 23:36 
GeneralRe: Accept Button and Data Binding inconsistency Pin
Pete O'Hanlon5-Jul-12 0:30
mvePete O'Hanlon5-Jul-12 0:30 
A while back, I created an Attached Behavior (I'm well known for my love of them), which I attach to the default button. This behaviour hooks into the click event and calls the following (this is from memory, so I apologise in advance if it's not 100% correct)
C#
private void UpdateFocussed()
{
  FrameworkElement el = Keyboard.FocusedElement as FrameworkElement;
  if (el != null)
  {
    BindingExpression expression = null;
    if (el is TextBox)
    {
      expression = el.GetBindingExpression(TextBox.TextProperty);
      if (expression != null)
      {
        expression.UpdateSource();
      }
    }
  }
}

*pre-emptive celebratory nipple tassle jiggle* - Sean Ewington

"Mind bleach! Send me mind bleach!" - Nagy Vilmos


CodeStash - Online Snippet Management | My blog | MoXAML PowerToys | Mole 2010 - debugging made easier

GeneralRe: Accept Button and Data Binding inconsistency Pin
Abhinav S5-Jul-12 0:47
Abhinav S5-Jul-12 0:47 
GeneralRe: Accept Button and Data Binding inconsistency Pin
Wayne Gaylard5-Jul-12 2:20
professionalWayne Gaylard5-Jul-12 2:20 
GeneralRe: Accept Button and Data Binding inconsistency Pin
Bernhard Hiller5-Jul-12 2:56
Bernhard Hiller5-Jul-12 2:56 
GeneralRe: Accept Button and Data Binding inconsistency Pin
Pete O'Hanlon5-Jul-12 9:38
mvePete O'Hanlon5-Jul-12 9:38 
QuestionWPF Cascading filters Pin
Ross Cain4-Jul-12 8:45
Ross Cain4-Jul-12 8:45 
QuestionBinding Tooltip to template element Pin
Blikkies4-Jul-12 3:31
professionalBlikkies4-Jul-12 3:31 
AnswerRe: Binding Tooltip to template element Pin
Pete O'Hanlon4-Jul-12 3:40
mvePete O'Hanlon4-Jul-12 3:40 
GeneralRe: Binding Tooltip to template element Pin
Blikkies4-Jul-12 4:01
professionalBlikkies4-Jul-12 4:01 
GeneralRe: Binding Tooltip to template element Pin
Pete O'Hanlon4-Jul-12 4:16
mvePete O'Hanlon4-Jul-12 4:16 
AnswerRe: Binding Tooltip to template element Pin
vinodkrebc6-Jul-12 0:59
vinodkrebc6-Jul-12 0:59 
GeneralWPF Button Image Source Pin
Kevin Marois2-Jul-12 11:47
professionalKevin Marois2-Jul-12 11:47 
GeneralRe: WPF Button Image Source Pin
Unnikrishnan_S_N3-Jul-12 2:14
Unnikrishnan_S_N3-Jul-12 2:14 
GeneralRe: WPF Button Image Source Pin
Kevin Marois5-Jul-12 11:01
professionalKevin Marois5-Jul-12 11:01 
GeneralRe: WPF Button Image Source Pin
Unnikrishnan_S_N8-Jul-12 19:50
Unnikrishnan_S_N8-Jul-12 19:50 
GeneralWPF Button Style Problem Pin
Kevin Marois2-Jul-12 11:31
professionalKevin Marois2-Jul-12 11:31 
QuestionStyle Error Pin
Kevin Marois29-Jun-12 7:51
professionalKevin Marois29-Jun-12 7:51 
AnswerRe: Style Error Pin
Gerry Schmitz29-Jun-12 11:06
mveGerry Schmitz29-Jun-12 11:06 

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.