Click here to Skip to main content
       

Silverlight / WPF

 
AnswerRe: Third Party Controls PinmemberMycroft Holmes11-Dec-12 13:06 
AnswerRe: Third Party Controls PinprotectorPete O'Hanlon11-Dec-12 13:43 
GeneralRe: Third Party Controls PinmemberKevin Marois12-Dec-12 9:28 
GeneralRe: Third Party Controls PinprotectorPete O'Hanlon12-Dec-12 9:29 
GeneralRe: Third Party Controls PinmemberKevin Marois12-Dec-12 9:30 
GeneralRe: Third Party Controls PinmemberMycroft Holmes12-Dec-12 13:02 
QuestionHow can I Bind a DataTemplate Slider definition to the Code behind? Pinmembermaycockt10-Dec-12 6:24 
AnswerRe: How can I Bind a DataTemplate Slider definition to the Code behind? PinmemberAlisaunder10-Dec-12 14:52 
GeneralRe: How can I Bind a DataTemplate Slider definition to the Code behind? Pinmembermaycockt14-Dec-12 2:18 
QuestionHow does one define IOleServiceProvider in a C# WPF application? PinmemberXarzu10-Dec-12 4:54 
AnswerRe: How does one define IOleServiceProvider in a C# WPF application? PinprotectorPete O'Hanlon10-Dec-12 5:08 
QuestionSetting icons based on Region/city name?! Pinmemberradkrish9-Dec-12 20:43 
AnswerRe: Setting icons based on Region/city name?! PinmvpAbhinav S9-Dec-12 21:12 
QuestionWPF ComboBox Selected Item Problem PinmemberKevin Marois8-Dec-12 11: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 PinmemberNinja__Turtle8-Dec-12 18:43 
AnswerRe: WPF ComboBox Selected Item Problem PinmentorWayne Gaylard8-Dec-12 19:24 
GeneralRe: WPF ComboBox Selected Item Problem PinmemberKevin Marois8-Dec-12 20:37 
GeneralRe: WPF ComboBox Selected Item Problem PinmemberKevin Marois8-Dec-12 20:37 
GeneralRe: WPF ComboBox Selected Item Problem PinmentorWayne Gaylard8-Dec-12 20:39 
QuestionAt commands PinmemberPranay Dabholkar7-Dec-12 6:56 
AnswerRe: At commands PinmvpAbhinav S9-Dec-12 21:14 
QuestionCurrency Converter Pinmemberpjank427-Dec-12 6:44 
AnswerRe: Currency Converter PinprotectorPete O'Hanlon7-Dec-12 7:58 
GeneralRe: Currency Converter Pinmemberpjank427-Dec-12 8:38 
QuestionWPF Binding TextBox to Dependency Property Pinmemberg_ap5-Dec-12 2:02 
AnswerRe: WPF Binding TextBox to Dependency Property PinmemberRichard Deeming5-Dec-12 3:53 
Questionhighlight list view - is--moueOver PinmemberdominioYP3-Dec-12 11:07 
AnswerRe: highlight list view - is--moueOver PinmemberSledgeHammer013-Dec-12 12:52 
QuestionWPF DrawingContext DrawText bug??? Pinmembersubakaev2-Dec-12 22:09 
QuestionHow do you stop a WebBrowser object in WPF? PinmemberXarzu2-Dec-12 5:25 
AnswerRe: How do you stop a WebBrowser object in WPF? PinmvpRichard MacCutchan2-Dec-12 5:54 
QuestionHow do you stop a WebBrowser object in WPF? PinmemberXarzu2-Dec-12 4:53 
QuestionFlowDocument - different coloured text in a word PinmemberRugbyLeague30-Nov-12 2:04 
AnswerRe: FlowDocument - different coloured text in a word PinprotectorPete O'Hanlon30-Nov-12 2:33 
GeneralRe: FlowDocument - different coloured text in a word PinmemberRugbyLeague30-Nov-12 2:50 
AnswerRe: FlowDocument - different coloured text in a word PinmemberMatt T Heffron30-Nov-12 8:46 
GeneralRe: FlowDocument - different coloured text in a word PinmemberRugbyLeague30-Nov-12 9:41 
AnswerRe: FlowDocument - different coloured text in a word PinmemberMatt T Heffron30-Nov-12 9:45 
GeneralRe: FlowDocument - different coloured text in a word PinmemberRugbyLeague30-Nov-12 9:48 
GeneralRe: FlowDocument - different coloured text in a word PinmemberRugbyLeague30-Nov-12 9:49 
QuestionGrid.ColumnDefinition.setvalue Pinmembercaradri28-Nov-12 4:06 
AnswerRe: Grid.ColumnDefinition.setvalue PinmemberMatt T Heffron28-Nov-12 10:05 
GeneralRe: Grid.ColumnDefinition.setvalue Pinmembercaradri28-Nov-12 21:12 
QuestionGrid Pinmemberehsan ebne ali28-Nov-12 1:01 
QuestionSet Backgroundcolor when CheckBox in TreeView is checked PinmemberMember 963452828-Nov-12 0:43 
QuestionWPF Grid Splitter Problem PinmemberKevin Marois27-Nov-12 17:27 
QuestionWPF Dispatch.Invoke/BeginInvoke deadlock? [modified] Pinmemberdevvvy26-Nov-12 20:30 
Answer[SOLN FOUND] - it is NOT that Dispatcher.Invoke buggy! [modified] Pinmemberdevvvy29-Nov-12 15:15 
GeneralRe: [SOLN FOUND] - it is NOT that Dispatcher.Invoke buggy! PinmemberPaulo Zemek23-Jan-13 7:41 
QuestionChange [EnableClientAccess(RequiresSecureEndpoint = true)] based on config PinmemberUCLAdam20-Nov-12 23: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
Web02 | 2.8.1411022.1 | Last Updated 20 Nov 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid