Click here to Skip to main content
11,637,176 members (63,013 online)

Silverlight / WPF

 
AnswerRe: Third Party Controls Pin
Mycroft Holmes11-Dec-12 12:06
memberMycroft Holmes11-Dec-12 12:06 
AnswerRe: Third Party Controls Pin
Pete O'Hanlon11-Dec-12 12:43
protectorPete O'Hanlon11-Dec-12 12:43 
GeneralRe: Third Party Controls Pin
Kevin Marois12-Dec-12 8:28
memberKevin Marois12-Dec-12 8:28 
GeneralRe: Third Party Controls Pin
Pete O'Hanlon12-Dec-12 8:29
protectorPete O'Hanlon12-Dec-12 8:29 
GeneralRe: Third Party Controls Pin
Kevin Marois12-Dec-12 8:30
memberKevin Marois12-Dec-12 8:30 
GeneralRe: Third Party Controls Pin
Mycroft Holmes12-Dec-12 12:02
memberMycroft Holmes12-Dec-12 12:02 
QuestionHow can I Bind a DataTemplate Slider definition to the Code behind? Pin
maycockt10-Dec-12 5:24
membermaycockt10-Dec-12 5:24 
AnswerRe: How can I Bind a DataTemplate Slider definition to the Code behind? Pin
Alisaunder10-Dec-12 13:52
memberAlisaunder10-Dec-12 13:52 
GeneralRe: How can I Bind a DataTemplate Slider definition to the Code behind? Pin
maycockt14-Dec-12 1:18
membermaycockt14-Dec-12 1:18 
QuestionHow does one define IOleServiceProvider in a C# WPF application? Pin
Xarzu10-Dec-12 3:54
memberXarzu10-Dec-12 3:54 
AnswerRe: How does one define IOleServiceProvider in a C# WPF application? Pin
Pete O'Hanlon10-Dec-12 4:08
protectorPete O'Hanlon10-Dec-12 4:08 
QuestionSetting icons based on Region/city name?! Pin
radkrish9-Dec-12 19:43
memberradkrish9-Dec-12 19:43 
AnswerRe: Setting icons based on Region/city name?! Pin
Abhinav S9-Dec-12 20:12
mvpAbhinav S9-Dec-12 20:12 
QuestionWPF ComboBox Selected Item Problem Pin
Kevin Marois8-Dec-12 10:48
memberKevin Marois8-Dec-12 10:48 
I have a combo box of lookup items. It's bound to an ObservableCollection of LookupEntity. The code-behind:

private ObservableCollection<LookupEntity> _EmployeeTypes;
public ObservableCollection<LookupEntity> EmployeeTypes
{
    get { return _EmployeeTypes; }
    set
    {
        if (_EmployeeTypes != value)
        {
            _EmployeeTypes = value;
            RaisePropertyChanged("EmployeeTypes");
        }
    }
}
 
private LookupEntity _SelectedEmployeeType;
public LookupEntity SelectedEmployeeType
{
    get { return _SelectedEmployeeType; }
    set
    {
        if (_SelectedEmployeeType != value)
        {
            _SelectedEmployeeType = value;
            RaisePropertyChanged("SelectedEmployeeType");
        }
    }
}

and

public override void RefreshView()
{
    ViewHeaderText = "Employee - " + employee.FullName;
 
    FirstName = employee.FirstName;
    LastName = employee.LastName;
 
    SelectedEmployeeType = employee.EmployeeType;  // When I get here, all is OK. property is being set
}

the XAML

<ComboBox Grid.Row="2"
            Grid.Column="1"
            Width="120"
            HorizontalAlignment="Left"
            ItemsSource="{Binding EmployeeTypes}"
            SelectedItem="{Binding SelectedEmployeeType, Mode=TwoWay}">
                
    <ComboBox.ItemTemplate>
        <DataTemplate>
            <TextBlock Text="{Binding Caption}">
                <TextBlock.ToolTip>
                    <StackPanel Orientation="Vertical">
                        <TextBlock Text="{Binding Caption}"
                                    FontWeight="Bold"/>
                        <TextBlock Text="{Binding Description}"/>
                    </StackPanel>
                </TextBlock.ToolTip>
            </TextBlock>
        </DataTemplate>
    </ComboBox.ItemTemplate>
                
</ComboBox>

The combo item is not being selected. Anyone see what's wrong?
If it's not broken, fix it until it is

