frknztrk
frknztrk
CC#
Created by frknztrk on 6/23/2024 in #help
C# wpf Popup DragMove Help
No description
1 replies
CC#
Created by frknztrk on 6/20/2024 in #help
C# Wpf DatePicker Custom Style Error
Hello, I am trying to create a custom DatePicker. I have managed to redesign most parts, but I am having trouble adjusting the border that is added to the DatePickerTextBox.
7 replies
CC#
Created by frknztrk on 12/8/2022 in #help
❔ Creating a folder with FtpWebRequest
7 replies
CC#
Created by frknztrk on 11/23/2022 in #help
✅ İndexOf multiple matches
How do I get the indexes of words that match more than one in a paragraph as an array?
7 replies
CC#
Created by frknztrk on 11/22/2022 in #help
❔ Wpf popup drag ?
3 replies
CC#
Created by frknztrk on 11/13/2022 in #help
❔ C Task this.Dispatcher.Invoke lock problem
private void Page_Loaded(object sender, RoutedEventArgs e)
{
letspaly = Task.Run(() => loadItem());

letspaly.Wait();
Debug.WriteLine("End ?");
}
private void Page_Loaded(object sender, RoutedEventArgs e)
{
letspaly = Task.Run(() => loadItem());

letspaly.Wait();
Debug.WriteLine("End ?");
}
public void loadItem()
{
using (var entitydb = new AyetContext())
{

this.Dispatcher.Invoke(() =>
{
listBorder.Visibility = Visibility.Visible;
stackBorder.Visibility = Visibility.Collapsed;
});

}

}
public void loadItem()
{
using (var entitydb = new AyetContext())
{

this.Dispatcher.Invoke(() =>
{
listBorder.Visibility = Visibility.Visible;
stackBorder.Visibility = Visibility.Collapsed;
});

}

}
I will get the data every time the page is loaded with the task, but the program hangs with invoke while the task is waiting
19 replies
CC#
Created by frknztrk on 10/10/2022 in #help
Wpf cefsharp ChromiumWebBrowser closed
1 replies
CC#
Created by frknztrk on 9/4/2022 in #help
Wpf Itemscontrol child access
I'm trying to enter the checkbox that I added dynamically.
<ItemsControl Style="{DynamicResource verseNavButtonItemsControl}" x:Name="vb1" Grid.Column="1">
<ItemsControl.ItemTemplate>
<DataTemplate>
<CheckBox x:Name="vbchk1" Style="{DynamicResource versesNavButtonV}" Uid="{Binding VerseId}" IsChecked="{Binding VerseCheck}" Content="{Binding RelativeDesk}" Tag="{Binding Status}" Click="activeVerseSelected" />
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>

<ItemsControl Style="{DynamicResource verseNavButtonItemsControl}" x:Name="vb1" Grid.Column="1">
<ItemsControl.ItemTemplate>
<DataTemplate>
<CheckBox x:Name="vbchk1" Style="{DynamicResource versesNavButtonV}" Uid="{Binding VerseId}" IsChecked="{Binding VerseCheck}" Content="{Binding RelativeDesk}" Tag="{Binding Status}" Click="activeVerseSelected" />
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>

