|
Using a grid as a data entry tool bleh!
We use telerik and they have an edit on focus attribute, getting t it pragmatically probably involve walking the visual tree!
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Hi,
I have three image buttons close,minimize and maximize .The functionalities works fine as per the standard . Now my problem is when the current window is fully fixed to our screen window then the restore button image has to be visible not maximize button. In my screen in both the normal and fixed window only maximize button is highlighting , I want to restore image button when the window is fully fixed to screen.
|
|
|
|
|
You don't say if you are using MVVM or not so I can't be more specific. However, you want the content property of the maximize/restore button. Assigning that property to the two different images will change what is shown. It is a dependency property so you could bind it to a property on a viewmodel if you are using MVVM.
The window itself has a WindowsState property which indicates what the current window state is, minimized, normal, maximized. You can inspect that property to determine what state the window is in and set the button content appropriately. I think the window state property is a dependency property in WPF too so you should be able to bind it to a property on a ViewModel and set the button content within the property setter. If not, (and I could be wrong about it being a DP) you would hook the Resize event on the window and deal with it there.
HTH!
|
|
|
|
|
Hi,
I have one XAML file window in that i have added two stack panel Stkpanel1 and StkPanel2. And I have added the content in both the panels . Now I want to add the sliding panel in StkPanel1. I need StkPaanel2 should be fully covered in the window and small symbol should be there when we click on it the stkPanel1 should be open and show its content.
It should be just like Visual studio where we can click on the solution explorer it will be visible or else it it will close and bind in the corner.
Thanks in advance . Your replies will be more helpful for me.
|
|
|
|
|
You are telling us what you have and what you want, you are not asking a question. Do some research to find the best methods of achieving what you want then try them. Ask questions when you come up agaist something we can help with.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
If you want to mimic the behavior in Visual Studio, you will need a third-party library that has a dock panel control and a dock container control. I think Sync Fusion and Telerik both have these in their WPF and SL toolkits.
Alternately, you could put both stack panels inside of a splitter. Then manage the split and the visual representations in code. The user would not be able to rearrange the panels in this case like they could with the dock panels but you would be able to "hide" either panel to it's respective side.
HTH!
|
|
|
|
|
I make Silverlight application and i want to use silverlight application from Android devices so what is the Procedure for that.
how i connect Silverlight and Android?
|
|
|
|
|
SwapnilSinnar wrote: how i connect Silverlight and Android
AFAIK you don't.
There is no unified platform/development tool across the various OS flavours.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Xamarian's tools will get you as close to it as you can get. As Mycroft mentions, there is no cross-platform toolset.
Xamarian and Marmalade are both cross-platform mobile toolkits but they implement their own API. Xamarian is based on Mono which is a Linux version of the .Net framework. The nice thing there is you are working in C# even through you are using the Xamarian API's. Maramalade is the same in that you use their tools and they cross-compile for the different platforms. Marmalade I think has the edge on the number of supported platforms right now.
On the upside, any web services you wrote for your app can be consumed on either of these platforms!
HTH!
|
|
|
|
|
Im working on a EPG (Electronic Program Guide) were I need channels to be shown verticaly, and the programs of each channel horizontaly. It's basicly a Vertical ItemsControl containing Horizontal ItemsControls witch displays labels of different sizes. It looks something like this:
http://img401.imageshack.us/img401/1623/epgtimeline.png[^]
Im virtualizing the vertical list so that only 10 channels are created but with 500 programs (labels) on each channel gives me a total of 5000 - witch is way to many - I need to virtulaze the horizontal view to!
The problem I have is that the scrollviewer won't accept the offset that I set, it's beeing modefied (OnScrollChanged beeing called 2-3 times with small adjustments). I found a workaround by using BringIntoView instead, witch for some reason work. But I need to syncronize the scrollviewer with all 10 channels, and then I need to use SetHorizontalOffset again. Note that I use Pixel scrolling and that this behavior dosent exist using ordenary StackPanel.
What I'm wondering is if someone knows why the scroll of a virtulazingstackpanel is beeing changed, or if it's possible to only use one horizontal scroll for all (viewable) channels.
I'm open for any suggestions, this issue has bothering me for over a week now.
btw, the code looks like so (each Channel has a collection of Programs):
<ItemsControl Name="lwChannels"
ItemsSource="{Binding ElementName=userControl, Path=Channels}"
FocusVisualStyle="{x:Null}"
ScrollViewer.CanContentScroll="True"
VirtualizingPanel.IsVirtualizing="True">
<ItemsControl.Template>
<ControlTemplate>
<UI:ScrollviewerX HorizontalScrollBarVisibility="Disabled"
VerticalScrollBarVisibility="Hidden">
<ItemsPresenter />
</UI:ScrollviewerX>
</ControlTemplate>
</ItemsControl.Template>
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<VirtualizingStackPanel Orientation="Vertical" IsItemsHost="True" />
</ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
<ItemsControl.ItemTemplate>
<DataTemplate>
<!--
<ItemsControl ItemsSource="{Binding Programs}"
Height="{Binding ElementName=userControl, Path=RowHeight}"
ScrollViewer.CanContentScroll="True"
VirtualizingPanel.IsVirtualizing="True"
VirtualizingPanel.ScrollUnit="Pixel">
<ItemsControl.Template>
<ControlTemplate>
<UI:ScrollviewerX HorizontalScrollBarVisibility="Hidden"
VerticalScrollBarVisibility="Disabled"
PreviewKeyDown="OnScrollViewerPreviewKeyDown"
ScrollChanged="ScrollviewerX_ScrollChanged" >
<ItemsPresenter />
</UI:ScrollviewerX>
</ControlTemplate>
</ItemsControl.Template>
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<VirtualizingStackPanel Orientation="Horizontal" IsItemsHost="True"/>
</ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
<ItemsControl.ItemTemplate>
<DataTemplate>
<!--
<Label Content="{Binding Path=Title}"
BorderThickness="2"
MouseDown="OnProgramMouseDown"
Initialized="OnProgramInitialized"/>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
|
|
|
|
|
Sollie, unfortunately I don't think this is going to go well for you. The advert would be considered as spam, and as you haven't provided a corporate email address, it's hard to see how anyone will take this offer seriously.
|
|
|
|
|
I have a code in wpf
<inkcanvas name="inkCanvas" background="LightYellow" editingmode="Ink">>
I want to confine mouse cursor to this inkcanvas on loading the file
Any. Help
|
|
|
|
|
HI,
I had a requirement that pins in Map can be dragged and dropped into another form . But when iam trying to drag and pin from Map Drag Start and Drag Stop events are not getting fired where as for another C1datagrid forms it works . Can any one show a solution how to fire events for a MapControl.
I kept the below in pinimage leftKeyDown Event.
Private mDragDrop As C1.Silverlight.C1DragDropManager
Public WriteOnly Property DragDrop As C1.Silverlight.C1DragDropManager
Set(ByVal value As C1.Silverlight.C1DragDropManager)
mDragDrop = value
AddHandler mDragDrop.DragStart, AddressOf DragDrop_DragStart
End Set
End Property
mDragDrop.ClearSources()
mDragDrop.SourceMarker.Background = New SolidColorBrush(Colors.Transparent)
mDragDrop.SourceMarker.Height = 50
mDragDrop.SourceMarker.Width = 250
mDragDrop.SourceMarker.BorderThickness = New Thickness(0)
Dim RowPresenter As New C1.Silverlight.DataGrid.DataGridRowPresenter
If RowPresenter IsNot Nothing Then
RowPresenter.DataContext = sender.datacontext
mDragDrop.RegisterDragSource(RowPresenter, DragDropEffect.Copy, Nothing)
End If
if iam trying to drag a pin from Map, the Events in Gantt form "DragDrop_DragStart" & "DragDrop__DragOver" are not getting fired.
and Map is moving instead of pin Can you show me solution how i can drag and Drop pin and where i need to keep that code to drag pin.
Is this Drag and Drop supports for Maps ?
|
|
|
|
|
Hi All
I want display the maximum windows appears top of taskbar .
i do:
WindowState="Maximized"
But I do not know how to appear window top of the taskbar in wpf!
I'm grateful for your guidance
|
|
|
|
|
Do some research into "Kiosk" applications.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
A combination of WindowStyle="None" and WindowState="Maximized" will give you a full-screen application. However, your window won't have a title-bar, so it won't have the restore, minimize or close buttons. You'll need to provide some other way for the user to close the application.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Hi Team,
Below i faces issues in String using RichText box control
for example :
Hi Welcome website like www.google.com and visit this site lot of things
when i bind this strings in our RichText box control , unable show mid word like hyberlink (www.google.com)
please give your suggestion and needful
thanks
senthil
|
|
|
|
|
I have silverlight application. I am using MVVM pattern for binding. Data interaction with client using RIA services through entity framework. I have entities with relationship so for fetching parent child data mostly I use include in LINQ. Actually loading is slow on client side so please any best possible optimization according to my model will be welcome and thank you in advance.. Also please guide me using "include in LINQ" is good practice or not??
Regards,
Naveed
|
|
|
|
|
Hi All,
I have a wpf usercontrol listview with checkboxes.
When I sort items on this listview by clicking any of the column of the listview, the checkboxes will be unselected.
I am using ListCollectionView's cutomsort property.If I have selected more than two items then after sorting
only one item will be selected and remaining checkboxes will be unselected.
I am fully confusion who is making them to unselect the checkboxes after sorting.
Can any one can help me for solving this issue?
|
|
|
|
|
Cold we see the code that does the sorting, and I assume that the checkboxes are binded no?
|
|
|
|
|
Hi yes checkboxes are binded.
|
|
|
|
|
Hi, i'm trying to make a menu toggle (WPF), jquery animate toggle mouseOver mouseOut, but i can not. Where should i start ?!!
tnks.
I used
ThicknessAnimation
modified 31-Jul-13 18:37pm.
|
|
|
|
|
You will need to restyle the menu control to suit your needs (xaml equivalent of CSS).
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
<pre lang="asm">hi i am developing wpf application using mvvm pattern.
My question is --- in my view i have a button .if i mouse enter on that a pop will show list of applications sharing with other users(i am hard coding that with 10 strings) . my requirement is i have 10 items in popup. by default on starting of application . the first item should be isenabled =false,opacity=0.4,foreground=white and remaining items isenabled= true and opacity=1,foreground=white and if click on other items (means from 2-10) the first item foreground should be red and opacity=1,isenabled=true, and later if user clcik on first listboxitem the first listbox item should change to foreground =white,opacity=0.4,isenabled-false. if possible can any budy share some working solution!!!</pre>
|
|
|
|
|
We have an application made in WPF were the main page has the "topmost" property set to true. It is a business requirement that this app runs on top of each others.
When running it alone it works as expected.
When running it in combination with a Task Manager as "Allways on top" set with focus on WPF app still fine.
Once you switch from the WPF app to focus the Task Manager, the WPF goes behind Task Manager (would expect that as well)
But, when you switch to another after that operation (an open Excel sheet for example), the WPF app disappears behind the Excel.
This is only after updgrade to Windows 7. On XP worked just fine.
Any idea would be welcome.
The signature is in building process.. Please wait...
|
|
|
|