Aurumaker72
Aurumaker72
CC#
Created by ivi on 8/14/2023 in #help
✅ MVVM: Are models observable?
For example, by binding. Binding to a Model is a violation of MVVM
12 replies
CC#
Created by ivi on 8/14/2023 in #help
✅ MVVM: Are models observable?
INPC in models is fine, as long as you don't reference the model layer from the view.
12 replies
CC#
Created by XD on 6/4/2023 in #help
❔ Any tips on how to make this function cleaner? I feel it's a mess
You won't learn anything by copy-pasting code from the internet without any prior cognitive effort
32 replies
CC#
Created by Di0n on 5/17/2023 in #help
❔ Fontawesome icons dont support converting in WPF
The Icon dp is confusing, could you clarify what the requirement is?
9 replies
CC#
Created by Di0n on 5/17/2023 in #help
❔ Fontawesome icons dont support converting in WPF
9 replies
CC#
Created by Di0n on 5/17/2023 in #help
❔ Fontawesome icons dont support converting in WPF
I recommend not hacking in Fontawesome icons, but using a library integrated with WPF instead
9 replies
CC#
Created by Di0n on 5/14/2023 in #help
✅ Font Awesome in WPF
1. Did you make sure the element is being laid out correctly and is indeed visible? 2. Did you make sure the source is correct? (by loading an image in code-behind and breaking with the debugger to see it succeed)
20 replies
CC#
Created by 3E7 on 5/7/2023 in #help
✅ WPF simple project need help with binding
This has been resolved in #gui
16 replies
CC#
Created by krazycay on 4/25/2023 in #help
❔ how to detect if console app is maximized (IsZoomed)
Alternatively, you can call GetWindowPlacement and compare the returned WINDOWPLACEMENT's showCmd field against SW_MAXIMIZE
58 replies
CC#
Created by krazycay on 4/25/2023 in #help
❔ how to detect if console app is maximized (IsZoomed)
Then you call IsZoomed
58 replies
CC#
Created by krazycay on 4/25/2023 in #help
❔ how to detect if console app is maximized (IsZoomed)
58 replies
CC#
Created by krazycay on 4/25/2023 in #help
❔ how to detect if console app is maximized (IsZoomed)
You need to get the console host's HWND first
58 replies
CC#
Created by Aurumaker72 on 4/15/2023 in #help
❔ Avalonia ComboBox SelectedValuePath
I already implemented a working localization system, the issue is as described in the thread title.
7 replies
CC#
Created by Aurumaker72 on 4/15/2023 in #help
❔ Avalonia ComboBox SelectedValuePath
Thank you, but that's not what I'm looking for
7 replies
CC#
Created by Aurumaker72 on 4/15/2023 in #help
❔ Avalonia ComboBox SelectedValuePath
In WPF, you'd just do the following:
<ComboBox SelectedValue="{Binding Path=Theme, Mode=TwoWay}" SelectedValuePath="Tag">
<ComboBoxItem Tag="Light" Content="{LocalizedBinding Light}" />
<ComboBoxItem Tag="Dark" Content="{LocalizedBinding Dark}" />
</ComboBox>
<ComboBox SelectedValue="{Binding Path=Theme, Mode=TwoWay}" SelectedValuePath="Tag">
<ComboBoxItem Tag="Light" Content="{LocalizedBinding Light}" />
<ComboBoxItem Tag="Dark" Content="{LocalizedBinding Dark}" />
</ComboBox>
7 replies
CC#
Created by Aurumaker72 on 4/15/2023 in #help
❔ Avalonia ComboBox SelectedValuePath
<ComboBox SelectedValue="{Binding Theme, Mode=TwoWay}">
<ComboBox.Items>
<x:String>Light</x:String>
<x:String>Dark</x:String>
</ComboBox.Items>
</ComboBox>
<ComboBox SelectedValue="{Binding Theme, Mode=TwoWay}">
<ComboBox.Items>
<x:String>Light</x:String>
<x:String>Dark</x:String>
</ComboBox.Items>
</ComboBox>
I came up with this, but it's not localizable
7 replies