Questions tagged as 'wpf'

1
answer

How to select and get the value of a cell in WPF?

[I'm pretty new to WPF] I would like to know how I can obtain the value of a cell or several in WPf, I am currently working on a project and I need to be able to select a cell or several cells and obtain their value. Once this is achieved, I...
asked by 05.03.2018 / 14:27
1
answer

Listview show two fields in each row

Visual Studio Community 2015 + SQLite + Entity Framework The database has 2 fields: ID and ShipType Class for mapping the database: namespace ImperialFleet { public class ShipTypeClass { private string id; private string type;...
asked by 17.11.2017 / 13:23
1
answer

How to achieve shadow effect in Wpf

This is the effect I want to achieve Pd: I have already tried with gradients but I do not get the desired effect. <LinearGradientBrush StartPoint="0,0.1" EndPoint="1,0.10" Opacity=".4" > <GradientStop Color="#7c7c7c" Offset="0....
asked by 31.08.2017 / 22:53
1
answer

How to reuse XAML code

Hi, I'm doing an application in WPF which consists of several pages. Many of which have things in common, such as the same menu bar, a title bar below the menu bar and a scrool viewer which contains all the other controls that differentiates one...
asked by 08.06.2017 / 21:04
2
answers

how to show windows previous to MainWindow the first time the application is opened in WPF c #

I am developing a program in WPF c # where I need to show terms and conditions as well as register user data the first time this opens the app after installing MainWindow is the main window but I have not found a way to determine if it is the...
asked by 14.04.2017 / 08:44
1
answer

How to save the checks from a checkbox to the database?

I developed an application in WPF with C #. I have a window that contains a Combobox where the Items are composed of Checkbox with a foreach result of a table. My question is: How do I keep in the database with LINQ, the checkbox check that are...
asked by 12.12.2018 / 18:55
1
answer

Image animations

Hi, I created a stackpanel where I placed the images located in the same position, what I want is for each image to be shown one by one for 5 seconds. <StackPanel x:Name="derecho" Margin="250,50,40,50"> <Image x:Name="img1"...
asked by 30.12.2018 / 19:58
1
answer

C # Basic Doubt of WPF

I'm starting to study WPF and I have a big doubt my project WPF has a Books class, which has several attributes, let's say an example class libros { string atributo1; string atributo2; string atributo3; } question 1 - to create a boo...
asked by 03.07.2018 / 21:15
2
answers

Delete textbox wpf MVVM

I am trying to delete the text from the textbox after inserting a data in the database. I do everything right except the deletion of the textbox. <TextBlock Text="Blog" Grid.Column="1" Grid.Row="1" Margin="0,0,10,0" ></T...
asked by 14.03.2018 / 10:44
1
answer

WPF Differences between Grid and StackPanel? [closed]

What are the differences between these two containers? I read manuals but I can not see when to use each other ... taking a simple google image of software graphic environment, are the Grids supposed to be marked in yellow and the stack...
asked by 07.12.2017 / 15:00