#wpf

  1. amirdaneshi

    Question how to resolve this error: The name 'InitializeComponent' does not exist in the current context?

    hi, i'm new to dot net and i really want to get into WPF. but when i create a brand new project in visual studio or in dotnet sdk, i keep getting this error that says: The name 'InitializeComponent' does not exist in the current context? in both vs and vscode there is a red line under it as...
  2. M

    Question Are INotifyPropertyChanged and ValidationRule compatible?

    In my GUI I have a TextBox whose content can be edited at any time by the user and must be known in the code that has to use its latest value. The TextBox is already bound to the procedure that checks its content is in the proper range: <Window.Resources> <local:DoubleRangeRule...
  3. M

    Question Changing the Background color of some ListBox Items

    The ListBox is defined as follows: <ListBox x:Name="EditableStructs" Grid.Row="5" Grid.Column="1" Margin="930,62,0,40" SelectionMode="Single" Grid.ColumnSpan="2" Background="PowderBlue" Height="500" ScrollViewer.VerticalScrollBarVisibility="Visible"...
  4. M

    How to improve the GUI

    Thank you for all the help you have given me. I added a couple of new features upon requests from my colleagues. It does what it is supposed to do. However, it looks ugly. I tried to make it more compact but WPF but I couldn't. For some reason, that I don't get, if I move horizontally one of the...
  5. DanielBA

    WPF Tweening Rectangle not working

    I have made a custom wpf Control and I have been trying to create a method of Position Tweening to it. I have followed the Microsoft Docs explanations but to no avail. Can someone tell me why does this code don`t work? NameScope.SetNameScope(_Rectangle, new NameScope()); RectAnimation a = new...
  6. G

    Question WPF Datagrid is erasing the SSMS Database and showing empty

    Hello, I am doing a wpf sample database project. I created a database called school details with different tables. One table is StudentDetails where I just entered the name of random five students and another table is five sets of marks for phyics, chemistry, biology and maths. Now the first...
  7. MikeI

    Question Obtaining a specific layout in WPF

    I have a question about WPF. The interface shown in the GIF is something written in C++. I've been trying to replicate this effect for some time, but with no success. What I've been trying to do is create a trigger to give the grid column definition a width of "*" instead of the regular "4*"...
  8. D

    How to get parameters of a selected Category

    Hi. Working with Revit API. Selected category is in the variable called "category". How to make a list of parameters that belong to that category and put it inside of a new ComboBox? Assuming that I am going to need to continue inside of the Class.cs file. Should I create a list of all elements...
  9. S

    Styles in App.xaml doesn't show the foreground white on a button

    I have made me a style for the buttons that does (almost) what I want except from one thing. The text is black no matter what color I set in the foreground. I have tried copying other styles examples which says the foreground is white. Still black. I have tried to make a label in the button and...
  10. G

    Question Cannot filter data in dataset wpf application

    I have a dataset with column is known as Card_type_1. There 3 types of cards are there. One is SAR41, SAR42 and SAR108. This is a recent change. A week before it was 41,42 and 108, and now I changed it to SAR41, SAR42 and SAR108. Now there is a filter button which checks for each set of cards...
Back
Top Bottom