Click here to Skip to main content
15,905,504 members
Home / Discussions / C#
   

C#

 
GeneralRe: using MVC in WPF Pin
abboudi_ammar1-Jan-18 6:24
abboudi_ammar1-Jan-18 6:24 
GeneralRe: using MVC in WPF Pin
Dave Kreskowiak1-Jan-18 7:27
mveDave Kreskowiak1-Jan-18 7:27 
Questionstruck in launching .exe file created using c# using windows service. Pin
Mohiyuddin Khan1-Jan-18 2:33
Mohiyuddin Khan1-Jan-18 2:33 
AnswerRe: struck in launching .exe file created using c# using windows service. Pin
OriginalGriff1-Jan-18 2:41
mveOriginalGriff1-Jan-18 2:41 
GeneralRe: struck in launching .exe file created using c# using windows service. Pin
Mohiyuddin Khan1-Jan-18 3:15
Mohiyuddin Khan1-Jan-18 3:15 
GeneralRe: struck in launching .exe file created using c# using windows service. Pin
OriginalGriff1-Jan-18 3:37
mveOriginalGriff1-Jan-18 3:37 
GeneralRe: struck in launching .exe file created using c# using windows service. Pin
Mohiyuddin Khan1-Jan-18 3:50
Mohiyuddin Khan1-Jan-18 3:50 
GeneralRe: struck in launching .exe file created using c# using windows service. Pin
OriginalGriff1-Jan-18 4:19
mveOriginalGriff1-Jan-18 4:19 
GeneralRe: struck in launching .exe file created using c# using windows service. Pin
Mohiyuddin Khan1-Jan-18 18:16
Mohiyuddin Khan1-Jan-18 18:16 
GeneralRe: struck in launching .exe file created using c# using windows service. Pin
Mohiyuddin Khan1-Jan-18 23:16
Mohiyuddin Khan1-Jan-18 23:16 
GeneralRe: struck in launching .exe file created using c# using windows service. Pin
OriginalGriff1-Jan-18 23:31
mveOriginalGriff1-Jan-18 23:31 
AnswerRe: struck in launching .exe file created using c# using windows service. Pin
jschell1-Jan-18 6:45
jschell1-Jan-18 6:45 
GeneralRe: struck in launching .exe file created using c# using windows service. Pin
Mohiyuddin Khan1-Jan-18 20:20
Mohiyuddin Khan1-Jan-18 20:20 
GeneralRe: struck in launching .exe file created using c# using windows service. Pin
jschell3-Jan-18 13:05
jschell3-Jan-18 13:05 
AnswerRe: struck in launching .exe file created using c# using windows service. Pin
Gerry Schmitz1-Jan-18 7:42
mveGerry Schmitz1-Jan-18 7:42 
QuestionDo you know any good unit testing and mocking frameworks for C#? Pin
JamesRichmond31-Dec-17 23:49
JamesRichmond31-Dec-17 23:49 
AnswerRe: Do you know any good unit testing and mocking frameworks for C#? Pin
jschell1-Jan-18 6:48
jschell1-Jan-18 6:48 
AnswerRe: Do you know any good unit testing and mocking frameworks for C#? Pin
Pete O'Hanlon1-Jan-18 9:29
mvePete O'Hanlon1-Jan-18 9:29 
AnswerRe: Do you know any good unit testing and mocking frameworks for C#? Pin
Alex Schunk8-Jan-18 7:10
Alex Schunk8-Jan-18 7:10 
Questiondownload pdf from pdfdrive.net Pin
Arnav Das31-Dec-17 20:38
Arnav Das31-Dec-17 20:38 
AnswerRe: download pdf from pdfdrive.net PinPopular
OriginalGriff31-Dec-17 20:46
mveOriginalGriff31-Dec-17 20:46 
QuestionDisabling ComboBox control item in DataTemplate Pin
Hervend31-Dec-17 4:00
Hervend31-Dec-17 4:00 
Hi everybody

I have a DataGrid control for which one of the columns consists in ComboBox controls defined in a DataTemplate (refer to the xaml snippet below).
The ComboBox controls are populated through data binding and everything works fine.

My problem: I would like to disable (from code behind) the selected ComboBox control item as long as the treatment associated to that selection is not complete.

Any idea, comment, suggestion?

Here is the xaml snippet:

<datagrid name="onGoingActionsGrid" autogeneratecolumns="False" background="Transparent" borderbrush="Transparent"
="" canuseraddrows="False" canuserdeleterows="False" canuserresizerows="False" canuserresizecolumns="False">
<datagrid.columns>
<datagridtextcolumn header="Actions" width="235" binding="{Binding Name}">
<datagridtemplatecolumn header="State" isreadonly="True" width="40">
<datagridtemplatecolumn.celltemplate>
<datatemplate>




<datagridtemplatecolumn header="Control" width="50">
<datagridtemplatecolumn.celltemplate>
<datatemplate>
<combobox x:name="ControlActionComboBox"
="" itemssource="{Binding CollectionOfPictograms, Mode=TwoWay}" selectionchanged="controlAction_SelectionChanged" selecteditem="{Binding SelectedItem, Mode=TwoWay}" selectedvaluepath="Content">
<combobox.itemcontainerstyle>

<Setter Property="Padding" Value="4.3"/>
<Setter Property="BorderBrush" Value="LightGray"/>
<Setter Property="BorderThickness" Value="1"/>


<combobox.itemtemplate>
<datatemplate>
<dockpanel>










AnswerRe: Disabling ComboBox control item in DataTemplate Pin
Gerry Schmitz1-Jan-18 7:25
mveGerry Schmitz1-Jan-18 7:25 
AnswerRe: Disabling ComboBox control item in DataTemplate Pin
Gerry Schmitz3-Jan-18 6:01
mveGerry Schmitz3-Jan-18 6:01 
QuestionHow can I get my if-statements to work for my bmi caculator? C# Pin
Member 1360085430-Dec-17 19:23
Member 1360085430-Dec-17 19:23 

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.