Click here to Skip to main content
15,893,487 members
Home / Discussions / WPF
   

WPF

 
QuestionOpening file search dialog in WPF with XAML Pin
David Shapira29-Jun-09 11:02
David Shapira29-Jun-09 11:02 
AnswerRe: Opening file search dialog in WPF with XAML Pin
Christian Graus29-Jun-09 11:14
protectorChristian Graus29-Jun-09 11:14 
GeneralRe: Opening file search dialog in WPF with XAML Pin
David Shapira29-Jun-09 11:27
David Shapira29-Jun-09 11:27 
GeneralRe: Opening file search dialog in WPF with XAML Pin
Christian Graus29-Jun-09 13:35
protectorChristian Graus29-Jun-09 13:35 
GeneralRe: Opening file search dialog in WPF with XAML Pin
David Shapira29-Jun-09 14:19
David Shapira29-Jun-09 14:19 
AnswerRe: Opening file search dialog in WPF with XAML Pin
gsipes30-Jun-09 3:28
gsipes30-Jun-09 3:28 
GeneralRe: Opening file search dialog in WPF with XAML Pin
David Shapira30-Jun-09 4:40
David Shapira30-Jun-09 4:40 
QuestionComboBox and Binding Pin
zlakob29-Jun-09 10:28
zlakob29-Jun-09 10:28 
Hi!

I hope someone can help me with this:
I have an enum as itemssource for combobox and I want to bind selected item in this combobox with property of some object. How do I do that?

For instance, let's say this is enum:

public enum AlarmTypes
{
LOW,
HIGH
}

and there is class Alarm which has AlarmType property:

public class Alarm
{
...
private string alarmType;

public string AlarmType
{
get { return this.alarmType; }
set { this.alarmType = value; }
}
....
}

and of course ComboBox is defined in XAML:

<objectdataprovider
x:key="AlarmTypes"
="" methodname="GetValues" objecttype="{x:Type System:Enum}">
<objectdataprovider.methodparameters>
<x:type typename="enumns:AlarmTypes">



...

<combobox name="alarmTypeComboBox" itemssource="{Binding Source={StaticResource AlarmTypes}}">

I tried to solve this in many ways but none of them was completely successful. Thanks in advance!
AnswerRe: ComboBox and Binding Pin
User 27100929-Jun-09 15:39
User 27100929-Jun-09 15:39 
QuestionFloating control at the bottom of the web page?? Pin
Sunil P V29-Jun-09 7:44
Sunil P V29-Jun-09 7:44 
AnswerRe: Floating control at the bottom of the web page?? Pin
Mark Salsbery29-Jun-09 9:25
Mark Salsbery29-Jun-09 9:25 
GeneralRe: Floating control at the bottom of the web page?? Pin
Sunil P V30-Jun-09 5:53
Sunil P V30-Jun-09 5:53 
GeneralRe: Floating control at the bottom of the web page?? Pin
Mark Salsbery30-Jun-09 7:08
Mark Salsbery30-Jun-09 7:08 
GeneralRe: Floating control at the bottom of the web page?? Pin
Sunil P V30-Jun-09 22:15
Sunil P V30-Jun-09 22:15 
QuestionProgressBar Pin
Ranger4929-Jun-09 7:33
Ranger4929-Jun-09 7:33 
AnswerRe: ProgressBar [modified] Pin
Mark Salsbery29-Jun-09 9:00
Mark Salsbery29-Jun-09 9:00 
GeneralRe: ProgressBar [modified] Pin
Ranger4929-Jun-09 9:33
Ranger4929-Jun-09 9:33 
GeneralRe: ProgressBar Pin
Mark Salsbery29-Jun-09 10:00
Mark Salsbery29-Jun-09 10:00 
GeneralRe: ProgressBar Pin
Ranger4929-Jun-09 10:15
Ranger4929-Jun-09 10:15 
GeneralRe: ProgressBar Pin
Pete O'Hanlon29-Jun-09 10:05
mvePete O'Hanlon29-Jun-09 10:05 
GeneralRe: ProgressBar [modified] Pin
Mark Salsbery29-Jun-09 10:16
Mark Salsbery29-Jun-09 10:16 
GeneralRe: ProgressBar Pin
Ranger4929-Jun-09 10:26
Ranger4929-Jun-09 10:26 
QuestionManually firing WPF RoutedCommand Pin
DahrkDaiz29-Jun-09 5:16
DahrkDaiz29-Jun-09 5:16 
AnswerRe: Manually firing WPF RoutedCommand Pin
Pete O'Hanlon29-Jun-09 6:06
mvePete O'Hanlon29-Jun-09 6:06 
AnswerRe: Manually firing WPF RoutedCommand Pin
User 27100929-Jun-09 15:48
User 27100929-Jun-09 15:48 

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.