TheOneAndOnly
TheOneAndOnly
CC#
Created by TheOneAndOnly on 12/10/2023 in #help
Local and world position changing
Is that not correct than?
7 replies
CC#
Created by TheOneAndOnly on 12/10/2023 in #help
Local and world position changing
I though that I read that if you change the position of the child object that the parent object moves along
7 replies
CC#
Created by TheOneAndOnly on 12/10/2023 in #help
Local and world position changing
The child object moves to the new position best the rest does simple not
7 replies
CC#
Created by TheOneAndOnly on 11/9/2023 in #help
❔ How to bind data to a listbox that doesnt come out of a database?
Will try to make it a observable and hope that works than
25 replies
CC#
Created by TheOneAndOnly on 11/9/2023 in #help
❔ How to bind data to a listbox that doesnt come out of a database?
Fair enough
25 replies
CC#
Created by TheOneAndOnly on 11/9/2023 in #help
❔ How to bind data to a listbox that doesnt come out of a database?
C#
public IdeologiesWindow(MenuWindow menu)
{
this.menu = menu;
data = menu.projectData;
settings = menu.settingData;
InitializeComponent();
}
C#
public IdeologiesWindow(MenuWindow menu)
{
this.menu = menu;
data = menu.projectData;
settings = menu.settingData;
InitializeComponent();
}
InitializeComponent is run as last shouldnt that assure that the list is defined before binding?
25 replies
CC#
Created by TheOneAndOnly on 11/9/2023 in #help
❔ How to bind data to a listbox that doesnt come out of a database?
But it still doesnt work
25 replies
CC#
Created by TheOneAndOnly on 11/9/2023 in #help
❔ How to bind data to a listbox that doesnt come out of a database?

<Window x:Class="LOTRModdingProgram.Windows.IdeologiesWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:LOTRModdingProgram.Windows"
mc:Ignorable="d"
Title="IdeologiesWindow" Height="850" Width="1200">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="79*"/>
<RowDefinition Height="756*"/>
</Grid.RowDefinitions>
<ListBox x:Name="list_ideologies" Margin="0,0,1031,10" Grid.RowSpan="2" DisplayMemberPath="name" ItemsSource="{Binding data.ideologies}"/>
</Grid>
</Window>

<Window x:Class="LOTRModdingProgram.Windows.IdeologiesWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:LOTRModdingProgram.Windows"
mc:Ignorable="d"
Title="IdeologiesWindow" Height="850" Width="1200">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="79*"/>
<RowDefinition Height="756*"/>
</Grid.RowDefinitions>
<ListBox x:Name="list_ideologies" Margin="0,0,1031,10" Grid.RowSpan="2" DisplayMemberPath="name" ItemsSource="{Binding data.ideologies}"/>
</Grid>
</Window>
25 replies
CC#
Created by TheOneAndOnly on 11/9/2023 in #help
❔ How to bind data to a listbox that doesnt come out of a database?
Its only this
25 replies