Hi - I am trying to select a shape with my finger on a touchscreen
for each shape I have a hander (vb.net);
AddHandler shape.TouchDown, AddressOf Shape_TouchDown
...but no selection happens - I have a breakpoint on Shape_TouchDown and it is never being hit
Any ideas?
thanks

Hi - my application works fine with the mouse - panning (left button and drag), zooming (mouse wheel), selecting shapes (left button)
With the above, when selecting a shape, I have a handler for any MapShape and the MouseLeftButtonDown event - works fine.
Now I want to add this flexibility to a touchscreen usage of the same app, so expected (vb.net);
AddHandler shape.MouseLeftButtonDown, AddressOf Shape_MouseLeftButtonDown
AddHandler shape.TouchDown, AddressOf Shape_TouchDown
...to work fine for either mouse or touch. Mouse works fine, but for touch;
What works - panning (finger and drag), zooming (pinching) - these worked regardless of attempting to integrate touch
What does not work is the selection of a shape with touch - adding a breakpoint shows that the event is not being hit with the above handler
Any ideas where I am going wrong, thanks

I have a theme project which will contain numerous resource dictionaries (nothing added at this stage), I want to be able to add a reference to this in the main project but I am unsure how to achieve this. Thanks for any help in advance.
WPF / VS 2013
Hi,
is there any simple example where is shown, how so solve my behavior you can see in the attached file?
I habe 6 templates (1: two rows, first row one column, second row 2 coloumns,...) Each Column is a Frame
for a control called Widgets. In my Settings of the application i want the user to choose a template for the
startup. After choosing the template the user should drag and drop a widget to one column of the template.
On the attached file you see the UI and what i want to to. I want to drag a widget out of a listbox or a gridview
and drop it to a container. Before droping the user sees "Drop Widget 2" and after droping there should be the
image and the name of the Widget.
Can you please help me!
Thanks
Best Regards
Rene
Using c# (not xaml) how do I draw a circle using EllipseData and set the centre to the middle of the circle so I can position it? I don't understand when the documentation says the width and height of EllipseData are in degrees.
Andrew
I am following the documentation guide Binding to Dynamic Data with one change, the RadMenu.ItemContainerStyle is set from code and not from XAML.
_menu = new RadMenu();var s = Application.Current.Resources["MenuItemStyle"] as Style;if (s != null) { _menu.ItemContainerStyle = s;}The XAML template matches the example, expect for the name of the nested items to match the class used to construct the menu items:
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" xmlns:local="clr-namespace:Anvil.Desktop.Windows8"> <Style x:Key="MenuItemStyle" TargetType="telerik:RadMenuItem"> <Setter Property="Header" Value="{Binding Text}"/> <Setter Property="ItemsSource" Value="{Binding Items}"/> <Setter Property="Icon" Value="{Binding IconUrl}" /> <Setter Property="IconTemplate" > <Setter.Value> <DataTemplate> <Image Source="{Binding}" Stretch="None"/> </DataTemplate> </Setter.Value> </Setter> </Style> </ResourceDictionary>The resource dictionary is merged and available in the merged resources but the menu items are not rendered as in the with_itemcontainerstyle_set.png attachment and when removing the style setting code:
_menu = new RadMenu();var s = Application.Current.Resources["MenuItemStyle"] as Style;if (s != null){ // _menu.ItemContainerStyle = s;}the class names of the menu items are displayed as in without_itemcontainerstyle_set.png
Any suggestions?
For every ItemPropertyDefinition FilterDescriptor is created. Is it possible that for some ItemPropertyDefinition custom filter descriptor will be made? For example for
var customItem = new ItemPropertyDefinition("customPropertyName", typeof(string))
CustomFilterDescriptor (CustomFilterDescriptor : FilterDescriptorBase) will be made in RadDataFilter.FilterDescriptors.
Hi,
I am looking to insert an InlineUIContainer by drag/drop of something into the RichTextBox but following dropping of the element, unless it is simple text being inserted I am struggling to work out how to insert an InlineUIContainer at the current cursor location.
I have managed to insert the control but only to the end of the document.
A code snippet below might help but errors not at point of insert but when it is trying to update the screen next... The code is taken from the drop handler event.
Dim point = args.GetPosition(richTextBox)
Dim pos = richTextBox.ActiveEditorPresenter.GetDocumentPositionFromViewPoint(point)
Dim container As New InlineUIContainer()
container.UiElement = New CheckBox() With {.Content = "Testing"}
container.Height = 25
container.Width = 70
ctype(pos.GetCurrentInline().Parent,Paragraph).Inlines.Add(container)
Kind regards,
Neil