|
Glad to hear you got something working. FYI, this seems to work reasonably well too:
<Grid>
<Grid.RowDefinitions>
<RowDefinition></RowDefinition>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="100"></ColumnDefinition>
<ColumnDefinition MinWidth="50"></ColumnDefinition>
</Grid.ColumnDefinitions>
<Grid Grid.Column="0" Background="Black"></Grid>
<Grid Grid.Column="1">
<ScrollViewer HorizontalScrollBarVisibility="Auto"
VerticalScrollBarVisibility="Disabled">
<Grid>
<Grid.RowDefinitions>
<RowDefinition></RowDefinition>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition MinWidth="100"></ColumnDefinition>
<ColumnDefinition Width="103"></ColumnDefinition>
<ColumnDefinition Width="100" />
</Grid.ColumnDefinitions>
<Grid Grid.Column="0">
<ScrollViewer VerticalScrollBarVisibility="Auto">
<ListView Margin="0,0" Name="listView1" SelectionMode="Single" />
</ScrollViewer>
</Grid>
<Grid Grid.Column="1">
<ScrollViewer VerticalScrollBarVisibility="Auto">
<ListView HorizontalAlignment="Stretch" Margin="3 0 0 0"
Name="listView2" SelectionMode="Single" />
</ScrollViewer>
</Grid>
<GridSplitter ResizeBehavior="PreviousAndNext"
ResizeDirection="Columns" Background="Red" Grid.Column="1" Grid.Row="0"
Height="Auto" Width="3" HorizontalAlignment="Left"
VerticalAlignment="Stretch" />
</Grid>
</ScrollViewer>
</Grid>
</Grid>
|
|
|
|
|
Hi there,
I am new to WPF. I have some 2 textboxes and a button on the form. Below these, there is a grid.
My requirement is to resize the grid and realign the controls, according to the size of the window.
Thanks and Regards
-
Sameer
|
|
|
|
|
I think you should learn something about the grid before using it. Check this http://www.wpftutorial.net/GridLayout.html
April
Comm100 - Leading Live Chat Software Provider
modified 27-May-14 8:44am.
|
|
|
|
|
Hi,
I have created a silverlight app with Expression Blend. When I load the XAML into Visual Studio, I can see the designer view of each page. However, the property pane for controls is filled with this error message "Property editing not available". Without the property window, how do I select a specific event that I want to handle?
Thanks,Best,
Jun
|
|
|
|
|
The Expression Blend may add some properties for its designer tool. These properties are not applicable in visual stdio so vs shows error message.
April
Comm100 - Leading Live Chat Software Provider
modified 27-May-14 8:46am.
|
|
|
|
|
Vusual Studio 2008 doesn't allow this. The 2010 version will
|
|
|
|
|
Hi,
I know how to handle either hover or click event on a button control, by setting "ClickMode". What is the XAML code to handle both events? Do I set "ClickMode" twice?
Thanks,Best,
Jun
|
|
|
|
|
It looks that you should set "ClickMode" twice.
April
Comm100 - Leading Live Chat Software Provider
|
|
|
|
|
You cannot set ClickMode twice - you can probable change it through your code (if that is what you meant).Me, I'm dishonest. And a dishonest man you can always trust to be dishonest. Honestly. It's the honest ones you want to watch out for...
|
|
|
|
|
|
Hi Guys,
I found FindResoouce method in Expression blend and working fine.. But when I use the same in VS2008, not working.
What is the issue?Ahamed Azeem
software Programmer
|
|
|
|
|
I searched for FindResource in my 80,000 line WPF application and came up with 323 hits, all of which work. So it definitely works in VS2008. We obviously need more information from you. What does your code look like and where are you storing the resource in your solution?
|
|
|
|
|
Dear Gents,
I am new to WPF.
I have created small animation using rectangle using Microsoft Expression Blend. But when i run the project that animation is not running and the image is as it is on the screen.
Please let me know where i went wrong?
Regards
AzeemAhamed Azeem
software Programmer
|
|
|
|
|
do u think only gents can answer this? Gomathi R
|
|
|
|
|
Gents is the short form of Gentlemens.. ok Ahamed Azeem
software Programmer
|
|
|
|
|
See According to your definition also only Gents answered. Ahamed Azeem
software Programmer
|
|
|
|
|
It sounds like you haven't added the animation trigger anywhere. Take a look, in Blend, at the storyboard and check to see what the trigger event is."WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
Thanks a lot. It is an event trigger and I found the answer. Ahamed Azeem
software Programmer
|
|
|
|
|
Good job "WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
Hi,
We are trying to develop Silverlight forum engine (the first prototype already available http://www.getmessageboard.com/Forum/[^] but I'm still not 100% sure is it good idea at all.
Whould you use something like this on your web site? I really need your advice.
Thank you in advance
|
|
|
|
|
This[^] might help you decide.
Remember that this link discusses SL 2.0 where as SL 3.0 is out now.
More new controls and other excellent features are available in SL3.0.Me, I'm dishonest. And a dishonest man you can always trust to be dishonest. Honestly. It's the honest ones you want to watch out for...
|
|
|
|
|
|
My advice is to create the pages in dotnet. because html rendering is difficult (not available i think) in silverlight.u can embed dotnet in silverlight Gomathi R
|
|
|
|
|
Hi,
I'm using Image control.
I need to change the picture on this control on runtime.
The image that need to be loaded on the Image control is some file that i know his full path.
How can i do it ?
Thanks.
|
|
|
|
|
If you don't want to go down the MVVM route, there's no reason you can't name your image control and update the image directly in your load image handler. Here's an example of how to actually load the image (in C#):
public ImageSource LoadImage(string imageSource)
{
src.BeginInit();
src.UriSource = new Uri(imageSource, UriKind.RelativeOrAbsolute);
src.CacheOption = BitmapCacheOption.OnLoad;
src.EndInit();
return src;
} "WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
HI,
I'm working on a card game and am curious how to design my Card class (each of which are held in a CardDeck class which extends List<Card>. The card is not a typical playing card, instead having a title and description as well as a unique Image on the front.
During play, the cards need to be displayed and moved in a some sort of layout panel. I've created the basic Card object with the following properties:
public string Title
public string Description
public Image CardFront
private Image CardBack
I thought of extending the Card as an Image or as a Viewport. But being new to WPF (and .NET Windows application programming) I'm not sure the best way to implement it.
Thanks,
Chris
|
|
|
|
|
I like to show my forms with silverlight option, is it possible? This is the first time I am trying...
My idea is while the datas are readonly, then the form opening time if we show the silverlight option then the user can easily identify that it cannot be change...
So, Any better guidences...
Thanks...
|
|
|
|