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

WPF

 
GeneralRe: WPF Merged Resource Dictionary Pin
Mycroft Holmes4-Apr-12 14:38
professionalMycroft Holmes4-Apr-12 14:38 
GeneralRe: WPF Merged Resource Dictionary Pin
Kevin Marois5-Apr-12 5:31
professionalKevin Marois5-Apr-12 5:31 
Questionwpf-mediaElement Pin
mane08064-Apr-12 5:44
mane08064-Apr-12 5:44 
AnswerRe: wpf-mediaElement Pin
Pete O'Hanlon4-Apr-12 5:48
mvePete O'Hanlon4-Apr-12 5:48 
QuestionCan we have any website for wpf UI development like http://www.microsoft.com/design/toolbox ? Pin
vish27030074-Apr-12 5:30
vish27030074-Apr-12 5:30 
AnswerRe: Can we have any website for wpf UI development like http://www.microsoft.com/design/toolbox ? Pin
Mycroft Holmes4-Apr-12 14:33
professionalMycroft Holmes4-Apr-12 14:33 
QuestionStill slightly struggling with Binding Pin
Sutton Mehaffey4-Apr-12 5:18
Sutton Mehaffey4-Apr-12 5:18 
AnswerRe: Still slightly struggling with Binding Pin
Pete O'Hanlon4-Apr-12 5:46
mvePete O'Hanlon4-Apr-12 5:46 
You don't bind UI elements like this. Change the ExternalAlarm property into a boolean (and make it a property, not a field), then use this in your list box ItemTemplate. The ItemTemplate would look something like this:
C#
<DataTemplate x:Key="myItemsTemplate">
  <Grid>
    <Grid.ColumnDefinitions>
      <ColumnDefinition Width="30" />
      <ColumnDefinition />
    <Grid.ColumnDefinitions>
    <CheckBox IsChecked="{Binding ExternalAlarm}" Grid.Column="0" />
    <TextBlock Text="{Binding ZoneNum}" Grid.Column="1" />
  </Grid>
</DataTemplate>
Your list box will look like this
C#
<ListBox ItemTemplate="{StaticResource myItemsTemplate}" x:Name="ExternalAlarmTable" />

*pre-emptive celebratory nipple tassle jiggle* - Sean Ewington

"Mind bleach! Send me mind bleach!" - Nagy Vilmos


My blog | My articles | MoXAML PowerToys | Mole 2010 - debugging made easier - my favourite utility


GeneralRe: Still slightly struggling with Binding Pin
Sutton Mehaffey4-Apr-12 7:33
Sutton Mehaffey4-Apr-12 7:33 
GeneralRe: Still slightly struggling with Binding Pin
Pete O'Hanlon4-Apr-12 22:53
mvePete O'Hanlon4-Apr-12 22:53 
GeneralRe: Still slightly struggling with Binding Pin
Sutton Mehaffey5-Apr-12 9:02
Sutton Mehaffey5-Apr-12 9:02 
GeneralRe: Still slightly struggling with Binding Pin
Pete O'Hanlon6-Apr-12 2:55
mvePete O'Hanlon6-Apr-12 2:55 
GeneralRe: Still slightly struggling with Binding Pin
Sutton Mehaffey6-Apr-12 4:45
Sutton Mehaffey6-Apr-12 4:45 
GeneralRe: Still slightly struggling with Binding Pin
Sutton Mehaffey4-Apr-12 10:03
Sutton Mehaffey4-Apr-12 10:03 
QuestionCreating User Control in WPF Pin
MemberDotNetting4-Apr-12 1:09
MemberDotNetting4-Apr-12 1:09 
Questionremote desktop via wp7 Pin
heba abu ghaleih22 3-Apr-12 22:36
heba abu ghaleih22 3-Apr-12 22:36 
AnswerRe: remote desktop via wp7 Pin
Pete O'Hanlon3-Apr-12 22:50
mvePete O'Hanlon3-Apr-12 22:50 
GeneralRe: remote desktop via wp7 Pin
heba abu ghaleih22 3-Apr-12 22:58
heba abu ghaleih22 3-Apr-12 22:58 
GeneralRe: remote desktop via wp7 Pin
Pete O'Hanlon3-Apr-12 23:08
mvePete O'Hanlon3-Apr-12 23:08 
GeneralRe: remote desktop via wp7 Pin
heba abu ghaleih22 3-Apr-12 23:36
heba abu ghaleih22 3-Apr-12 23:36 
GeneralRe: remote desktop via wp7 Pin
Pete O'Hanlon3-Apr-12 23:42
mvePete O'Hanlon3-Apr-12 23:42 
GeneralRe: remote desktop via wp7 Pin
heba abu ghaleih22 4-Apr-12 0:08
heba abu ghaleih22 4-Apr-12 0:08 
GeneralRe: remote desktop via wp7 Pin
Pete O'Hanlon4-Apr-12 0:27
mvePete O'Hanlon4-Apr-12 0:27 
QuestionDataGrid adds additional unnecessary row Pin
Mahesha9993-Apr-12 5:16
Mahesha9993-Apr-12 5:16 
AnswerRe: DataGrid adds additional unnecessary row Pin
Mahesha9993-Apr-12 5:22
Mahesha9993-Apr-12 5:22 

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.