Posted 9 years ago by Eric P
Version: 15.1.0624
Avatar

Is it possible to define the ScreenTipHelpUri in XAML? I have tried the following.

<Style TargetType="{x:Type ribbon:Button}" x:Key="BookmarkRibbonButtonStyle">
  ...
  <Setter Property="ScreenTipHeader" Value="bla" />
  <Setter Property="ScreenTipDescription" Value="bla" />
  <Setter Property="ScreenTipHelpUri" Value="http://somewhere.com/help" />
  ...
</Style>

I get a design-time XAML error that says "The method or operation is not implemented" for the Value of the ScreenTipHelpUri. When I look through the sample application I only see three places that the ScreenTipHelpUri property is used and its all in code not XAML.

Thanks

Comments (6)

Posted 9 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Eric,

I believe it works fine to set a URL how you are doing even if VS complains.  When we've done that in the past, I think it still had the value at run-time appropriately, meaning the warning is likely a VS bug.


Actipro Software Support

Posted 9 years ago by Eric P
Avatar

Ok I feel a little stupid. I did not even thing to try and run the app. I saw the error and thought it would not compile. So the app does run and when I mouse-over the ribbon button I see the "Press F1 for more help" on the tooltip. So next question...pressing F1 does not do anything. I was assuming that it would open the default browser and navigate to the ScreenTipUri defined in the XAML. Is there another step I need to do (maybe in code) to get this to work?

Thanks

Posted 9 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Eric,

Check out the last section in the "Ribbon / Laout, Globalization, and Accessibility / Screen Tips" topic in the documentation.  That talks about that ScreenTipUri property and how to handle it.


Actipro Software Support

Posted 9 years ago by Eric P
Avatar

Great thanks. The sample code wires-up the ApplicationCommand.Help to a method handler in the code-behind. If I can figure out how to wire this up on my ViewModel I will be all set!

Thanks,

   -eric

Posted 9 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Eric,

Since it's a routed command, you might have to have a related command handler in your view, and then call a method on your view-model in response.


Actipro Software Support

Posted 9 years ago by Eric P
Avatar

So I found this blog (https://codingcontext.wordpress.com/2008/12/10/commandbindings-in-mvvm/) that talks about CommandBindings (plural vs. simple Command Binding) and MVVM and another link (http://matthamilton.net/commandbindings-with-mvvm) about the same topic. This looks promising. Maybe this information will be useful to someone else on the Actipro forums.

The latest build of this product (v24.1.3) was released 3 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.