
ImageButton'a class ataması nasıl yapılıyor.
3
●76
- 17-10-2024, 19:58:44Merhaba. Android Studio da Java dilinde uygulama yapmaya başladım. Açılış ekranım var ve 3 tane de webview classim var ana ekrana imagebutton'lari koydum ama bunlara sayfa yönlendirmesini nasıl yapacağım bilmiyorum onu bulamadım. Ekte görsel atıyorum class isimleri habersite, tvwebview, fmwebview nasıl bir kod ile buraya git diyecegim

- 17-10-2024, 20:09:16Kimlik doğrulama veya yönetimden onay bekliyor.
<Window x:Class="WpfApp.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="MainWindow" Height="200" Width="400"> <Window.Resources> <!-- Style for ImageButton --> <Style x:Key="ImageButtonStyle" TargetType="Button"> <Setter Property="Background" Value="Transparent"/> <Setter Property="BorderBrush" Value="Transparent"/> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="Button"> <Grid> <Image Source="your-image-path.png" Width="100" Height="100"/> </Grid> </ControlTemplate> </Setter.Value> </Setter> </Style> </Window.Resources> <Grid> <!-- Applying the style to the button --> <Button Style="{StaticResource ImageButtonStyle}" Width="100" Height="100"/> </Grid> </Window> - 17-10-2024, 20:10:25
- 18-10-2024, 23:49:23Evet, çok yardımcı oldu. Teşekkür ediyorum.GuarDofErun adlı üyeden alıntı: mesajı görüntüle