by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 14:44
    tkacleonid opened #1972
  • 07:03

    Keboo on icons

    Icons update from Azure pipeline (compare)

  • 07:03
    MDIX-SA synchronize #1964
  • 03:15
    bombipappoo commented #1971
  • Jul 08 18:52
    SaviorXTanren closed #1970
  • Jul 08 18:52
    SaviorXTanren commented #1970
  • Jul 08 17:33
    theW01f edited #1971
  • Jul 08 17:23
    theW01f edited #1971
  • Jul 08 17:17
    theW01f opened #1971
  • Jul 08 15:56
    marvac commented #1970
  • Jul 08 07:04

    Keboo on icons

    Icons update from Azure pipeline (compare)

  • Jul 08 07:04
    MDIX-SA synchronize #1964
  • Jul 08 04:40
    SaviorXTanren opened #1970
  • Jul 07 23:53
    yosefmah edited #1969
  • Jul 07 23:53
    yosefmah opened #1969
  • Jul 07 20:02
    database64128 commented #1967
  • Jul 07 19:43
    database64128 commented #1967
  • Jul 07 16:52
    database64128 reopened #1967
  • Jul 07 16:52
    database64128 commented #1967
  • Jul 07 16:43
    database64128 commented #1967
Mohammedzuhair
@Mohammedzuhair
How can i create a stackedBar chart in wpf MVVM pattern?
Manu
@erutovic
Hi @Mohammedzuhair , I personally use Arction Lightning Chart (www.arction.com). It is relatively expensive but super powerful if you need high-performance. There are also free options like : https://lvcharts.net
Mohammedzuhair
@Mohammedzuhair
Thank you @erutovic
Henrique Clausing
@HClausing
Hello all.
I was doing some tests and noted some differences on margin defaults from TextBox to DatePicker:
image.png
Basically on top margin, DatePicker's is less than TB.
image.png
Henrique Clausing
@HClausing

Basically on top margin, DatePicker's is less than TB.

Well, it can be on Top Padding too.

Jesper Hansen
@jespersh
@HClausing please create an issue :)
Henrique Clausing
@HClausing
Thanks @jespersh . Created the issue. By the way, I think that I've found on the XAML's Style and created a Pull Request matching from TextBox Style.
Auracle
@AuracleTech
Hoi guys, need help I have not used VS for years, and it changed a lot! I think I implemented Material Design properly in App.xaml and the main window.xaml but how to set for example my combobox to a flat-style theme, where's the docs?
Auracle
@AuracleTech
:(
Auracle
@AuracleTech
Found my way
ESSOH Jean-Théodore
@TheoEssoh
hi ! can you help me please ! i want to have a contextmenu when i select a zone or a controls or when the mouse enter in a zone and when the mouse over the contextMenu disapear. can you give me an idea?
ESSOH Jean-Théodore
@TheoEssoh
an exemple
Kevin B
@Keboo
@VAnzala in general nested popup boxes in side of popup boxes are a bad idea since the light dismiss can often cause problems. However, you can sometimes work around the issue by binding the IsPopupOpen to a property on your view model and control it that way rather than with routed commands.
@TartanLeGrand unfortunately I don't know if a grid with that sort of behavior built in. You could build something similar simply by using basic Triggers on a Grid, however that wont get you the nice animation that is shown there.
Kevin B
@Keboo
@HClausing thanks for logging that issue!
Kevin B
@Keboo
@TheoEssoh I am not sure I understand. Is something like this what you are looking for?
ESSOH Jean-Théodore
@TheoEssoh
I have DataGrid. when mouse enter in a datagridcolumn or On left mouse button click I want to open ContextMenu.
yes that's about it. I will try to explain myself a little more
I have DataGrid. when mouse enter in a datagridcolumn or On left mouse button click I want to open ContextMenu.
and the contextmenu desapear when the mouse is hover the datagridcolumn
Kevin B
@Keboo

@TheoEssoh ok that makes sense. I think the example above should point you in the right direction. I would do something like this:

  1. Create a behavior that you can attach to the UI elements (I would probably suggest looking at attaching it to individual data grid cells).
  2. Register for the events you care about. In this case it sounds like MouseEnter, and MouseDown.
  3. Use a dispatcher timer, and close the menu after some period of time. I would probably suggest checking if the mouse is over the context menu before closing it.

With all of that said, opening the context menu on mouse enter is a little unusual. it may get a little difficult to manage the context menus.

ESSOH Jean-Théodore
@TheoEssoh
okay. can you explain me this please? AssociatedObject.ContextMenu is { } contextMenu
what is the correspondence in language version 8.0 or later?
Kevin B
@Keboo

That is something new in C# 8.0 called recursive pattern matching. it basically converts down to this code:

var contextMenu = AssociatedObject.ContextMenu;
if (contextMenu != null)
{ ... }

It is just doing a null check, and if the value is not null, it assigns the value into a local variable called contextMenu

ESSOH Jean-Théodore
@TheoEssoh
ok I see, thank's very much
Matthew Olivo
@SaviorXTanren
Hi, is there a way to manually change or update the validation state of a field? The validation rules as a little inflexible for the situation I'm trying to do. Essentially I'm doing a time-delayed web query as the user types text into a combo box. After about 500 milliseconds, if the text has not changed (IE they stopped typing), I then run a web query to populate results into the combo box's item source. However if there are no results found, I want to set the validation result of the field to failed and put some text in there stating there were no results found.
Kevin B
@Keboo
@SaviorXTanren if you are using MVVM you want to take a look at INotifyDataErrorInfo. I have a small example of using it here
Matthew Olivo
@SaviorXTanren
@Keboo It wouldn't be using MVVM in this specific scenario unfortunately as I need to latch on to the text updates as they are being typed in as opposed to when the field loses focus
Kevin B
@Keboo
@SaviorXTanren you can make the TextBox update the view model as the text changes by setting UpdateSourceTrigger=PropertyChanged on the Binding for the TextBox's Text.
You might also look into setting the Delay property on the binding to 500 to have it manage the waiting for 500 milliseconds for you as well
Matthew Olivo
@SaviorXTanren
@Keboo hmm, fair point. I'll give that a try. Thanks!
theW01f
@theW01f
Hi everyone! I have a simple question. How to I get the Material
DesignToolkit like a Desktop App? I would like to see the code of all controls. Thanks!
theW01f
@theW01f
2020-07-08_14-08-02.gif
1 reply
theW01f
@theW01f
How to add a resource in App.xaml to MaterialDesignFilterChipAccentListBox?
twiles
@twiles
Is there an easy way to change the clearbutton icon in a textfield?
Jesper Hansen
@jespersh
@theW01f it is common because that flipper is actually a 3d rendered element. It causes blurring
And you'll need 3.2.0 for MaterialDesignFilterChipAccentListBox
ESSOH Jean-Théodore
@TheoEssoh
Screenshot (12).png
Screenshot (12).png
hello!! i need to have this contextual menu in wpf, someone can help me please?
Screenshot (14).png
Screenshot (14).png
i want to have a contextmenu when i select a zone or a controls or when the mouse enter in a zone and when the mouse over the contextMenu disapear
Jesper Hansen
@jespersh