Search found 7 matches

by tesrt
23 Apr 2020, 20:17
Forum: General Discussion
Replies: 1
Views: 557

Inheriting GridViewColumn

On trying to inherit a GridViewColumn Unity crashes. How to properly inherit GridViewColum ? public class GridViewColumnTest : GridViewColumn { public static readonly DependencyProperty TestProperty = DependencyProperty.Register ( "Test", typeof(string), typeof(GridViewColumnTest), new PropertyMetad...
by tesrt
23 Apr 2020, 16:02
Forum: General Discussion
Replies: 1
Views: 1187

Sort a GridView Column When a Header Is Clicked

I'm trying to follow this example to sort a gridview colum when a header is clicked. https://docs.microsoft.com/en-us/dotnet/framework/wpf/controls/how-to-sort-a-gridview-column-when-a-header-is-clicked I'm having some trouble doing it: 'CollectionViewSource' does not contain a definition for 'GetDe...
by tesrt
23 Apr 2020, 14:10
Forum: General Discussion
Replies: 2
Views: 1279

Re: Connect GridViewColumnHeader.Click event from ListView

Thank you for your help!
by tesrt
23 Apr 2020, 12:20
Forum: General Discussion
Replies: 2
Views: 1279

Connect GridViewColumnHeader.Click event from ListView

I have a ListView and I want to connect the event GridViewColumnHeader.Click to the function PersonListView_Click <ListView ItemsSource="{Binding Person}" GridViewColumnHeader.Click="PersonListView_Click"> <ListView.View> <GridView> <GridViewColumn DisplayMemberBinding="{Binding Name}" /> protected ...
by tesrt
07 Apr 2020, 09:58
Forum: General Discussion
Replies: 1
Views: 1712

How to connect a slider event

How can I connect a slider event in C# to Noesis ? The code I have bellow protected override bool ConnectEvent(object source, string eventName, string handlerName) { if (eventName == "ValueChanged" && handlerName == "Slider_ValueChanged") { ((Slider)source).ValueChanged += this.Slider_ValueChanged; ...
by tesrt
05 Apr 2020, 15:13
Forum: General Discussion
Replies: 1
Views: 1463

How to set data to a Path

How can I set Data to a path
I'm looking at this post
viewtopic.php?t=515#p2637

But for me 'Path' does not contain a definition for 'SetData'.
What am I missing ?
by tesrt
08 Mar 2020, 15:31
Forum: General Discussion
Replies: 2
Views: 8560

Crop an Image into 9 tiles

How can I divide an image into many other tiles ? What I have at the moment is a "random image generator". But what I would need is a way to read the bytes of a bitmap image in order to copy only some part of the image I guess. But how can I access the bytes of a bitmap Image ? Here is some code I u...