Is it possible to do something like this:
<ListBox>
<ListBox.ItemsPanel>
<ItemsPanelTemplate>
<Grid />
</ItemsPanelTemplate>
</ListBox.ItemsPanel>
<ListBox.ItemTemplate>
<DataTemplate>
<TextBox Text="{Binding Text}" Grid.Column="{Binding Colu...
Hello,
I'm trying to replace the content of a WPF grid control by another WPF grid defined in a second XAML file in code (c#).
(simplified example)
Window1.xaml:
<Window x:Class="Demo1.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Window1" Heigh...
This question is related to my previous question http://stackoverflow.com/questions/2376027/how-to-generate-cartesian-coordinate-x-y-from-gridbaglayout
I have successfully get the coordinate of each pictures, however when I checked the coordinate through (System.out.println) and the placement of the images on the screen, it seems to be ...
I have a WPF form, I want to lay out a standard form onto it. Each form element will have a label, and then a control. Pretty standard stuff.
If I use a wrap panel, it can cause the label and the control to be separated, but I want them to stay together. is there some WPF equivalent of nobr?
Grid works, and allows for column spanning ...
Hi,
I have TabPanel which contains, among other things, a Grid connected to a Store.
Several events may remove elements from the store.
I would like the Grid to be removed from the TabPanel when the store is empty and, possibly, to have a single place in my code to check for this event.
I thought about using store listeners, but unfo...
I know there's No DataGridView in the CF, but I've got a collection of in-memory objects that I want to display in a grid on a phone.
Options I have thought of:
Stick all the objects into a SQL-CE database and use a bound datagrid. This'll mean pulling my classes apart and separating the data from the functionality, which may or may n...
i want to set a DVB-TTYogesh Normal (true type) font to grid.
for that i added the following to grid,
style:'font-family:DVB-TTYogesh'.
but the data in the grid still show "pcmcÁÖß´Ö.³ÖÖêÃÖ»Öê" like this and i want it
in actualform
...
how to set style to grid so that it display font-family
i am tring like this
style: {'font-family': 'Brush Script MT',
'font-weight': 'bold'
}
but result does not show according to it.
and i m also trying
style:'font-family:Brush Script MT;
font-size:300px',
but it also not show the result according to i...
I have a Grid which contains an Image in one of its columns. The image itself does not have any Width or Height set, but its size is correctly controlled through the ColumnDefinition set. From this I would assume that the image controller actually has a Width and Height set, but when I try to bind another element to its Width and Height ...
I want to save grid columns as rows in db. Please see the following image.
Columns 'Full Package' is saved as row in db but I have make it as column. 'Package for 1' is new record, each Event Member must be saved as individual record in db. There might be more columns like this.
I need to save/update records in one go.
Thanks.
...
When I run the following Silverlight app, it gives me the error:
AG_E_PARSER_BAD_PROPERTY_VALUE [Line:
12 Position: 35]
I've tried the same code in WPF and it runs fine, i.e. the middle grid row correctly resizes based on the bound value.
What do I have to change in this code to avoid this error in Silverlight?
XAML:
<UserCont...
Hi
I've developed a custom widget (a persian calendar consist of a base textbox & image widget on a gwt grid which look likes smartgwt calendar) & putted it in a CanvasItem because i want to add it as a filter editor for a listGrid :
ListGridField regDateTimeField = new ListGridField("regDateTime", تاریخ و زمان", 120");
regDateTimeField...
Here is the code I have and wondered how I could completely rollup the stack, expander and objects within it to push all objects below it to take up the space left after rolling up the upper stack and objects. My current code is below:
<Grid>
<StackPanel Margin="8,8,0,0" VerticalAlignment="Top" Height="225">
<Expander Header="Expand...
How do you make a grid width 100% inside a canvas? Here's some simple XAML but it doesn't work as expected.
<Canvas Background="MediumSlateBlue" Width="Auto" Height="Auto" >
<Grid x:Name="LayoutRoot" MouseMove="MainPage_MouseMove" Background="Beige" >
<TextBlock x:Name="lblDisplay" Height="24" HorizontalAlignment="Right" Ver...
Hi,
I'm trying to create a dynamic grid using Extjs. The grid is built and displayed when a click event is fired then an ajax request is sent to the server to fetch the columns, records and records definition a.k.a Store Fields. Each node could have different grid structure and that depends on the level of the node in the tree.
The on...
Hi,
I am trying to show/load different editor on different rows of a editorgridpanel. Like a textbox on one row combobox/superboxselect on another and it could be any order, random.
The conditions which dictate which editor will be shown reside in the database.
Please tell me if this is possible and if so, how do i go about it.. I have ...
I'm sure there's a clean way to do this, but I'm probably not using the right keywords for find it.
So let's say I have a grid. Starting from a position on the grid, return all of the grid coordinates that fall within a given distance. So I call something like:
getCoordinates( currentPosition, distance )
And for each coordinate, star...
Hi,
I have placed Telerik MVC grid in form.but it it giving me followin problem.
if i edit any row and then click update,then control goes to select method instead of update method of the controller.
can you please suggest me any solution?
Thanks,
Makarand Salvi
...
Hello, I am beginning with ExtJS. I am trying to read a value from a cell that is selected
I use an EditorGrid and the store looking like that :
my_store = new Ext.data.JsonStore({
root: 'topics',
totalProperty: 'totalCount',
idProperty: 'details_id',
fields: [
{name : 'index', type : 'int'},
{name ...
Seen various examples of WPF applications I've seen the use of the Grid control for almost anything, even simplest things with only 1 column or row.
Also, the WPF templates start with an empty grid.
For me, using StackPanel or DockPanel is less verbose and are better for maintenance (think adding a row later and having to add +1 to all...