עבור לתוכן
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.

פינות מעוגלות ב c# wpf

Featured Replies

פורסם

שלום לכולם, אני חדשה בנושאי התכנות וגם באתר

אני עשיתי כפתור מעוצב משלי ומצאתי קוד לפינות, הוא עובד user control ואני מנסה לעשות לו פינות עגולות

 
<Grid Name="masterGrid" Width="auto" Height="auto">
<Border Padding="2" Name="mask" Background="White" CornerRadius="20" BorderThickness="0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" />
<StackPanel ClipToBounds="True">
<Button HorizontalAlignment="Stretch" VerticalAlignment="Stretch" ClipToBounds="True" Name="button1" Focusable="False" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Background="{x:Null}" BorderBrush="{x:Null}" BorderThickness="0" Click="button1_Click_1" TouchDown="button1_Click_1" >
<Grid>
<Image HorizontalAlignment="Stretch" Name="image1" Stretch="Fill" VerticalAlignment="Stretch" ClipToBounds="True" Source="/DinamicButtons;component/Images/new_pic.png" Height="auto" Width="auto" Margin="0" />
<Label Content="0" HorizontalAlignment="Center" Name="label1" VerticalAlignment="Center" FontWeight="Bold" FontSize="60" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Height="124" Margin="0" />
</Grid>
</Button>
<StackPanel.OpacityMask>
<VisualBrush Visual="{Binding ElementName=mask}"/>
</StackPanel.OpacityMask>
</StackPanel>
</Grid>

כמה שאלות:

1. אני לא מבינה את הקוד של הפינות

את ה margin,StackPanel ו VisualBrush את ה

איך הם עובדים..

במקביל, כאשר מריצים את התוכנית ועומדים על הכפתור, מופיע מסביבו כחול לא סימטרי

איך אני עושה שהוא יהיה סימטרי או יותר יפה?

אודה מאוד על כל עזרה שהיא

שירן :)

פורסם

ברוכה הבאה לפורום.

אני ממליץ לך לערוך את ההודעה ולשים את כל הקוד בתוך טג קוד (הכפתור עם הסולמית, ליד הכפתור של הציטוט) כדי שיהיה יותר קריא.

ארכיון

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

דיונים חדשים

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.