|
salon wrote: I don't want to load the entire xaml file and store it.
Right. I stated the article may have the info you need.
You need a Style object from the XAML. That means the XAML has to be parsed - see the article.
What are you trying to achieve that wouldn't be simpler with a few lines of code
to create a Style dynamically?
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
hi friends
I am using sliverlight2 toolkit but it give the Error at loading time
Error:-Sys.InvalidOprationException.ManageRunTimeError error #4004 in control 'Xaml1'............................
Thanks
Piyush Vardhan Singh
p_vardhan14@rediffmail.com
http://holyschoolofvaranasi.blogspot.com
http://holytravelsofvaranasi.blogspot.com
|
|
|
|
|
Problem in Control(Combobox) just delete the Item of The comboBox.........................
Piyush Vardhan Singh
p_vardhan14@rediffmail.com
http://holyschoolofvaranasi.blogspot.com
http://holytravelsofvaranasi.blogspot.com
|
|
|
|
|
Hi,
I have a listview as below:
<br />
<Window x:Class="Practice.WPF.ListViewTest"<br />
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"<br />
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"<br />
Title="ListViewTest" Height="300" Width="75" Closed="Window_Closed"><br />
<br />
<ListView x:Name="listView" ScrollViewer.IsDeferredScrollingEnabled="True" VirtualizingStackPanel.IsVirtualizing="True"><br />
<ListView.View ><br />
<GridView ><br />
<GridViewColumn Header="Id" DisplayMemberBinding="{Binding Path=Id}"></GridViewColumn><br />
<GridViewColumn Header="Name" DisplayMemberBinding="{Binding Path=Name}"></GridViewColumn><br />
<GridViewColumn Header="Price" DisplayMemberBinding="{Binding Path=Price}"></GridViewColumn><br />
<GridViewColumn Header="Date" DisplayMemberBinding="{Binding Path=Date}"><br />
</GridViewColumn><br />
<GridViewColumn Header="Quantity" DisplayMemberBinding="{Binding Path=Quantity}"></GridViewColumn><br />
</GridView><br />
</ListView.View><br />
</ListView><br />
</Grid><br />
</Window><br />
The problem is when there is no data bound to the listview the horizontal scrollbar disappears, and the Headers get cut off. I want the horizontal scrollbar to be still visible.
(My requirement may sound weird, but i want this functionality for a listview which displays streaming numerical data and has filters on column headers. Sometimes the filter condition does not satisfy any of the rows so the listview becomes empty and horizontal scrollbar disappears. Now some of the columns will get cut off and the user cannot scroll to that column and clear the filter.)
ANy ideas how i achieve this.
Pankaj Chamria,
Software Programmer.
|
|
|
|
|
Take a look at this Link[^]
|
|
|
|
|
Thanks for your reply.
I looked at the Link. However the solution of having two scrollbars for header and content is an overkill and quite complex [at least for a beginner like me ].
I have handled the problem by allowing the user to reset all the filters using a workaround, to get back the data and with it the scrollbars.
Pankaj Chamria,
Software Programmer.
|
|
|
|
|
Appreciate your reply. Good to know you will have happy users now
|
|
|
|
|
hi Friends
how assign theme in silverlight2?(How to work with theme in silver light2) Please Help me.
Thanks
Piyush Vardhan Singh
p_vardhan14@rediffmail.com
http://holyschoolofvaranasi.blogspot.com
http://holytravelsofvaranasi.blogspot.com
|
|
|
|
|
Install toolkit of silver light and add reference of Theme and add tag on XAML page
xmlns:shinyRed="clr-namespace:System.Windows.Controls.Theming;assembly=System.Windows.Controls.Theming.ShinyBlue"
and add all the control between this tag:-
(shinyRed:ShinyBlueTheme) (/shinyRed:ShinyBlueTheme)
|
|
|
|
|
Got it working?
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
ya It s working
Piyush Vardhan Singh
p_vardhan14@rediffmail.com
http://holyschoolofvaranasi.blogspot.com
http://holytravelsofvaranasi.blogspot.com
|
|
|
|
|
Hi.
Do we have a TreeView control in WPF ?
|
|
|
|
|
|
And , could we change its template ?
|
|
|
|
|
Yes, everything is WPF can be dissected.
See here[^] and here[^]
|
|
|
|
|
|
|
Do you ever get the feeling that this is our forum now?
"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
|
|
|
|
|
It more of 'you', I just chip in.
I would love it to be as popular as the C# forum (offcourse without the "codes plzz","urgentz plz" spoil sports)
|
|
|
|
|
I prefer the way this forum runs. While there are a couple of bonehead questions, in general the people in this forum ask better questions.
ABitSmart wrote: It more of 'you', I just chip in.
Not so - you've answered a lot of questions with some quality. Question - do you blog about WPF at all?
"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
|
|
|
|
|
Pete O'Hanlon wrote: in general the people in this forum ask better questions.
yes,that's very true
My blog is down currently (well 3 months now). Was having issues with my host providers. Hoping to resolve it and startup again.
|
|
|
|
|
Let me know when you do - you're active and visible promoting WPF. Your Disciples may just need you.
"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
|
|
|
|
|
Sure. You have really made me feel proud. Thanks a lot Pete
|
|
|
|
|
Hi, I am new to silverlight. Can anybody tell what is the use of silver light in Asp.net?
|
|
|
|
|
SilverLight is something like Flash, but with power of .NET
you could find further information here[^]
|
|
|
|