storyboard

Is it possible to bind a C# Storyboard Object on an Image in xaml?

这一生的挚爱 提交于 2019-12-14 04:02:34
问题 I would like to create a Storyboard in my ViewModel like this: public void OnEventHandler(DrehtellerMoved e) { int angle = e.steps * 72; myStoryboard = new Storyboard(); myStoryboard.Duration = new Duration(TimeSpan.FromMilliseconds(e.speed); DoubleAnimation myAnimation = new DoubleAnimation() { By = angle, Duration = storyboard.Duration }; Storyboard.SetTargetProperty(myAnimaiton, new PropertyPath("(UIElement.RenderTransform).(RotateTransform.Angle)")); Storyboard.SetTarget(myAnimation,

WPF Credits effect problem: StoryBoard to animate a StackPanel that extends the height of the window

不想你离开。 提交于 2019-12-14 03:43:05
问题 This is my first WPF project. I'm trying to get a rolling credits effect with a bunch of banner-shaped PNG's stacked on top of each other vertically. My current approach is to have a bunch of images in a StackPanel. Each image is approx 1024x150, and there is about 30 images. They stack vertically. I start the StackPanel at 0,200, so most of it is off screen. I then have a StoryBoard (created in Blend) that translates it up the Y axis, all the way off-screen. The animation starts, but the

Using a XIB file for custom Tableview Section Header

亡梦爱人 提交于 2019-12-14 03:39:41
问题 I wanted to use a xib file to customise a tableview section in xcode (objective C), and here ar my files: SectionHeaderView.xib is a UIView with a UILabel SectionHeaderView.m #import "SectionHeaderView.h" @implementation SectionHeaderView @synthesize sectionHeader; @end SectionHeaderView.h #import <UIKit/UIKit.h> @interface SectionHeaderView : UIView { IBOutlet UILabel *sectionHeader; } @property (nonatomic, strong) IBOutlet UILabel *sectionHeader; @end and in my MasterViewController.m

How to make a sticky footer and header with a tableview?

。_饼干妹妹 提交于 2019-12-14 03:19:29
问题 I have a UITableView in the storyboard with also a header and a footer defined as can be seen in the picture. However, the header disappears when I move the cell (it seems the header is the top cell). Same thing with the footer. It appears after I have browsed through all cells. I tried to move the header and the footer outside of the Cell hierarchy. But this resulted in being not visible any more. How can I make the header and footer sticky? 回答1: Don't confuse the section header and footer

Slide through view controllers but not with the UISwipeGestureRecognizer

空扰寡人 提交于 2019-12-14 02:13:15
问题 Here is my issue, i got 5 view controllers and i can switch between them trough swipe with the UISwipeGestureRecognizer class and xcode's storyboard. So this works, but, i dont like the slide effect. I like to make it in a way so you can exactly slide the view to another by dragging it. Can anyone send me in the right direction? I searched on the internet but i cant find any functions or tutorial on how to do this. Thanks in advance! Edit: Im not looking the scroll view. Because this will

Using Dependency object for color animation WP8

…衆ロ難τιáo~ 提交于 2019-12-14 01:46:31
问题 I'm using a button where I've shaped it, in its ControlTemplate. I've also added a storyboard in the controlTemplate. The storyboard changes the boarder of the element in my controlTemplate. I access this from the code behind and activate it, the problem is when I do this on the phone there is a lag. I've structured my code after the MVVM structure, my view is: <Button x:Name="Button1" BorderThickness="0" BorderBrush="Transparent"> <Button.Template> <ControlTemplate x:Name="Control"> <Path x

how to change the height of a grid row in wpf using storyboard

懵懂的女人 提交于 2019-12-14 01:11:36
问题 I have a Grid with 2 rows: <Grid> <Grid.RowDefinitions> <RowDefinition Height="150"/> <RowDefinition /> <RowDefinition Height="Auto" x:Name="OtherContactsRow" /> </Grid.RowDefinitions> Something here </Grid> and 2 Storyboard s: <Storyboard x:Key="MaximizedStoryboard"> <DoubleAnimation From="20" To="150" Duration="0:0:2" Storyboard.TargetName="OtherContactsRow" Storyboard.TargetProperty="Height" > </DoubleAnimation> </Storyboard> <Storyboard x:Key="MinimizedStoryboard"> <DoubleAnimation From=

How to push or present UIViewcontroller or storyboard from UIView subclass?

久未见 提交于 2019-12-13 23:59:34
问题 What I did: I am using scrollview to view some UIView (s), with paging enabled. In last page in subview of scrollView I added a button. I also wrote a function which is in subclass of UIView ,which is invoked when we press that button. I want to view storyboard when I press that button. 回答1: You need to implement protocol method for custom UIView class. For example; #import <UIKit/UIKit.h> @protocol YourCustomViewDelegate <NSObject> - (void)buttonTapped; @end @interface YourCustomView :

UITableView does not load data

落花浮王杯 提交于 2019-12-13 22:17:39
问题 I am relative new to iOS development. Right now, I created 2 ViewController using storyboard. The one consist one button that lead into another controller using segue (show). This controller is TableViewController that embedded in Navigation Controller and already connected with its responsible class that inherit from UITableViewController . My problem is this page doesn't load its data ( NSMutableArray ) that already initialized in viewDidLoad using _dataClient = [NSMutableArray

uitabbarcontroller storyboard: connecting viewcontroller that's already connected to another uitabbarctrl

。_饼干妹妹 提交于 2019-12-13 20:31:38
问题 I'm trying to reuse some of my view in my storyboard. I start with a uitabbarcontroller and have some views connected for each tab. Now i dropped a NEW uitabbarcontroller into the storyboard and I want to connect one of it's tabs to the SAME viewcontroller that is connected to the original tabbar. Can you 'reuse' viewcontrollers in the storyboard like that? Or do you have to create new viewcontrollers? I assume the former works, as I'm able to do it else where in the storyboard by choosing