|
Hi,
In my applcaiton,i make Grid of size Grid Width="1300.441" Height="80",
Its working fien in this resolution.But when i changed my resolution to 1152 width,quater of application get out of the desktop.
How can i avoid that?
I want to display full page in all resolution.
Pls help me
Anu
|
|
|
|
|
Anu_Bala wrote: How can i avoid that?
Don't use hard-coded dimensions.
Instead, use an element that sizes the Grid.
For example, if the Grid is the child of a Window element,
you could set the Window's WindowState to Maximized and the Grid
will fill the Window's client area.
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Hi friends,
I am new to silverlight. I have created a silverlight combo with options 'Male' and 'Female', and included it in an aspx page.
Now I want to know, how to retrieve the selected value and selected text in aspx code.
Please help me.
Shivanandan C V
|
|
|
|
|
Shivan Nandan wrote: how to retrieve the selected value and selected text in aspx code.
aspx code runs on the server and Silverlight runs on the client.
You can use javascript on the client to communicate with a
Silverlight plugin.
HTML Bridge: Interaction Between HTML and Managed Code[^]
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
You can use javascript. Detailed info can be found at:
http://pietschsoft.com/post/2008/06/Silverlight-and-JavaScript-Interop-Basics.aspx
April
Comm100 - Leading Live Chat Software Provider
modified 27-May-14 21:45pm.
|
|
|
|
|
Hi,
I have a list of locations, I want to use google map for routing thro' the locations to find the shortest path, get directions and see street view using google API. This a wpf application, I am downloading locations from server.
As far as possible we don't want to use WebBrowser control.
Is there any way to do this? Any help or related link will be greatly appreciated.
Thanks!!
Happy new year
Veena
|
|
|
|
|
|
|
Thanks Mark and Mohammad,
I will study the links.
Veena
|
|
|
|
|
Hey,
I want to make a window with WindowStyle ThreeDBorderWindow transparent. This solution[^] does not work for windows with that WindowStyle
Is this possible, and if so, how?
Cheers!
Jeroen De Dauw
---
Forums ; Blog ; Wiki
---
70 72 6F 67 72 61 6D 6D 69 6E 67 20 34 20 6C 69 66 65!
|
|
|
|
|
jeroen de dauw wrote: Is this possible, and if so, how?
AllowsTransparency can only be used when the WindowStyle is None.
You could use WindowStyle="None" AllowsTransparency="True" and provide
the titlebar and borders yourself.
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Hey,
I'm aware of that, but don't want to go construct my own titlebar, borders and WindowState buttons myself. The approach would be viable if there was an easy way to get all those things onto my window by using some native properties or so, but I guess that's not possible.
Cheers!
Jeroen De Dauw
---
Forums ; Blog ; Wiki
---
70 72 6F 67 72 61 6D 6D 69 6E 67 20 34 20 6C 69 66 65!
|
|
|
|
|
i want to bind images horizontally using datagrid
i don't want to use listbox because i m binding images directly from sql server table on rowbinding event datagrid.
One person's data is another person's program.
--J.Walia
|
|
|
|
|
A list box can be used with an ItemsPanelTemplate tag and a StackPanel to achieve this[^].
If your binding is done correctly, I dont think you should need the rowbinding event of the datagrid.
Use an ObservableCollection to bind to the list box.
There are only 10 types of people in this world — those who understand binary, and those who don't. |
|
|
|
|
|
Hi abhinav
thanks for reply
Actually i m binding images directly from datagrid. for this purpose i am generic handler.
i bind the images to image control on rowbinding event of datagrid.
In listbox i dint find rowbinding event.
http://dotnetcurry.com/ShowArticle.aspx?ID=264
One person's data is another person's program.
--J.Walia
|
|
|
|
|
J walia wrote: Actually i m binding images directly from datagrid. for this purpose i am generic handler.
i bind the images to image control on rowbinding event of datagrid.
So the bindings work but you need to arrange Image elements horizontally?
What are you trying to do once the Image elements have
their bindings?
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
i want arrange image controls horizontally
One person's data is another person's program.
--J.Walia
|
|
|
|
|
J walia wrote: i want arrange image controls horizontally
Grid, StackPanel, Canvas are some elements that can have child
elements arranged horizontally.
<StackPanel Orientation="Horizontal" >
<Image .../>
<Image .../>
<Image .../>
</StackPanel>
For data coming from a collection, you could use an ItemsControl or
derived.
Do you have an example or some details of what you want, or
something you tried that didn't work?
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
but these controls does't have row binding event
One person's data is another person's program.
--J.Walia
|
|
|
|
|
J walia wrote: these controls does't have row binding event
What is a row binding event (what event are you referring to)
and why do you think you need it?
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Hello Mark
Please check this link
http://dotnetcurry.com/ShowArticle.aspx?ID=264
I have used same logic. please help now
i need this badly.
One person's data is another person's program.
--J.Walia
|
|
|
|
|
J walia wrote: I have used same logic.
Thanks.
So you are using the LoadingRow event....so what are you
trying to do in your LoadingRow event handler?
Do you have multiple images per row instead of one like the sample?
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
|
Again, look at the job board. This is not the place to post job opportunities.
|
|
|
|
|
Hi.
I've written the following XAML code for my ListView :
<ListView x:Name="ListView1" Background="#FFEEF3FA" >
<ListView.View>
<GridView>
<GridViewColumn x:Name="GridViewColumnName" Header="Name" Width="200" />
<GridViewColumn x:Name="GridViewColumnTags" Header="Tags" Width="100" />
<GridViewColumn x:Name="GridViewColumnLocation" Header="Location" Width="238" />
</GridView>
</ListView.View>
<ListViewItem>test1</ListViewItem>
<ListViewItem>test2</ListViewItem>
<ListViewItem>test3</ListViewItem>
<ListViewItem>test4</ListViewItem>
<ListViewItem>test5</ListViewItem>
<ListViewItem>test6</ListViewItem>
<ListViewItem>test7</ListViewItem>
<ListViewItem>test8</ListViewItem>
<ListViewItem>test9</ListViewItem>
<ListViewItem>test10</ListViewItem>
</ListView>
You can see the result of above code in this image : http://xs.to/image-CB3E_4B3BAE1D.jpg[^]
I wanna create a ListView with ListViewItem in XAML code like this : http://xs.to/image-7BBC_4B3BB199.jpg[^]
I don't know how I should do it !
Would you please guide me ?
Thanks in advance.
|
|
|
|