Click here to Skip to main content
15,909,445 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: How to activate the tab in tab control by select the business object Pin
Loveisasea24-Nov-11 1:04
Loveisasea24-Nov-11 1:04 
GeneralRe: How to activate the tab in tab control by select the business object Pin
Wayne Gaylard24-Nov-11 2:02
professionalWayne Gaylard24-Nov-11 2:02 
QuestionMessageBox - when application loads a WPF theme DLL Pin
Prasoon Chaudhary23-Nov-11 0:42
Prasoon Chaudhary23-Nov-11 0:42 
AnswerRe: MessageBox - when application loads a WPF theme DLL Pin
John-ph23-Nov-11 1:54
John-ph23-Nov-11 1:54 
GeneralRe: MessageBox - when application loads a WPF theme DLL Pin
Prasoon Chaudhary23-Nov-11 4:59
Prasoon Chaudhary23-Nov-11 4:59 
AnswerRe: MessageBox - when application loads a WPF theme DLL Pin
Pete O'Hanlon23-Nov-11 2:39
mvePete O'Hanlon23-Nov-11 2:39 
GeneralRe: MessageBox - when application loads a WPF theme DLL Pin
Prasoon Chaudhary23-Nov-11 4:55
Prasoon Chaudhary23-Nov-11 4:55 
QuestionHow to merge cells/rows in flowdocument table? Pin
John-ph23-Nov-11 0:25
John-ph23-Nov-11 0:25 
I have been trying to implement merge cells/rows feature in WPF richtextbox containing flowdocument with table.
found no built-in method which supports table.merge(tablecells). One way i think is to get the table cells in selection, set rowspan, colspan accordingly for the left most cell and remove other cells in the selection. but fidning it difficult even to get the cells in the selection

C#
foreach (var rowGroup in table.RowGroups)
            {
                foreach (var row in rowGroup.Rows)
                {
                    foreach (var cell in row.Cells)
                    {
                        if (richTextBox.Selection.Contains(cell.ElementStart))
                        {
                            int rowIndex = rowGroup.Rows.IndexOf(row);
                            int colIndex = row.Cells.IndexOf(cell);
                            selectedTableCells.Add(new KeyValuePair<int, int>(rowIndex, colIndex), cell);
                        }
                    }
                }
            }


code above doesnot return the correct number of cells in the selection.
any help? Is there a better way to do this?
- Regards -
   J O N


     A good thing is a bad thing if it keeps you from the best thing. - Dr. Adrian Rogers


QuestionEvents Pin
columbos1492721-Nov-11 21:13
columbos1492721-Nov-11 21:13 
AnswerRe: Events Pin
Albert Holguin22-Nov-11 5:09
professionalAlbert Holguin22-Nov-11 5:09 
QuestionHow to get a listboxitem's visual position in a listbox panel Pin
Loveisasea21-Nov-11 17:13
Loveisasea21-Nov-11 17:13 
AnswerRe: How to get a listboxitem's visual position in a listbox panel Pin
Abhinav S21-Nov-11 19:27
Abhinav S21-Nov-11 19:27 
QuestionHow to Customize SDK:Tab Control Pin
Mayur Bheda20-Nov-11 22:09
Mayur Bheda20-Nov-11 22:09 
QuestionRe: How to Customize SDK:Tab Control Pin
Mark Salsbery21-Nov-11 5:02
Mark Salsbery21-Nov-11 5:02 
QuestionRetrieving icons associated with installed Printers for use in C# and WPF Pin
Alisaunder20-Nov-11 12:55
Alisaunder20-Nov-11 12:55 
AnswerRe: Retrieving icons associated with installed Printers for use in C# and WPF Pin
SledgeHammer0120-Nov-11 17:32
SledgeHammer0120-Nov-11 17:32 
GeneralRe: Retrieving icons associated with installed Printers for use in C# and WPF Pin
Alisaunder20-Nov-11 18:24
Alisaunder20-Nov-11 18:24 
AnswerRe: Retrieving icons associated with installed Printers for use in C# and WPF Pin
Wayne Gaylard20-Nov-11 18:49
professionalWayne Gaylard20-Nov-11 18:49 
GeneralRe: Retrieving icons associated with installed Printers for use in C# and WPF Pin
Alisaunder21-Nov-11 5:15
Alisaunder21-Nov-11 5:15 
GeneralRe: Retrieving icons associated with installed Printers for use in C# and WPF Pin
SledgeHammer0121-Nov-11 6:18
SledgeHammer0121-Nov-11 6:18 
QuestionRotating 3d cylinder to a specific direction (Vector3d) Pin
ekoman20-Nov-11 1:17
ekoman20-Nov-11 1:17 
AnswerRe: Rotating 3d cylinder to a specific direction (Vector3d) Pin
ekoman20-Nov-11 4:05
ekoman20-Nov-11 4:05 
QuestionHow to remove the border when mouse enter a listboxitem Pin
Loveisasea19-Nov-11 17:41
Loveisasea19-Nov-11 17:41 
AnswerRe: How to remove the border when mouse enter a listboxitem Pin
Abhinav S20-Nov-11 2:38
Abhinav S20-Nov-11 2:38 
AnswerRe: How to remove the border when mouse enter a listboxitem Pin
Mark Salsbery20-Nov-11 8:04
Mark Salsbery20-Nov-11 8:04 

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.