access vbchk1
1 replies
CC#
Created by frknztrk on 8/29/2022 in #help
C try catch not working why ? [Answered]
16 replies
CC#
Created by frknztrk on 8/20/2022 in #help
WPF DataTemplate access the button inside
<ItemsControl x:Name="versesTextData">
<ItemsControl.ItemTemplate>
<DataTemplate>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<StackPanel Orientation="Vertical" Grid.Column="0" HorizontalAlignment="Left" Margin="10,0,10,0">
<TextBlock Margin="15 5 30 5" TextTrimming="CharacterEllipsis" Text="{Binding VerseTr}" VerticalAlignment="Center" FontSize="22" Foreground="#FF1C1E2F" FontFamily="{DynamicResource PoppinsMedium}" />
<Button Visibility="Collapsed" x:Name="fulltextTr" Style="{DynamicResource versesAllShowButton}" Tag="Tamamını Göster" Click="trFullTextLoad" />
</StackPanel>
<StackPanel Orientation="Vertical" Grid.Column="1" HorizontalAlignment="Right" Margin="10,0,10,0">
<TextBlock Margin="15 5 30 5" TextTrimming="CharacterEllipsis" Text="{Binding VerseArabic}" FontSize="22" Foreground="#FF1C1E2F" FontFamily="XB Zar" />
<Button Visibility="Collapsed" x:Name="fulltextArabic" Style="{DynamicResource versesAllShowButton}" Tag="Tamamını Göster" Click="arabicFullTextLoad" />
</StackPanel>
</Grid>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
<ItemsControl x:Name="versesTextData">
<ItemsControl.ItemTemplate>
<DataTemplate>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<StackPanel Orientation="Vertical" Grid.Column="0" HorizontalAlignment="Left" Margin="10,0,10,0">
<TextBlock Margin="15 5 30 5" TextTrimming="CharacterEllipsis" Text="{Binding VerseTr}" VerticalAlignment="Center" FontSize="22" Foreground="#FF1C1E2F" FontFamily="{DynamicResource PoppinsMedium}" />
<Button Visibility="Collapsed" x:Name="fulltextTr" Style="{DynamicResource versesAllShowButton}" Tag="Tamamını Göster" Click="trFullTextLoad" />
</StackPanel>
<StackPanel Orientation="Vertical" Grid.Column="1" HorizontalAlignment="Right" Margin="10,0,10,0">
<TextBlock Margin="15 5 30 5" TextTrimming="CharacterEllipsis" Text="{Binding VerseArabic}" FontSize="22" Foreground="#FF1C1E2F" FontFamily="XB Zar" />
<Button Visibility="Collapsed" x:Name="fulltextArabic" Style="{DynamicResource versesAllShowButton}" Tag="Tamamını Göster" Click="arabicFullTextLoad" />
</StackPanel>
</Grid>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
1 replies
CC#
Created by frknztrk on 8/15/2022 in #help
WPF Button controltemplate Icon Color
<Style x:Key="versesTabSearchButton" TargetType="Button">

<Setter Property="Width" Value="24" />
<Setter Property="Height" Value="22" />
<Setter Property="Foreground" Value="#1C1E2F" />
<Setter Property="BorderThickness" Value="0,0,0,0" />
<Setter Property="BorderBrush" Value="{x:Null}" />
<Setter Property="Background" Value="{x:Null}" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Border Width="24" Height="22">
<Icon:PackIconOcticons x:Name="searchIcon" Kind="Search" Width="16" Height="16" Foreground="{TemplateBinding Foreground}" VerticalAlignment="Center" HorizontalAlignment="Center" />
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>

<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Foreground" Value="Green" />
<Setter Property="Cursor" Value="Hand" />
</Trigger>
</Style.Triggers>
</Style>
<Style x:Key="versesTabSearchButton" TargetType="Button">

<Setter Property="Width" Value="24" />
<Setter Property="Height" Value="22" />
<Setter Property="Foreground" Value="#1C1E2F" />
<Setter Property="BorderThickness" Value="0,0,0,0" />
<Setter Property="BorderBrush" Value="{x:Null}" />
<Setter Property="Background" Value="{x:Null}" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Border Width="24" Height="22">
<Icon:PackIconOcticons x:Name="searchIcon" Kind="Search" Width="16" Height="16" Foreground="{TemplateBinding Foreground}" VerticalAlignment="Center" HorizontalAlignment="Center" />
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>

<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Foreground" Value="Green" />
<Setter Property="Cursor" Value="Hand" />
</Trigger>
</Style.Triggers>
</Style>
I want the icon to change color when it comes to the button area, but it changes when the mouse comes to the icon. Use metro.mahapps.ıcon nuget pack
10 replies
CC#
Created by frknztrk on 8/12/2022 in #help
WPF Navigationservices transfer data
3 replies
CC#
Created by frknztrk on 8/11/2022 in #help
Wpf Button CommandParameter
<Button Command="{Binding ClickCommandEvent}" CommandParameter="Jack"/> How commandParemeter value get wpf ?
36 replies