Click here to Skip to main content
14,970,162 members
Home / Discussions / WPF
   

WPF

 
PinnedHOW TO ANSWER A QUESTION PinPopular
Chris Maunder16-Jul-09 3:09
cofounderChris Maunder16-Jul-09 3:09 
PinnedHow to get an answer to your question PinPopular
Chris Maunder16-Jul-09 3:05
cofounderChris Maunder16-Jul-09 3:05 
QuestionGet MainWindow from Executing Assembly Pin
Kevin Marois3hrs 37mins ago
professionalKevin Marois3hrs 37mins ago 
GeneralCan anyone recommend a free WPF editor control? Pin
Mike Hankey8hrs 11mins ago
professionalMike Hankey8hrs 11mins ago 
GeneralRe: Can anyone recommend a free WPF editor? Pin
Slacker0077hrs 57mins ago
professionalSlacker0077hrs 57mins ago 
GeneralRe: Can anyone recommend a free WPF editor? Pin
Richard Andrew x647hrs 51mins ago
professionalRichard Andrew x647hrs 51mins ago 
GeneralRe: Can anyone recommend a free WPF editor? Pin
Mike Hankey7hrs 46mins ago
professionalMike Hankey7hrs 46mins ago 
GeneralRe: Can anyone recommend a free WPF editor? Pin
Slacker0077hrs 35mins ago
professionalSlacker0077hrs 35mins ago 
QuestionInstalling Test Mode vs Production Mode Pin
Kevin Marois19-Jul-21 8:55
professionalKevin Marois19-Jul-21 8:55 
QuestionRouted Event Args Null Pin
Kevin Marois28-Jun-21 16:28
professionalKevin Marois28-Jun-21 16:28 
AnswerRe: Routed Event Args Null Pin
Richard Deeming28-Jun-21 22:34
mveRichard Deeming28-Jun-21 22:34 
QuestionHow to change background color in combobox in code behind? Pin
Cường Nguyễn Văn 202123-Jun-21 6:56
MemberCường Nguyễn Văn 202123-Jun-21 6:56 
QuestionMake textbox fill up and resizie Pin
Acuena21-Jun-21 20:59
MemberAcuena21-Jun-21 20:59 
AnswerRe: Make textbox fill up and resizie Pin
Richard Deeming21-Jun-21 21:58
mveRichard Deeming21-Jun-21 21:58 
AnswerRe: Make textbox fill up and resizie Pin
Gerry Schmitz22-Jun-21 7:07
mveGerry Schmitz22-Jun-21 7:07 
Question[Problem] Why can not Pass Image between 2 Views by using the same ViewModel (MVVM) Pin
Oscar Tsai18-Jun-21 7:34
MemberOscar Tsai18-Jun-21 7:34 
AnswerRe: [Problem] Why can not Pass Image between 2 Views by using the same ViewModel (MVVM) Pin
Gerry Schmitz19-Jun-21 14:29
mveGerry Schmitz19-Jun-21 14:29 
GeneralRe: [Problem] Why can not Pass Image between 2 Views by using the same ViewModel (MVVM) Pin
Oscar Tsai20-Jun-21 3:20
MemberOscar Tsai20-Jun-21 3:20 
GeneralRe: [Problem] Why can not Pass Image between 2 Views by using the same ViewModel (MVVM) Pin
Gerry Schmitz20-Jun-21 6:01
mveGerry Schmitz20-Jun-21 6:01 
AnswerRe: [Problem] Why can not Pass Image between 2 Views by using the same ViewModel (MVVM) Pin
Richard Deeming20-Jun-21 23:37
mveRichard Deeming20-Jun-21 23:37 
GeneralRe: [Problem] Why can not Pass Image between 2 Views by using the same ViewModel (MVVM) Pin
Oscar Tsai21-Jun-21 4:10
MemberOscar Tsai21-Jun-21 4:10 
GeneralRe: [Problem] Why can not Pass Image between 2 Views by using the same ViewModel (MVVM) Pin
Oscar Tsai21-Jun-21 16:11
MemberOscar Tsai21-Jun-21 16:11 
QuestionProblem Setting Focus Pin
Kevin Marois24-May-21 9:39
professionalKevin Marois24-May-21 9:39 
AnswerRe: Problem Setting Focus Pin
Richard Deeming24-May-21 21:56
mveRichard Deeming24-May-21 21:56 
The problem is that you're setting the Path of the binding. The FocusedElement property relies on the ElementName of the binding:
XAML
FocusManager.FocusedElement="{Binding ElementName=firstButton}"
You can't bind the properties of a binding, so you can't do this:
XAML
{Binding ElementName={Binding ...}}
Short of using the code-behind for the view, the simplest option is probably to use a style with a series of data triggers, as shown in this SO answer[^]:
XAML
<Style>
    <Style.Triggers>
        <DataTrigger Binding="{Binding FocusedElement}" Value="First">
            <Setter Property="FocusManager.FocusedElement" Value="{Binding ElementName=txtbox1}"/>
        </DataTrigger>
    </Style.Triggers>
</Style>




"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer

QuestionImpossible to override a value in an animation located in a style? Pin
Mc_Topaz20-May-21 6:51
MemberMc_Topaz20-May-21 6:51 

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.