Elio
Elio
CC#
Created by Elio on 6/17/2024 in #help
Access dependency property from a viewmodel WPF
ohhhh true i've understand i bind IsEditable to isEnabled in the control for exemple :
<Button
HorizontalAlignment="Center"
VerticalAlignment="Center"
Background="{StaticResource ButtonGradientPrimaryColor}"
Command="{Binding Path=DataContext.RemoveCommand, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type DataGrid}}}"
IsEnabled="{Binding IsEditable}"
CommandParameter="{Binding Path=SelectedItems, ElementName=DataGridThickness}"
Style="{StaticResource PrimaryButtonStyle20x20}">
<Image Source="{StaticResource ICON_DEL_20x20}" />
</Button>
<Button
HorizontalAlignment="Center"
VerticalAlignment="Center"
Background="{StaticResource ButtonGradientPrimaryColor}"
Command="{Binding Path=DataContext.RemoveCommand, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type DataGrid}}}"
IsEnabled="{Binding IsEditable}"
CommandParameter="{Binding Path=SelectedItems, ElementName=DataGridThickness}"
Style="{StaticResource PrimaryButtonStyle20x20}">
<Image Source="{StaticResource ICON_DEL_20x20}" />
</Button>
4 replies
CC#
Created by Elio on 5/2/2024 in #help
Visualizer XAML
if i merge ToggleButtonV5Generic.xaml in Generic.xaml the error disapear so i supposed that the visualizer can't find the path to the file but i do not understand why because it display my control in the visualizer
2 replies
CC#
Created by Elio on 4/26/2024 in #help
✅ JSON Deserialize Derived Class
Thank you all for helping me !
61 replies
CC#
Created by Elio on 4/26/2024 in #help
✅ JSON Deserialize Derived Class
perfect that was what i was looking for ! 😍 Well i should be careful about my vocabulary it would have save some time i think 😅 polymorphic object/derived classes
61 replies
CC#
Created by Elio on 4/26/2024 in #help
✅ JSON Deserialize Derived Class
to resume i want to save programbending as a json in order to export/import it from a usb
61 replies
CC#
Created by Elio on 4/26/2024 in #help
✅ JSON Deserialize Derived Class
y i'm creating the json
61 replies
CC#
Created by Elio on 4/26/2024 in #help
✅ JSON Deserialize Derived Class
yup and with newtonsoft i've found the solution how to do it, rn i'm looking to find how to do it with STJ
61 replies
CC#
Created by Elio on 4/26/2024 in #help
✅ JSON Deserialize Derived Class
what do you mean ?
61 replies
CC#
Created by Elio on 4/26/2024 in #help
✅ JSON Deserialize Derived Class
i'm open to switch to STJ, i just need to figure it out how to handle the desesrialization of my polymorphic object
61 replies
CC#
Created by Elio on 4/26/2024 in #help
✅ JSON Deserialize Derived Class
yup and i can't really figure it out how to say to STJ to select the good class when i want to deserialize my object which contains this list
61 replies
CC#
Created by Elio on 4/26/2024 in #help
✅ JSON Deserialize Derived Class
No description
61 replies
CC#
Created by Elio on 4/26/2024 in #help
✅ JSON Deserialize Derived Class
yep that's it
61 replies
CC#
Created by Elio on 4/26/2024 in #help
✅ JSON Deserialize Derived Class
here is the good class : https://paste.mod.gg/pymisjadpkel/0
61 replies
CC#
Created by Elio on 4/26/2024 in #help
✅ JSON Deserialize Derived Class
that's good i've started yesterday so i can still change from newton to STJ
61 replies
CC#
Created by Elio on 4/26/2024 in #help
✅ JSON Deserialize Derived Class
i've got the same problem as before, when i deserialize the array of step, it only use the class step and ignore the subclass stepspecial and stepnormal
61 replies
CC#
Created by Elio on 4/26/2024 in #help
✅ JSON Deserialize Derived Class
i understand thanks i will quiclky try this and let u know if everything work well 🙂
61 replies
CC#
Created by Elio on 4/26/2024 in #help
✅ JSON Deserialize Derived Class
do i really need to specify the name of each property for the json ?
61 replies
CC#
Created by Elio on 4/26/2024 in #help
✅ JSON Deserialize Derived Class
ok good to know
61 replies
CC#
Created by Elio on 4/26/2024 in #help
✅ JSON Deserialize Derived Class
Given the number of its popularity, I thought it was a good librairy
61 replies
CC#
Created by Elio on 4/26/2024 in #help
✅ JSON Deserialize Derived Class
why do we avoid Newtonsoft ? thanks for the solution i'll try to do it this way
61 replies