Got a weird problem here. I have created a template for a ListBox based on the standard template (i.e. I have not changed anything other than what I indicate below).
I am trying to add a couple of buttons to the side of the template so that I can scroll the ScrollViewer (which is part of the standard ListBox template) left and right. Th...
Hi,
I can't find infos on how to receive custom gestures on ScatterViewItems. I want "Tap-And-Hold" to invoke a function in the class behind my template.
...
I'm working with the Surface Toolkit and am willing to code a basic two-finger scroll algorithm for Scatterviews which contain FlowDocumentScrollViewer , but I'm not exactly sure how to do this.
How is the math done if you take into consideration that even rotated ScatterViews should be scrollable? What else do I need to take into consi...
Hello. I develop surface app using MVVM pattern.
I have different Views and I want to place them into one ScatterView.
I want my ScatterViewItem size correspond to the size of my Views?
code example:
<DataTemplate DataType="{x:Type vm:PointListViewModel}">
<Grid>
<v:PointListView> ...
I'd like to start to program for Microsoft Surface. So i searched for some ressources in the Internet. Do you have any recommendations for good introductions in this topic?
...
I am trying to use the Expander control in the surface application. I have seen its not a surface control so application compiles and control shows up but the contacts are not working.
Is there anyway I can modify the contact events and make it work in surface applications.
...
I tried to start developing for Microsoft Surface. For that I first installed Visual Studio 2008. Then I followed this guide:
http://msdn.microsoft.com/en-us/library/ee804897.aspx
However there it says that only Windows Vista is supported. I'm still running Windows XP on my laptop and old PC and I don't want to update if not absolutely...
And if this is possible, how can I do that?
...
I defined the following DataTemplate for a LibraryContainer:
<DataTemplate x:Key="ContainerItemTemplate">
<Grid>
<Border BorderThickness="1" BorderBrush="White" Margin="3">
<s:SurfaceTextBox IsReadOnly="True" Width="120" Text="{Binding Path=name}" Padding="3"/>
</Border>
...
I defined a DataTemplate the following way:
<s:SurfaceWindow.Resources>
<ImageBrush x:Key="WindowBackground" Stretch="None" Opacity="0.6" ImageSource="pack://application:,,,/Resources/WindowBackground.jpg"/>
<DataTemplate x:Key="ContainerItemTemplate">
<Grid>
<Border BorderThickness="1" BorderBru...
I defined the following layout:
<Grid Name="RootGrid" Background="{StaticResource WindowBackground}" >
<s:ScatterView Name="RootScatter">
<Viewbox>
<s:LibraryContainer Name="RootContainer" Grid.Row="0" ViewingMode="Bar">
<s:LibraryContainer.BarView>
<s:BarVi...
I have the following setting:
I know P1, P2 and the angle alpha, now how do i calculate the coordinates of P3? (Note: P3 is on the same circle with origin P1 and radius P1P2)
The blue lines indicate the coordinate system
...