- RUNNING SILVERLIGHT ON MAC HOW TO
- RUNNING SILVERLIGHT ON MAC MAC OSX
- RUNNING SILVERLIGHT ON MAC MOVIE
- RUNNING SILVERLIGHT ON MAC UPDATE
We only have this problem with Safari 5.1.2 on Mac. Pressing backspace always causes the browser to navigate back. In our case, the position in the textbox doesn't matter (the textbox doesn't even need to have focus). Weird, then we don't have the same problem. Unfortunately I can only attach it to a TextBox right now, so pressing Backspace in a PasswordBox or some 3rd party input controls still causes the issue as they do not have properties to get the current position of the cursor in the input field. If (e.Key = Key.Back & textbox.SelectionStart Void AssociatedObject_KeyDown(object sender, KeyEventArgs e) = new KeyEventHandler(AssociatedObject_KeyDown) += new KeyEventHandler(AssociatedObject_KeyDown) Public class BSKeyDownBehavior : Behavior (There should only be one, but just in case.)įoreach (var item in behaviors.ToArray()) add the behavior if we don't already have one Var behaviors = Interaction.GetBehaviors(d)
Private static void OnIsActiveChanged(DependencyObject d, DependencyPropert圜hangedEventArgs e) Return (bool)control.GetValue(IsActiveProperty) Ĭontrol.SetValue(IsActiveProperty, value) Public static bool GetIsActive(FrameworkElement control) Public static readonly DependencyProperty IsActiveProperty = DependencyProperty.RegisterAttached("IsActive", typeof(bool), typeof(BSKeyDownBehavior), new PropertyMetadata(false, OnIsActiveChanged))
RUNNING SILVERLIGHT ON MAC HOW TO
I referenced this post on how to add the attached behaviour to an implicit style targetting the TargetTyp="TextBox"Īnd my code: public class BackspaceSupressionBehavior If anyone has any other suggestions which could be of use, please let me know.Īs a temporary workaround I have gone with the option 2, using an Implicit Style with an attached behaviour. I've gone ahead and submitted this as a bug:
RUNNING SILVERLIGHT ON MAC UPDATE
Then update all Textboxes in my app to use my inherited one?Īlternatively, will there be some proper fix for this issue on the Textbox control when running on a Mac? Is there any way to apply this to all Textboxes using an Implicit Style with a TargetType of Textbox, or is the only solution to inherit from Textbox and handle the event myself. This is what I need to work around the issue. When this event handler is attached to the textbox and the cursor position is at zero, pressing the backspace will stop the browser from navigating back a page.
If (e.Key = Key.Back & textbox.SelectionStart <= 0) Private void TextBox_KeyDown(object sender, KeyEventArgs e) If the textbox has data within it, and the cursor is at position zero then hitting backspace at this point will tell the browser to navigate back a page.Īs a test, I hooked into the KeyDown event on one of my textboxes and added the following: Thanks for any ideas or help you can provide.So the backspace issue with page navigation in the browser only seems to occur when the Textbox control has input focus and its SelectionStart position is at zero. I'm dismayed that I am unable to find any logging or other debugging information about what's going on anywhere. Ensured that all other Silverlight plugin versions are not installed Completely re-install QuickTime player and the Flip4Mac WMV Player Reset the Display Profile within the System Preferences->Displays->Color window
RUNNING SILVERLIGHT ON MAC MOVIE
Ensure that the Arial and Verdana fonts are in the HD\Library\Fonts folder (suggested by Netflix's movie player) - including removing all other Arial/Verdana fonts There is no error logging information I can find anywhere within the MacOSX Console.īased on reading the various forums, here's what I have tried so far that hasn't made a difference: the Netflix player (player won't even start, reports error 1001) the NBC Olympics site (video player doesn't display) These DON'T work and I really want to get them working: the "Lucky 7 Raffle Application" (located within the showcase) I AM able to find a few Silverlight apps for which everything works as expected (about 5% of the sites I've tried): Behavior is the same whether I am running Safari (3.1.2) or Firefox (3.0.3). Is displayed, even after the browser indicates the page load is done. The plugin is loaded (I can bring up the Silverlight preferences dialog), but no silverlight-rendered content
RUNNING SILVERLIGHT ON MAC MAC OSX
When running Silverlight 5.0 on my Intel Macbook running Mac OSX 10.5.5, almost every Silverlight site I test with results in a blank page.