ScrollViewer Horizontal mouse wheel scrolling - scroll

I'm trying to find a way to scroll a horizontal ScrollViewer with the mouse wheel in WimRT. I know it is easy to achieve in WPF, but no such workarounds seem to be working in WinRT. Is there a way to do it?
Thank you

From what I've done so far you should just be able to set the ScollViewer's style to
Style="{StaticResource HorizontalScrollViewerStyle}"
Which is defined in StandardStyles.xaml

Related

How to know if the element is on the screen?

I have a horizontal ListBox with Images, which are pretty big and take 80% of the screen. User scrolls through this ListBox and images change quickly, and I'd like to highlight the image which is actually on the screen. What is the best way to do it?
Personally, I would use the class proposed by AnthonyWJones in this topic:
Restoring exact scroll position of a listbox in Windows Phone 7
The idea remains the same. You'll just change the vertical listbox to horizontal listbox.
Thus, you can recover the exact position of your listbox.

Stackpanel Thickness Animation

Is thickness animation for stackpanel in WP7?
I want to change margin of stackpanel, but Visual Studio can't find this type of animation. How to do it?
Also question, how to set this animation to VisibilityChanged EventTrigger?
PS: I tried to set animation in XAML.
Thanks.
I have got code similar to http://www.codeproject.com/Articles/92928/Thickness-animation-in-Silverlight-Margin-Padding to work in WP7.
Hope that helps

UIImageView From Left to Right Animation on View

How can I call UIImageView animation from left to right scrolling.
Thank you
Please edit your question to clarify what you are looking for! If you are really talking about animation please clarify which kind of animation you want.
But I suppose you are talking about the UIScrollView paging mode where you use horizontal scrolling with images. It is something you can see for e.g. in the pictures app.
What you need is a scroll view wich has the paging mode property set to yes.
There is a need Apple example on doing that. It will demonstrate you best on how to accomplish something like horizontal scrolling.

Transform-to-center animation in horizontal list

I have an horizontal listbox of many images. Now I need whenever I choose an image not at center. It will slide to center of listbox (not jump). Can anyone give me the solution ? Thanks a lot !
Have you tried ScrollToHorizontalOffset?
If you have specific requirements about how the animation should look you'll need to do this yourself though.

Transparency in splash screen

I saw the splash screen of the Corel-Draw 12 application and lost my mind!
What technique do they use?
On application start-up they load a transparent image, use windows api or what?
How do they achieve this transparency?
Here is a demo project for both VB.NET & C#.
If you are using winforms with vb.net you can modify the opacity of any form by setting the Form.Opacity property. I am not familiar with the splash screen you are speaking about but it shouldn't be too difficult to achieve a similar effect.
If you're using WPF, set the AllowsTransparancy, WindowStyle and Background attributes on the Window object:
<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
AllowsTransparency="True"
WindowStyle="None"
Background="Transparent">
<!-- more -->
</Window>
I am also unfamiliar with this flash screen... but if it slowly fades or something, then I would go with Quintin's answer here. Opacity at a certain percentage will show another form through yours.
If the splash screen is just an image and some of it is see-through and some of it isn't, then you can set the transparency key on your form to a certain color, then set the form's background color equal to that, and then whatever image you wish to display should be loaded into a picture box. Make sure you use a .GIF image though! or some other format that supports deleting out the background. JPG's and BMP's are worthless here since their "empty" color becomes white instead of transparent.

Resources