Issue I just started learning WPF, and a problem arose. X:Static does not display the value from the .resx file, just writes the line itself. There are no errors in the console. <TextBlock VerticalAlignment="Center" Padding="15, 0, 0, 0" FontSize="39.75" FontFamily="{StaticResource
Continue readingTag: wpf
[SOLVED] Opening child window in WPF MVVM pattern – correct solution?
Issue I was struggling with opening new window in MVVM pattern without violating it’s rules for a month. I have read I think every post here and watch every video about this, but as a amateur programmer I did not
Continue reading[SOLVED] listbox does not contain a definition for 'Selected'
Issue I have this code in C# wpf page listBox1.Items[i].Selected = !listBox1.Items[i].Selected; and it produce this error: Error CS1061 ‘object’ does not contain a definition for ‘Selected’ and no extension method ‘Selected’ accepting a first argument of type ‘object’ could
Continue reading[SOLVED] Globally accessible style in class library
Issue I have a class library where I’m defining (basically extending) some controls such as TextBox, Button etc. I’m also using MaterialDesignInXamlToolkit which is used to stylize controls. So my class library will essentially have controls with my own extended
Continue reading[SOLVED] How to change Listview default text color?
Issue How i could change the default text color of this ListView? default is black, i couldnt find a "text color" option under the properties window (visual studio). <ListView Name="LV" Grid.Row="2" HorizontalContentAlignment="Stretch" FocusManager.IsFocusScope="True" MouseDoubleClick="LV_MouseDoubleClick" ScrollViewer.ScrollChanged="LV_ScrollChanged" Foreground="White" BorderBrush="#FFABADB3" Background="Black"> <ListView.Resources> <Style
Continue reading[SOLVED] DataGrid is updating itself in realtime and holding unsaved changes
Issue I have a problem with DataGrid and after week trying to solve this I am out of mind. I am using Prism.MVVM to handle loading properties, INotifyPropertyChanged etc. My datagrid is being populated from database (EF) by of course
Continue reading[SOLVED] WPF Datagrid does not fill the entire height and width when maximizing window
Issue My DataGrid is not taking the whole space when I maximize the window in my WPF application. This is how I created the layout: <Grid> <Grid.RowDefinitions> <RowDefinition Height="Auto" /> </Grid.RowDefinitions> <Grid.ColumnDefinitions> <ColumnDefinition Width="Auto" /> <ColumnDefinition Width="Auto" /> </Grid.ColumnDefinitions> <Grid
Continue reading[SOLVED] gRPC erros in WPF .NET Core
Issue I want to create a simple WPF Core, gRPC project. This "code" works perfectly in my .NET Core Console app, however WPF seems to be something special. Proto File syntax = "proto3"; option csharp_namespace = "MyProtoNamespace"; package greet; //
Continue reading[SOLVED] XAML TextBlock and Run binding
Issue I have a problem where the binding of the Run does not work. Here’s my current code. <TextBlock x:Name=”txtCompanyName” Text=”{Binding Path=SelectedItem.CompanyName, ElementName=lbSourceList}” Foreground=”White” FontSize=”18.667″ Height=”33.667″ Margin=”10,-0.5,0,-1.5″> <Run Text=” : ” Foreground=”White”/> <Run Text=” “/> <Run Text=” ” Foreground=”White”/> <Run
Continue reading[SOLVED] Apply animation to ModelVisual3D in storyboard
Issue I have a ModelVisual3D. I would like to animate its position in a Viewport3D. I have gotten the code to work with a BoxVisual3D (from HelixToolkit), but the code doesn’t work for my ModelVisual3D. The ModelVisual3D should translate along
Continue reading