Click here to Skip to main content
15,885,309 members
Home / Discussions / WPF
   

WPF

 
QuestionPass Logging Method Pin
Kevin Marois24-Apr-14 12:01
professionalKevin Marois24-Apr-14 12:01 
AnswerRe: Pass Logging Method Pin
Matt T Heffron24-Apr-14 12:49
professionalMatt T Heffron24-Apr-14 12:49 
QuestionWPF TextBlock Trigger Question Pin
Kevin Marois24-Apr-14 7:45
professionalKevin Marois24-Apr-14 7:45 
AnswerRe: WPF TextBlock Trigger Question Pin
Richard Deeming24-Apr-14 8:24
mveRichard Deeming24-Apr-14 8:24 
GeneralRe: WPF TextBlock Trigger Question Pin
Kevin Marois24-Apr-14 8:53
professionalKevin Marois24-Apr-14 8:53 
GeneralRe: WPF TextBlock Trigger Question Pin
BubingaMan4-May-14 22:48
BubingaMan4-May-14 22:48 
QuestionI need develop Deepzoom fitBounds Method Pin
joajngwon23-Apr-14 19:58
joajngwon23-Apr-14 19:58 
QuestionWPF MVVM Set Focus Pin
Kevin Marois23-Apr-14 17:46
professionalKevin Marois23-Apr-14 17:46 
I'm trying set focus to a UI element from within a view model.

First, following this example[^] I created the Attached Property.

Then in my VM I created a bool property called "IsHourlyMinutesFocused":

private bool _IsHourlyMinutesFocused;
public bool IsHourlyMinutesFocused
{
    get { return _IsHourlyMinutesFocused; }
    set
    {
        if (_IsHourlyMinutesFocused != value)
        {
            _IsHourlyMinutesFocused = value;
            RaisePropertyChanged("IsHourlyMinutesFocused");
        }
    }
}


Next, I added it to the XAML:

<TextBox Grid.Row="0"
        Grid.Column="2"
        VerticalAlignment="Center"
        classes:FocusExtension.IsFocused="{Binding IsHourlyMinutesFocused}" 
        Focusable="True"
        Text="{Binding SelectedProcess.ProcessSchedule.HourlyMinutes}"
        Margin="2,0,2,0"
        Width="40"/>


When I set IsHourlyMinutesFocused = true, nothing happens. The OnIsFocusedPropertyChanged event in the DP never fires.

What's wrong here?
If it's not broken, fix it until it is

QuestionChange application language at Runtime Pin
sifi mohamed amine15-Apr-14 5:40
sifi mohamed amine15-Apr-14 5:40 
SuggestionRe: Change application language at Runtime Pin
Richard Deeming15-Apr-14 5:53
mveRichard Deeming15-Apr-14 5:53 
AnswerRe: Change application language at Runtime Pin
Andy41119-May-14 2:56
Andy41119-May-14 2:56 
QuestionLocalization in WPF MVVM Pin
sifi mohamed amine14-Apr-14 23:42
sifi mohamed amine14-Apr-14 23:42 
AnswerRe: Localization in WPF MVVM Pin
Vincent Beek16-Apr-14 6:57
Vincent Beek16-Apr-14 6:57 
QuestionUpdating Composition Tree from Visual Tree Pin
Ronald M. Martin14-Apr-14 12:18
Ronald M. Martin14-Apr-14 12:18 
QuestionHow to add all recommended icon sizes to WPF desktop application? Pin
Matt T Heffron14-Apr-14 11:49
professionalMatt T Heffron14-Apr-14 11:49 
AnswerRe: How to add all recommended icon sizes to WPF desktop application? Pin
Matt T Heffron14-Apr-14 13:44
professionalMatt T Heffron14-Apr-14 13:44 
QuestionHow to get TreeView SelectedItem/Value? Pin
BeeDev11-Apr-14 10:52
BeeDev11-Apr-14 10:52 
AnswerRe: How to get TreeView SelectedItem/Value? Pin
SledgeHammer0111-Apr-14 12:14
SledgeHammer0111-Apr-14 12:14 
GeneralRe: How to get TreeView SelectedItem/Value? Pin
BeeDev14-Apr-14 3:48
BeeDev14-Apr-14 3:48 
GeneralRe: How to get TreeView SelectedItem/Value? Pin
SledgeHammer0114-Apr-14 4:53
SledgeHammer0114-Apr-14 4:53 
AnswerRe: How to get TreeView SelectedItem/Value? Pin
Mycroft Holmes11-Apr-14 13:41
professionalMycroft Holmes11-Apr-14 13:41 
AnswerRe: How to get TreeView SelectedItem/Value? Pin
USAFHokie8016-Apr-14 8:55
USAFHokie8016-Apr-14 8:55 
AnswerRe: Overlay Tree view expander icon on the content Pin
SledgeHammer018-Apr-14 13:26
SledgeHammer018-Apr-14 13:26 
GeneralRe: Overlay Tree view expander icon on the content Pin
SledgeHammer019-Apr-14 4:02
SledgeHammer019-Apr-14 4:02 
GeneralRe: Overlay Tree view expander icon on the content Pin
SledgeHammer019-Apr-14 4:04
SledgeHammer019-Apr-14 4:04 

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.