Click here to Skip to main content
14,771,613 members
Home » Discussions » Silverlight / WPF
   

Silverlight / WPF

 
AnswerRe: ListBox Style Problem Pin
Henrik Jonsson7-Aug-17 10:35
MemberHenrik Jonsson7-Aug-17 10:35 
QuestionStyle Not being Applied Pin
Kevin Marois24-Jul-17 8:43
professionalKevin Marois24-Jul-17 8:43 
AnswerRe: Style Not being Applied Pin
Richard Deeming24-Jul-17 8:54
mveRichard Deeming24-Jul-17 8:54 
GeneralRe: Style Not being Applied Pin
Kevin Marois24-Jul-17 11:17
professionalKevin Marois24-Jul-17 11:17 
GeneralRe: Style Not being Applied Pin
Richard Deeming25-Jul-17 1:37
mveRichard Deeming25-Jul-17 1:37 
GeneralRe: Style Not being Applied Pin
Kevin Marois25-Jul-17 5:36
professionalKevin Marois25-Jul-17 5:36 
QuestionHandle DataGrid Row Model Property Change Pin
Kevin Marois21-Jun-17 13:45
professionalKevin Marois21-Jun-17 13:45 
AnswerRe: Handle DataGrid Row Model Property Change Pin
Mycroft Holmes21-Jun-17 21:54
professionalMycroft Holmes21-Jun-17 21:54 
I trap the Cell Edit End event with:
xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"

<telerik:RadTreeListView x:Name="tvData">

<i:Interaction.Triggers>
                    <i:EventTrigger EventName="CellEditEnded">
                        <i:InvokeCommandAction Command="{Binding TKCellEndEdit}"                                                                     CommandParameter="{Binding CurrentCell,RelativeSource={RelativeSource AncestorType=telerik:RadTreeListView}}" />
                    </i:EventTrigger>
                </i:Interaction.Triggers>

Viewmodel
public ICommand TKCellEndEdit { get; set; }
TKCellEndEdit = new DelegateCommand<object>(this.tKCellEndEdit);

private void tKCellEndEdit(object o)
    {
      string s = o.ToString();
      GridViewCell oCell = (o as GridViewCell);
      if (oCell.Value != null)
      {
        if (oCell.DataContext.GetType() == typeof(TreeNodeDE))
        {
          //do Something;
        }
      }

While that is for a telerik treelistview it is the same code for a gridview just changing the control.
Never underestimate the power of human stupidity
RAH

AnswerRe: Handle DataGrid Row Model Property Change Pin
Pete O'Hanlon21-Jun-17 22:46
mvePete O'Hanlon21-Jun-17 22:46 
GeneralRe: Handle DataGrid Row Model Property Change Pin
Kevin Marois22-Jun-17 5:01
professionalKevin Marois22-Jun-17 5:01 
GeneralRe: Handle DataGrid Row Model Property Change Pin
Pete O'Hanlon22-Jun-17 6:03
mvePete O'Hanlon22-Jun-17 6:03 
GeneralRe: Handle DataGrid Row Model Property Change Pin
Mycroft Holmes22-Jun-17 15:41
professionalMycroft Holmes22-Jun-17 15:41 
GeneralRe: Handle DataGrid Row Model Property Change Pin
Pete O'Hanlon22-Jun-17 22:18
mvePete O'Hanlon22-Jun-17 22:18 
GeneralStop user from killing of a running wpf application from background processes in task manager. Pin
Naushad Ansari16-Jun-17 0:24
MemberNaushad Ansari16-Jun-17 0:24 
GeneralRe: Stop user from killing of a running wpf application from background processes in task manager. Pin
Pete O'Hanlon16-Jun-17 0:46
mvePete O'Hanlon16-Jun-17 0:46 
QuestionBind To DP On Control Pin
Kevin Marois15-Jun-17 6:26
professionalKevin Marois15-Jun-17 6:26 
AnswerRe: Bind To DP On Control Pin
Pete O'Hanlon15-Jun-17 7:35
mvePete O'Hanlon15-Jun-17 7:35 
GeneralRe: Bind To DP On Control Pin
Kevin Marois15-Jun-17 7:39
professionalKevin Marois15-Jun-17 7:39 
GeneralRe: Bind To DP On Control Pin
Richard Deeming15-Jun-17 7:58
mveRichard Deeming15-Jun-17 7:58 
GeneralRe: Bind To DP On Control Pin
Kevin Marois15-Jun-17 8:03
professionalKevin Marois15-Jun-17 8:03 
AnswerRe: Bind To DP On Control Pin
BenScharbach12-Aug-17 10:06
MemberBenScharbach12-Aug-17 10:06 
QuestionCommand Binding In User Control Pin
Kevin Marois9-Jun-17 13:24
professionalKevin Marois9-Jun-17 13:24 
AnswerRe: Command Binding In User Control Pin
Pete O'Hanlon9-Jun-17 22:26
mvePete O'Hanlon9-Jun-17 22:26 
GeneralRe: Command Binding In User Control Pin
Kevin Marois12-Jun-17 6:01
professionalKevin Marois12-Jun-17 6:01 
QuestionStyle User Control Pin
Kevin Marois22-May-17 6:19
professionalKevin Marois22-May-17 6:19 

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.