Techbirds | Knowledge Hub | Page 31

Hi all, To perform any action on swiping a pivot page just write the code inside Pivot selection change event. For example if I have to enable or disable an app bar button on pivot change, I want button[2] to be disabled when we navigate on pivot page index 2.

private void pivotecontrol_SelectionChanged(object sender, SelectionChangedEventArgs e) { Pivot pivot = sender as Pivot; if (pivot == null) { return; } switch (pivot.SelectedIndex) { case 0: ((ApplicationBarIconButton)ApplicationBar.Buttons[2]).IsEnabled = true; break; case 1: ((ApplicationBarIconButton)ApplicationBar.Buttons[2]).IsEnabled = true; break; case 2: ((ApplicationBarIconButton)ApplicationBar.Buttons[2]).IsEnabled = false; break; case 3: ((ApplicationBarIconButton)ApplicationBar.Buttons[2]).IsEnabled = false; break; } }

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

private void pivotecontrol_SelectionChanged(object sender, SelectionChangedEventArgs e)

        {

            Pivot pivot = sender as Pivot;

            if (pivot == null)

            {

                return;

            }

            switch (pivot.SelectedIndex)

            {

                case 0:

                    ((ApplicationBarIconButton)ApplicationBar.Buttons[2]).IsEnabled = true;

                    break;

                case 1:

                    ((ApplicationBarIconButton)ApplicationBar.Buttons[2]).IsEnabled = true;

                    break;

                case 2:

                    ((ApplicationBarIconButton)ApplicationBar.Buttons[2]).IsEnabled = false;

                    break;

                case 3:

                    ((ApplicationBarIconButton)ApplicationBar.Buttons[2]).IsEnabled = false;

                    break;

            }

        }

It will disable the

Read More →

881 total views, no views today

Firstly create a new document with the size 1900px X 1200px at a resolution of 72 px/inch. Take the Gradient Tool and open the Gradient Editor. Choose the Foreground to Transparent gradient. Apply the gradient from the top to down. Apply the next filter: Filter – Distort -Wave and choose the next settings: It’s the

Read More →

729 total views, no views today

Posted on: April 28, 2014 /

Categories: Tutorials / Author Name: Jitendar Tiwari

Final Result: Open new document 800px 800px resolution use diamond gradient with # bc9753, # 542705 colors. Select the Text Tool and make the following changes to the Character Setting. Go to contour and make the following Setting. Use the colors mentioned in Step 2 for the Gradient Overlay with #592d08 and #ba9552. Create a

Read More →

663 total views, no views today

HTML5 brings a host of new elements and attributes to allow developers to make their documents more easily understood by other systems (especially search engines!), display data more uniquely, and take on some of the load that has required complex JavaScript or browser plug-ins like Flash and Silverlight to handle. Here are 10 new items

Read More →

451 total views, no views today

“ARC forbids explicit message send of ‘release’ in Xcode. How can I fix this error… Just remove the release statement. ARC will manage it for you. ARC is Auto Reference Counting. As opposite to manual reference counting. 966 total views, no views today

966 total views, no views today