WPF WebBrowser control: mouse wheel scrolling and Document.execCommand stops to work properly after

After I added several mouse & keyboard events handlers in WebBrowser.OnDocumentComplete event:             HTMLDocumentEvents2_Event eventHelper = (HTMLDocumentEvents2_Event)Document;             eventHelper.onclick += new HTMLDocumentEvents2_onclickEventHandler(OnMouseClick);             eventHelper.onmousedown += new HTMLDocumentEvents2_onmousedownEventHandler(OnMouseLButtonDown); mouse wheel scrolling, as well as Document.execCommand (e.g. Document.execCommand(“SelectAll”, false, null)), doesn’t work anymore. Whereas mouse wheel event succesfully fired:         private bool OnMouseWheel(IHTMLEventObj pEvtObj)         {             …

Continue reading →

WPF: how to change the ListView cell template if the content is too long, it will display as Charact

We have used the GridView inside the ListView. We fix the column width (see the following link): http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/7b66d9e0-36e0-4c63-b700-eb0a94fda5ac if the content is too long in one cell (since we fix the column width), we want it display as CharacterEllipsis at the end just like the TextBlock we can define TextTrimming=”CharacterEllipsis” how can we achive it? …

Continue reading →

WPF Calendar and DatePicker not supporting Calendar of Culture.DateTimeFormat (i.e. Hijri Calendar d

I wanted to display a hijri calendar using the WPF Calendar or DatePicker control. Here is my code: HijriCalendar hijri = new HijriCalendar(); Thread.CurrentThread.CurrentCulture = new CultureInfo(“ar-SA”); CultureInfo current = CultureInfo.CurrentCulture; current.DateTimeFormat.Calendar = hijri; Thread.CurrentThread.CurrentUICulture = current; When I put a Calendar control on the main window and run the application the month and year …

Continue reading →

Staff Mysites profile pages not showing for individual’s accounts but showing for everyone else in S

We’re finding that when staff try to open their profile pages an error message appears but other people’s profile pages open with no problems at all. For example when Jimmy Tan tries to open http://guinan/MySite/Person.aspx?accountname=GLEPSJimmyTin he sees an error message saying ‘An unexpected error has occurred.Troubleshoot issues with Windows SharePoint Services. ‘ We’ve tried copying person.aspx …

Continue reading →