עבור לתוכן
View in the app

A better way to browse. Learn more.

HWzone

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

wpf אנימציה במעבר בין טאבים של טאב קונטרול c#

Featured Replies

פורסם
ציטוט של eido300

אז מה הדרך הנכונה?

תלוי מה אתה מנסה לעשות.

פורסם
  • מחבר

זה קוד תקין?

private void btn1_Click(object sender, RoutedEventArgs e)
        { 
            timer.Tick += Timer_Tick_fade;
        }

        private void Timer_Tick_fade(object sender, EventArgs e)
        {
           var item = (tab1.Items[tab1.SelectedIndex] as TabItem).Content as Grid;
            item.Opacity -= 0.001;
            if (item.Opacity < 0.1)
            {
                tab1.SelectedIndex = tab1.SelectedIndex != tab1.Items.Count - 1 ? tab1.SelectedIndex+1 : 0;
                timer.Tick -= Timer_Tick_fade;
                item.Opacity = 1.0;
            }
        }
        
        private void btn_slide_Click(object sender, RoutedEventArgs e)
        {
            timer.Tick += Timer_Tick_slide;
        }

        private void Timer_Tick_slide(object sender, EventArgs e)
        {
            var item = (tab1.Items[tab1.SelectedIndex] as TabItem).Content as Grid;
            item.Margin = new Thickness(item.Margin.Left+1,0,0,0);
            if (item.Margin.Left >= 1000)
            {
                tab1.SelectedIndex = tab1.SelectedIndex != tab1.Items.Count - 1 ? tab1.SelectedIndex + 1 : 0;
                timer.Tick -= Timer_Tick_slide;
                item.Margin = new Thickness(0,0,0,0);
            }
        }

 

הוא עושה את העבודה די יפה, ולדעתי הקוד יותר יפה ממה שהפנת אותי אליו.

נערך על-ידי eido300

פורסם
  • מחבר

בslideיש טעות, יותר מאוחר אשנה את זה.

טעות, הslide מצויין.

האם זו הדרך הנכונה לעשות את זה?

אגב למה זה לא עובד עם theard.sleep וtask.delay.wait? 

נערך על-ידי eido300

פורסם
  • מחבר

חבל הייתי באמצע השוונג...

פורסם
  • מחבר

😰

  • 3 שבועות מאוחר יותר...
פורסם
  • מחבר

וואי וואי, הספקתי כבר לשכוח מה כתבתי שם...

ארכיון

דיון זה הועבר לארכיון ולא ניתן להוסיף בו תגובות חדשות.

דיונים חדשים

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.