|
Currently, you pretty much need to do that on a server.
AFAIK there's no support for rendering UI elements to a bitmap in Silverlight 2.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Mark is 100 % correct, just grab your data send it to the server using a WCF service, in for instance XML format (just an string), and use any of the well know tools, isharptext I think it's free, then you have tall pdf, ...
HTH
Braulio
/// -------------------------
Braulio Díez
DBSchemaEditor.com
Free Silverlight based DB Schema Modeling Tool
/// -------------------------
|
|
|
|
|
The requirement is to in a tree view there two child nodes dragging the elements of 2 to second child node dynamically.
Ch.Gayatri Subudhi
|
|
|
|
|
Good. So you've got your requirements sorted out. Now, was there a question in there somewhere?
"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
|
|
|
|
|
i m not able to get ur answer.
ch.Gayatri Subudhi
|
|
|
|
|
Ch.Gayatri Subudhi wrote: i m not able to get ur answer.
Probably because you didn't actually ask a question - you only made a statement.
"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
|
|
|
|
|
How to put the drag and drop function in a treeview using asp.net with c#.net.
that dynamically dragging the elements from one node to another in a treeview.
plz give me suggestion.
Wts events are working for that?
Ch.Gayatri subudhi
|
|
|
|
|
You need to capture the mouse down and mouse up events. Drag & drop is not supported directly. If you google drag and drop silverlight, you will find plenty of information.
"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
|
|
|
|
|
|
What? I'm sorry but I didn't understand any of that question. Could you form the words fully please - I don't read text speak, and I ignore questions that are like this. Plus, it's considered bad form to say that it's urgent - if it's that urgent, you should pay for a support call; this is a volunteer only forum.
"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
|
|
|
|
|
|
Try using this sample[^] from Codeplex.
"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
|
|
|
|
|
Hi.
I am getting treview with childnodes but there in visual studio 2005, no such allowDrag prpoerty is there. and i am not getting the events in that aspx page.please help me out.
Ch.Gayatri Subudhi
|
|
|
|
|
Hi
The treeview of asp.net webapplication, with a drag and drop functionality its working .But while running the application but when it done the refreshing its took its original position.Please suggest me what to do for while changing the elements in the child node remain same after refreshing???
Thanks and Regards
Ch.Gayatri Subudhi
|
|
|
|
|
|
Wow... the think that I personally like the most is the Out of Browser feature added .. Its awesome
|
|
|
|
|
Hi,
I have a StackPanel that contains a ListView
<StackPanel>
<ListView x:Name="theList" BorderBrush="{x:Null}" Grid.Column="1" Grid.Row="1" ItemsSource="{Binding PhoneBook.FilteredPhoneBook}" SelectionMode="Extended" Focusable="False" ItemTemplate="{StaticResource PhoneBookPostTemplate}" HorizontalAlignment="Center" ItemContainerStyle="{StaticResource ListViewItemStyle1}" >
....
</ListView>
</StackPanel>
The items in the ListView can be expanded if the want to edit it (the selected items height is then increasing). When the edit is finished I get a white space in the buttom of the list. It looks like the StackPanel has grown when I edit the item.
Example (but the list is vertical..)
Before edit: "X X X X X X"
After edit: "X X X X X X "
Question:
Can I remove the white space without setting OnPropertyChange("ContactBook"), which will repaint the list. The problem is that it takes some time to update the list with OnPropertyChange("ContactBook") since it can be many items in the list.
Regards
Magnus
|
|
|
|
|
marca292 wrote: Example (but the list is vertical..)
Before edit: "X X X X X X"
After edit: "X X X X X X "
From your example, it looks like an extra item is being added to the ListView??
When you fire the OnPropertyChange does it remove the space/item you are mentioning ?
|
|
|
|
|
Hi,
Thanks for quick answer!
In the debugger I can see that the StackPanel.Height is increasing when I edit an item. When the edit is finished the StackPanel keeps this new height. And thats why the list now contains a white space in the end.
Example:
Item X/Y shows this information in the list
Name:...
Address:...
But in edit mode you can type in (now is the stackpanel.Height increasing since the item contains more information, this is what I try to show with YYY)
Name:...
Address:...
Member id: ...
Gender: ...
Before edit: "X X X X X Y"
Edit: "X X X X X YYY"
After edit: "X X X X X Y "
Yes when I fire OnPropertyChange the white space is removed. But is there another way to decrease stackpanel.Height? It takes to much time to update the list with OnPropertyChange.
|
|
|
|
|
|
Yes but it did not solve the problem.
modified on Thursday, March 19, 2009 4:32 AM
|
|
|
|
|
Can you share the ItemTemplate and ItemContainerStyle ? What is your datasource -a List, ObservableCollection?
|
|
|
|
|
The email got filtered too. Set the Ignore HTML tags checkbox while posting the message.
|
|
|
|
|
My datasource is a generic List.
<DataTemplate x:Key="PhoneBookPostTemplate">
<Grid Name="grid" Margin="0,5,5,5" Width="200" KeyboardNavigation.TabNavigation="Cycle">
<Rectangle Name="background" Stroke="Gray" Fill="{Binding Customization.SMSPhoneBookContactColor}" Opacity="0.4" RadiusX="10" RadiusY="10" />
<StackPanel Margin="5" >
.....
</StackPanel>
</Grid>
<DataTemplate.Triggers>
<DataTrigger Binding="{Binding IsEditing}" Value="true">
<Setter TargetName="noEdit" Property="Visibility" Value="Collapsed" />
<Setter TargetName="isEdit" Property="Visibility" Value="Visible" />
<Setter TargetName="editButton" Property="Visibility" Value="Collapsed" />
<Setter TargetName="saveButton" Property="Visibility" Value="Visible" />
<Setter TargetName="cancelButton" Property="Visibility" Value="Visible" />
<Setter TargetName="deleteButton" Property="Visibility" Value="Collapsed" />
</DataTrigger>
</DataTemplate.Triggers>
</DataTemplate>
<Style x:Key="ListViewItemStyle1" TargetType="{x:Type ListViewItem}">
<Style.Triggers>
</Style.Triggers>
<Setter Property="Template" Value="{DynamicResource ListBoxItemControlTemplate1}"/>
</Style>
<ControlTemplate x:Key="ListBoxItemControlTemplate1" TargetType="{x:Type ListBoxItem}">
<Border Focusable="False" SnapsToDevicePixels="True" x:Name="Bd" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Padding="{TemplateBinding Padding}">
<Grid>
<Rectangle Name="selectedBoreder" Stroke="{x:Null}" Fill="{Binding Customization.SMSSelectionBorder}" Margin="1" Opacity="0.4" RadiusX="10" RadiusY="10" Visibility="Collapsed" />
<ContentPresenter Focusable="False" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Content="{TemplateBinding Content}" ContentStringFormat="{TemplateBinding ContentStringFormat}" ContentTemplate="{TemplateBinding ContentTemplate}"/>
</Grid>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsSelected" Value="True">
<Setter Property="Visibility" TargetName="selectedBoreder" Value="Visible"/>
<Setter Property="Background" TargetName="Bd" Value="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}"/>
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.HighlightTextBrushKey}}"/>
</Trigger>
<MultiTrigger>
<MultiTrigger.Conditions>
<Condition Property="IsSelected" Value="True"/>
<Condition Property="Selector.IsSelectionActive" Value="False"/>
</MultiTriggerrvfbis.Conditions>
<Setter Property="Visibility" TargetName="selectedBoreder" Value="Visible"/>
<Setter Property="Background" TargetName="Bd" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"/>
</MultiTrigger>
<Trigger Property="IsEnabled" Value="False">
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
|
|
|
|
|
I have run into a similar issue before and I think it was solved with a call to InvalidateMeasure().
|
|
|
|