angelsix / youtube Goto Github PK
View Code? Open in Web Editor NEWAny general files related to the AngelSix YouTube channel
Any general files related to the AngelSix YouTube channel
I'm reporting also here my comment about "C# WPF UI Tutorials: 02 - TreeViews and Value Converters" on youtube
As I've already written, great videos! I'm experienced and I still find interesting tips ;-)
Of course this was intended to be an initial part of the tutorial for beginners, anyway... We could do this without code behind (so no expand event) but with an attached behavior for the selected item of the treeview.
My quick example in my mvvm_treeview repo here where I'm only adding dummy strings without actually looking at the file system: it's a simple demo to share opinions with you!
public class MenuItem : ViewModelBase
{
public MenuItem()
{
this.Items = new ObservableCollection<MenuItem>();
}
public string Title { get; set; }
private ObservableCollection<MenuItem> items;
public ObservableCollection<MenuItem> Items {
get { return items; }
set
{
items = value;
OnPropertyChanged();
}
}
}
I wish to think that - after decoupling the view from the model by means of an attached behavior - the simple (view-)model class MenuItem
- behind the treeview binding - is the C# WPF equivalent of the Haskell lazy free point or more generally the equivalent of a free algebra...
This declarative binding is really powerful
<e:Interaction.Behaviors>
<local:BindableSelectedItemBehavior SelectedItem="{Binding SelectedItem, Mode=TwoWay}" />
</e:Interaction.Behaviors>
the setter of this property implements the lazy Expanded
event in a more abstract way: IMO this pattern is even cooler than the too much opinionated Elm MVU...
Thanks again for your great work
Hello,
I think the Title is pretty self-descriptive, but I thought that your cool video about WiX Toolkit is missing it. Would you like to extend this Repo with File extension association ?
For example opening some *.xyz files via your Console App by double clicking on it ?
That would be cool.
First off, thanks for the great Avalonia series! I'm trying to reproduce the work you did with the expander menu for the channels, but I get an error here:
I see in the video that Rider gives you a warning about this (yellow squiggly) but I'm definitely getting an error. and when trying to compile:
I have the _channelConfigurations
defined exactly as you have, and the .GroupBy
is identical.
I'm really new to Avalonia (and MVVM in general) so I don't really know how to troubleshoot this. I did end up trying to just make a Dictionary<string,List> but that led to its own issues while compiling.
Any help or a guidance on a direction to look at would be very appreciated. In case it matters, I'm using 11.0.0-preview5
(as where it looks like your project is using 11.0.0-preview1
) and .NET Core 7.0 instead of 6.0.
After watching video #2 on WpfTreeView and coming back here to pull some of the cs scripts i noticed that MainWindow.xaml doesn't match the video's version. The other scripts that are different as well. I could edit the scripts but my current code is giving me errors.
Hello Luke,
First of all thank you for your great job. I am trying to learn C# on my own and your videos help me a lot.
However, I would like to use your WpfTreeModel in my application, but the Binding with the IsExpanded property doesn't seem to work. When I expand a drive on the view, the property DirectoryItemViewModel.Children is filled as it would have to be, but the subfolders don't appear on the view.
I've attached my solution. If you could take a look, I would be very gratefull ;-)
Thank you.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.