0
votes
3answers
16 views

C# for loop comparing next value with current value

i have this piece of code here , basically i am doing a for loop as i retrieve records from database( using entity framework ) but when i want to compare using if statement theres an error : ...
0
votes
0answers
3 views

WPF create visual programming editor

I have seen this project called blockly. It allows the user to perform programming tasks by using the mouse (a feature that I intend to implement in my application). Are there any libraries such as ...
0
votes
0answers
8 views

how to set keyboard tab selection to a particular control in WPF

I have two text boxes and two buttons...I had written some logic in first text box Lost Focus event.As soon as i click the keyboard tab cursor will blink at second text box..Now i want to select the ...
0
votes
0answers
4 views

Way to access cell (not cell content) in a WPF DataGrid?

I know there is a lot of discussion about access the data in a DataGrid, but my question is can you access the cell itself. I feel like there MUST be a simpler way to change the data, selection, etc. ...
0
votes
0answers
5 views

WPF C# Mouse Dragging , Clone of element dragged

Here are my codes : Label tb1 = new Label(); tb1.Content = qhm.Answer; tb1.FontWeight = FontWeights.Bold; tb1.FontSize = 24; ...
0
votes
1answer
26 views

WPF C# Foreach getting next value

I got a list of records from database that i have retrieve like this in my CRUD class ( i am using entity framework and Model.question is my class which have CRUD codes in it): public ...
0
votes
0answers
27 views

WPF initialization issue

I have a class MyWindow which inherits from Window. Within MyWindow, I have the following method to execute once my OK button is clicked: private void OKButton_Click(object sender, RoutedEventArgs e) ...
0
votes
1answer
25 views

Moving object (pushpin) on map

I am reading a file of moving objects an put them in a dictionary (validMovingObjects). I represent each object as a pushpin on the map (baseMap). When an object changes its location (latitude or ...
0
votes
0answers
10 views

How to track KeyboardFocus of WPF Textbox created in template

I am trying to get an accurate IsKeyboardFocused for a WPF textbox that is being created in a template. I tried attaching to GotFocus and LostFocus and LostKeyboardFocus, but the focus lost is not ...
-1
votes
0answers
40 views

Compatability between .NET 4 Client and Windows XP

I have a compatibility problem. I have written a WPF application in C# using Visual Studio 2012. I want it to be able to run on Windows XP (I have set target framework to 4.0 Client), but all I get ...
2
votes
0answers
32 views

Listview with scrolling background image

I am trying to create a ListView that looks like items sitting on a shelf. I am able to get the shelf background on the list view like so: <ListView.Background> <ImageBrush ...
1
vote
1answer
34 views

Is it possible to override a control's event handler globally?

I have about 3000 checkboxes that I would like to have their "PreviewMouseLeftButtonDown" event handled differently. Is it possible to override the default event handler for all checkboxes globally?
0
votes
0answers
11 views

wpf localization enum from different languages

i want to fill a combobox from enum values by using Localized.resx and Localized.tr-TR.resx under RSP.Model for different languages. but it does not work. my enum: public enum PlanPhase { ...
0
votes
1answer
29 views

how to bind a grid with an object

I am an amateur to windows phone development and also new to wpf. I have a grid : <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0" > <Grid ...
0
votes
0answers
17 views

Is it possible to make a screenshots of a UIElement built in code-behind and not shown?

I would like to know if it is possible to "screenshot" an element without showing it on screen. For example, this StackPanel: private void Button_Click(object sender, RoutedEventArgs e) { ...

1 2 3 4 5 1925
15 30 50 per page