AnswerRe: WPF ComboBox Selected Item Problem Pin
Ninja__Turtle8-Dec-12 17:43
memberNinja__Turtle8-Dec-12 17:43 
AnswerRe: WPF ComboBox Selected Item Problem Pin
Wayne Gaylard8-Dec-12 18:24
mentorWayne Gaylard8-Dec-12 18:24 
GeneralRe: WPF ComboBox Selected Item Problem Pin
Kevin Marois8-Dec-12 19:37
memberKevin Marois8-Dec-12 19:37 
GeneralRe: WPF ComboBox Selected Item Problem Pin
Kevin Marois8-Dec-12 19:37
memberKevin Marois8-Dec-12 19:37 
GeneralRe: WPF ComboBox Selected Item Problem Pin
Wayne Gaylard8-Dec-12 19:39
mentorWayne Gaylard8-Dec-12 19:39 
QuestionAt commands Pin
Pranay Dabholkar7-Dec-12 5:56
memberPranay Dabholkar7-Dec-12 5:56 
AnswerRe: At commands Pin
Abhinav S9-Dec-12 20:14
mvpAbhinav S9-Dec-12 20:14 
QuestionCurrency Converter Pin
pjank427-Dec-12 5:44
memberpjank427-Dec-12 5:44 
AnswerRe: Currency Converter Pin
Pete O'Hanlon7-Dec-12 6:58
protectorPete O'Hanlon7-Dec-12 6:58 
GeneralRe: Currency Converter Pin
pjank427-Dec-12 7:38
memberpjank427-Dec-12 7:38 
QuestionWPF Binding TextBox to Dependency Property Pin
g_ap5-Dec-12 1:02
memberg_ap5-Dec-12 1:02 
AnswerRe: WPF Binding TextBox to Dependency Property Pin
Richard Deeming5-Dec-12 2:53
memberRichard Deeming5-Dec-12 2:53 
Questionhighlight list view - is--moueOver Pin
dominioYP3-Dec-12 10:07
memberdominioYP3-Dec-12 10:07 
AnswerRe: highlight list view - is--moueOver Pin
SledgeHammer013-Dec-12 11:52
memberSledgeHammer013-Dec-12 11:52 
QuestionWPF DrawingContext DrawText bug??? Pin
subakaev2-Dec-12 21:09
membersubakaev2-Dec-12 21:09 
QuestionHow do you stop a WebBrowser object in WPF? Pin
Xarzu2-Dec-12 4:25
memberXarzu2-Dec-12 4:25 
AnswerRe: How do you stop a WebBrowser object in WPF? Pin
Richard MacCutchan2-Dec-12 4:54
mvpRichard MacCutchan2-Dec-12 4:54 
QuestionHow do you stop a WebBrowser object in WPF? Pin
Xarzu2-Dec-12 3:53
memberXarzu2-Dec-12 3:53 
QuestionFlowDocument - different coloured text in a word Pin
RugbyLeague30-Nov-12 1:04
memberRugbyLeague30-Nov-12 1:04 
AnswerRe: FlowDocument - different coloured text in a word Pin
Pete O'Hanlon30-Nov-12 1:33
protectorPete O'Hanlon30-Nov-12 1:33 
GeneralRe: FlowDocument - different coloured text in a word Pin
RugbyLeague30-Nov-12 1:50
memberRugbyLeague30-Nov-12 1:50 
AnswerRe: FlowDocument - different coloured text in a word Pin
Matt T Heffron30-Nov-12 7:46
memberMatt T Heffron30-Nov-12 7:46 
GeneralRe: FlowDocument - different coloured text in a word Pin
RugbyLeague30-Nov-12 8:41
memberRugbyLeague30-Nov-12 8:41 
AnswerRe: FlowDocument - different coloured text in a word Pin
Matt T Heffron30-Nov-12 8:45
memberMatt T Heffron30-Nov-12 8:45 
GeneralRe: FlowDocument - different coloured text in a word Pin
RugbyLeague30-Nov-12 8:48
memberRugbyLeague30-Nov-12 8:48 
GeneralRe: FlowDocument - different coloured text in a word Pin
RugbyLeague30-Nov-12 8:49
memberRugbyLeague30-Nov-12 8:49 
QuestionGrid.ColumnDefinition.setvalue Pin
caradri28-Nov-12 3:06
membercaradri28-Nov-12 3:06 
AnswerRe: Grid.ColumnDefinition.setvalue Pin
Matt T Heffron28-Nov-12 9:05
memberMatt T Heffron28-Nov-12 9:05 
GeneralRe: Grid.ColumnDefinition.setvalue Pin
caradri28-Nov-12 20:12
membercaradri28-Nov-12 20:12 
QuestionGrid Pin
ehsan ebne ali28-Nov-12 0:01
memberehsan ebne ali28-Nov-12 0:01 
QuestionSet Backgroundcolor when CheckBox in TreeView is checked Pin
Member 963452827-Nov-12 23:43
memberMember 963452827-Nov-12 23:43 
QuestionWPF Grid Splitter Problem Pin
Kevin Marois27-Nov-12 16:27
memberKevin Marois27-Nov-12 16:27 
QuestionWPF Dispatch.Invoke/BeginInvoke deadlock? Pin
devvvy26-Nov-12 19:30
memberdevvvy26-Nov-12 19:30 
Answer[SOLN FOUND] - it is NOT that Dispatcher.Invoke buggy! Pin
devvvy29-Nov-12 14:15
memberdevvvy29-Nov-12 14:15 
GeneralRe: [SOLN FOUND] - it is NOT that Dispatcher.Invoke buggy! Pin
Paulo Zemek23-Jan-13 6:41
memberPaulo Zemek23-Jan-13 6:41 
QuestionChange [EnableClientAccess(RequiresSecureEndpoint = true)] based on config Pin
UCLAdam20-Nov-12 22:34
memberUCLAdam20-Nov-12 22:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web03 | 2.8.150728.1 | Last Updated 30 Jul 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid