Search results for query: *

  1. Elad770

    How to display full text in the Label when the ViewCell's Tapped event is executed?

    Hello everyone I'm quite new to Xamarin Forms, I'm trying to build a ListView of all kinds of messages that are built in such a way that there is a title and the content of the message itself is displayed as two lines with 3 dots at the end, the idea I want to do is that as soon as some...
  2. Elad770

    How to get the path of the folder of the dll?

    The truth is that right now I'm working in Visual 2022 and there really isn't an error, but in 2017 quite a few times I had to use Parse as in the example here I would get a compilation error red bar claiming that it didn't recognize the object even though it was a string.
  3. Elad770

    How to get the path of the folder of the dll?

    I tried to use with this function Assembly.GetExecutingAssembly But it gives me the folder of the main process and not the dll. I didn't understand exactly how I still make it run the dll that will point to its relative folder.
  4. Elad770

    How to get the path of the folder of the dll?

    Yes, I know that it is itself a string, I still have to perform ToString because I get an error without it, and it happened to me many times with the Parse function, basically I would prefer to use the static class Convert
  5. Elad770

    How to get the path of the folder of the dll?

    Hello I have a problem and I have no idea why it is happening. I am trying to run a class from a dll file, one of whose functions reads from a text file in the debug folder by the StreamReader class. The problem is that when I run the additional project that calls the class from the first...
  6. Elad770

    Question How to set a Binding with a specific value of Enum to Ellipse in code behind?

    Regarding the condition, the way I wrote the conditions it should be exactly like this. Regarding what you said that I assign on every change, are you suggesting that I keep 2 variables in the class? Instead of doing 'new' every time? The question that came to my mind now, is every time the...
  7. Elad770

    Question How to set a Binding with a specific value of Enum to Ellipse in code behind?

    Hello, I have an Enum of statuses and I want to color an Ellipse according to a certain status value. The solution I made is to create a binding in the code according to the variable of the Enum and with Converter I check the status and then return the appropriate color. The problem with this is...
  8. Elad770

    How Binding between string[] and some Labels controls?

    Okay, the solution is probably like you said at the beginning not to use with an array of strings (although I do not understand the principle you explained at the beginning with a diameter). But actually split it into variables or use with a special list of wpf
  9. Elad770

    How Binding between string[] and some Labels controls?

    Unfortunately I did not really get to work with MVVM, although apparently it seems so. Regarding the two things you mentioned. 1 yes, this is exactly the same instance, UserControl gets the instance of User through the same window running in the background Regarding 2, the content of the array...
  10. Elad770

    How Binding between string[] and some Labels controls?

    Yes you are right in this section it should not work and must implement the interface and yet it still does not work There is a situation where my implementation is a bit problematic in the first place (I am not talking about the array itself), I did not mention it at first because I thought it...
  11. Elad770

    How Binding between string[] and some Labels controls?

    I checked the array with the binding works in running the program but No matter which way I do (even as you suggested) for some reason The Binding does not work when I change the contents of the array (which I press the button and enter other contents in the boxes) This setting...
  12. Elad770

    How Binding between string[] and some Labels controls?

    Hello I am trying to bind between a property of a string array and some Label defined in xaml. I'm just like that: //ViewModel public class User { public string UserName { get; set; } public string Password { get; set; } public string Id { get; set; } public...
  13. Elad770

    How to perform DataBinding on a specific property from the ObservableCollection list?

    Thank you so much I used with the lambda you suggested I usually do not use the technique in general, I tried to do in the usual form of the get of the property
  14. Elad770

    How to perform DataBinding on a specific property from the ObservableCollection list?

    Hello everyone I am trying to perform Data Binding to ListView with class properties. I do this by keeping in a two-dimensional array of object the names of the properties from which I want to make the binding. Most properties are themselves a bit complex because they are actually properties...
  15. Elad770

    Question How change root of Tree custom when pass to Recursive function?

    class very simple and right that a structure, as opposed to a class, is defined as by value internal class Node { public string OpratorOrOprend { set; get; } public Node Left { set; get; } public Node Right { set; get; } }
  16. Elad770

    Question How change root of Tree custom when pass to Recursive function?

    Thank you. I tried by the way the solution is similar to yours it did not exactly do the desired result according to the logic of the code. I found another way to get around my problem.
  17. Elad770

    Question How change root of Tree custom when pass to Recursive function?

    Hello I have a problem with tree, I want to change the root of the tree that has two nodes left and right. To solve this there is the classic solution that c# proposes to move the object to the function as a ref, but the problem is that because the function is recursive and I always call the...
  18. Elad770

    How to reset the newly added row automatically in DataGrid, when DataGrid binds with DataTable?

    hello I work with DataGrid in WPF. The datagrid does binidng with a DataTable that holds within it a db table with required fields. The problem is that when I try to get out of focus in the new row from any cell from the same row without really filling the same cell, the datagrid does not allow...
  19. Elad770

    How to reset the newly added row automatically in DataGrid, when DataGrid binds with DataTable?

    hello The datagrid does binidng with a DataTable that holds within it a db table with required fields. The problem is that when I try to get out of focus in the new row from any cell from the same row without really filling the same cell, the datagrid does not allow me to access other rows that...
Back
Top Bottom