Questions tagged as 'wpf'

2
answers

How to transform a byte array into an image in WPF?

I have an array of bytes like this: private byte[] m_Frame I need to turn it into an image, but since I'm in a WPF it's not possible to just play a bitmap within a PictureBox because that element simply does not e...
asked by 27.06.2018 / 19:42
1
answer

C # WPF Binding to 2 RadioButtons as a boolean

Good people. <GroupBox Header="Tipo de operação" HorizontalAlignment="Left" Height="55" Margin="10,70,0,0" VerticalAlignment="Top" Width="296"> <Grid x:Name="gridOperationType"> <RadioButton x:Name="radioButtonPlus"...
asked by 20.09.2018 / 17:55
1
answer

How to change background of ImageBrush?

XAML: <TextBox /> <TextBox.Background> <ImageBrush x:Name="image_background" Stretch="Fill" TileMode="None" AlignmentX="Left" AlignmentY="Center" /> </TextBox.Background> </TextBox> C #: (Th...
asked by 30.12.2017 / 03:04
1
answer

Adaptive Storyboard (WPF)

I have an animation in my WPF project and wanted to know if you have the Storyboard to be responsive. As in the settings of Margin and Height / Width are responsive marking the option auto wanted to know if you have how to do this auto style...
asked by 03.10.2017 / 01:39
1
answer

How to change the size of a screen through an event in C # WPF

How can you make a change in the size of a Window in WPF, changing its Heigth and Width and thus increasing and decreasing the screen according to the values reported? For example: I have a button (Increase Screen) and when the event refers to t...
asked by 21.07.2017 / 18:53
1
answer

What are StaticResources and DynamicResources in WPF?

When I use resources in WPF, I can specify them as StaticResource , as DyanamicResource . However, most of the time only one works, and the other would start an exception. From this point, I have the following doubts: What i...
asked by 24.12.2016 / 19:00
1
answer

Picture on the WPF menu with C #

I have a problem, I created an application in WPF, and I put a menu that will have images in the items. When I view the image in VS it is ok, but when I run the application the images do not appear. No source is this way? <Image Source="Ima...
asked by 26.11.2015 / 14:33
1
answer

Doubt with EntityFramework (Migration)

I'm trying to get my code to run, but I'm not getting through this Error    Severity Code Description Project File Line   Error CS0311 The type 'InternalControl.Migrations.InternalControl.IntContext' can not be used as the 'TContext' type par...
asked by 30.09.2015 / 02:44
1
answer

Change the color of a line and deselect a DataGrid

I have a method where I can change the color of a row in my DataGrid. I followed this link: Link The problem is how to take the selection off when it is painted. Type, go back to the original color. I tried the following way: public...
asked by 16.06.2015 / 18:46
1
answer

Adding the RadioButton in the DataGrid at runtime

At some point in the software, I need to populate a DataGrid in runtime. I was able to perform this operation partially. My problem is that even though I enter RadioButton.Content , it just does not display past content. Also, Group...
asked by 03.02.2016 / 18:36