Search results for query: *

  1. S

    ErrorCode XDG0003

    Thank you very much for your replay. I will then ignore the error (I hate to ignore errors, but the code worked perfectly 2 years ago without errors, so your explanation make sence to me) :)
  2. S

    ErrorCode XDG0003

    Hi I get the errorCode XDG0003. I can understand (while googeling" that is a name I don't make. And it is the name Path. I have several path. Some I can change to the right one. But some I have problems with. Let's take one of them: <Label x:Name="LblComponentActiveId" Margin="0 0 8 0"...
  3. S

    I cann't find the error. The first two usercontrol view with combobox is ok, but not the last two.

    Hi, I'm doing my project and I have now in several hours looked at it but cann't finde the error. I have 2 views 1 view is normal mode, where there is a combobox where it should be updated when choosing the tabItem is chosen. 2. View is new (creating a new item). Here is also a combobox with...
  4. S

    Wpf Cann't get into the SelectionChanged event for at tabControl

    Hi, You were right, and I was wrong. It's embarrassing to say it, but I'm sick, and sometimes I can 't overlook things. When I said it did not go into the method, I had just forgotten to make a brake point. I have done so now, and it also goes into it, but unfortunately it does not do what I...
  5. S

    Wpf Cann't get into the SelectionChanged event for at tabControl

    I will try out in a clean solution and returning back, when I know where it goes wrong. Thank You :-)
  6. S

    Wpf Cann't get into the SelectionChanged event for at tabControl

    Hi My problem is that I cann't make it to line 3. Only when starting the app, but not when switching tabs :-)
  7. S

    Wpf Cann't get into the SelectionChanged event for at tabControl

    Hi, That isn't my focus point right now (I will when I get into the event) = I don't get into the tabAccountView_OnSelectionChanged when changing the tab. So I even not get into line 3 when clicking on a tab. I only get into the line 3 when starting the app. I really don't know why it wont get...
  8. S

    Wpf Cann't get into the SelectionChanged event for at tabControl

    Hi I have the following TabControl with TabItems. I need to make som code when the Selection changes to another tab. First time I run the app I am going into the SelectionChanged. But then when choosing a new tab nothing happens at all. I want to go into the code each time, I hit the tabs. What...
  9. S

    I need an exampel for a MVVM with foreign key

    I can have a number of categories that hasn't any project. And I can have projects that hasn't been assigned to any Category
  10. S

    I need an exampel for a MVVM with foreign key

    Hi, Thank you for your answer. Your db layout is that if there is a many to many relationship. That is mine not. I can only have one project to one category. If that isn't the case I can't see, what to do in the VM. In the view I want to show CategoryId, CategoryName and ProjectName (not...
  11. S

    I need an exampel for a MVVM with foreign key

    I have 2 models CategoryModel ---CategoryId ---CategoryName ---ProjectId (this i foreign key) ProjectModel ---ProjectId ---ProjectName Those I don't have problems in making. But now it gets tricky to me. What to do in the VM and also in the View. In the View I have a ListView where the...
  12. S

    Query to find a single object from a single row

    Thank you very much. It works perfect :)
  13. S

    Query to find a single object from a single row

    Yes I know for sure, there is only one CategoryId - it is the primary key for Category :)
  14. S

    Query to find a single object from a single row

    I finally find it out by myself var name = categories.Where(i => i.CategoryId == 0) .Select(row => row.CategoryIsObsolete);
  15. S

    Query to find a single object from a single row

    Hi, I have problems to find the correct syntax to get a single result of a single row. I get the row (categories) and I can see in this row there is a CategoryIsObsolete field (it is that value I want) But when making af FirstOrDefault query the Category result is null - and I do not know why...
  16. S

    Setting SelectedValue doesn't update combobox

    You are most likely right (I'm not so in it at this moment to see it) - I have changed it a little bit - and it works the way I want it to, so the combox also updates the ListView when changing in the combobox and both places changes the SelectedCategory <ComboBox x:Name="CbxProject"...
  17. S

    Setting SelectedValue doesn't update combobox

    A very nice man told me what to do: <ComboBox x:Name="CbxProject" Grid.Row="5" Grid.Column="2" HorizontalContentAlignment="Left" VerticalContentAlignment="Center" ItemsSource="{Binding Path=Projects_GetActive}" DisplayMemberPath="ProjectName"...
  18. S

    Setting SelectedValue doesn't update combobox

    I forgot 2 things; If it just this you can't figure out, I have tried 20-25 different suggestion (when googling the problem) but with no success. That's why I am asking in here because I just doesn't know what to do. <ComboBox x:Name="CbxProject" Text="Projekt" Grid.Row="5" Grid.Column="2"...
  19. S

    Setting SelectedValue doesn't update combobox

    I haven't programmed for many years just started trying again. So the many whys is I don't know - just seen it to been done that in several youtube videos. What I want (don't care how) is that the Listview shows all active Categories. Then I have some controls, so when the user select a row on...
  20. S

    Setting SelectedValue doesn't update combobox

    Hi, I have problems getting the combobox to work. I have a usercontrol with an listview and some controls. Everything works fine, when not using the combobox. Each time I click on one row in the ListView it should show in the controls (textboxes, labels and so on). The list in the listview is...
Back
Top Bottom