|
When a tab is selected, I get a line (the border of the tab control) under the tab. I want to get rid of the line between the tab content and the tabitem. This probably has something to do with the templates I'm using, but I'm not sure what I can do to address the issue. I looked around to see if you could set the color for a border on a side-by-side basis, but it doesn't look like you can. Can anyone help?
Here is my resource dictionary xaml file (in it's entirety - big text alert):
<ResourceDictionary
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mscorlib="clr-namespace:System;assembly=mscorlib"
>
<Style x:Key="StyleUDPBaseRepeatButton" TargetType="{x:Type RepeatButton}" >
<Style.Triggers>
<Trigger Property="IsEnabled" Value="false">
<Setter Property="Opacity" Value="0.40" />
</Trigger>
</Style.Triggers>
</Style>
<Style x:Key="StyleTabControlRepeatButton" TargetType="{x:Type RepeatButton}" BasedOn="{StaticResource StyleUDPBaseRepeatButton}" >
<Setter Property="Template">
<Setter.Value>
<ControlTemplate>
<Border CornerRadius="13" />
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<!-- ======================================================================================================== -->
<!-- Scroller buttons for scrolling tabs -->
<Style x:Key="StyleButtonTabScrollRepeatPrev" TargetType="{x:Type RepeatButton}" BasedOn="{StaticResource StyleTabControlRepeatButton}" >
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type RepeatButton}">
<Image Source="/CometResources;component/Images/GlassPrevTab64.png" />
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="StyleButtonTabScrollRepeatNext" TargetType="{x:Type RepeatButton}" BasedOn="{StaticResource StyleTabControlRepeatButton}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type RepeatButton}">
<Image Source="/CometResources;component/Images/GlassNextTab64.png" />
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<!-- TabItem with rounded corners -->
<ControlTemplate TargetType="TabItem" x:Key="UDPTabItem">
<Grid SnapsToDevicePixels="True">
<Border BorderThickness="1,1,1,0"
Padding="{TemplateBinding Control.Padding}"
BorderBrush="{TemplateBinding Border.BorderBrush}"
Background="{TemplateBinding Panel.Background}"
Name="Bd"
CornerRadius="4,4,0,0" >
<ContentPresenter RecognizesAccessKey="True"
Content="{TemplateBinding HeaderedContentControl.Header}"
ContentTemplate="{TemplateBinding HeaderedContentControl.HeaderTemplate}"
ContentStringFormat="{TemplateBinding HeaderedContentControl.HeaderStringFormat}"
ContentSource="Header"
Name="Content"
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
SnapsToDevicePixels="{TemplateBinding UIElement.SnapsToDevicePixels}" />
</Border>
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="UIElement.IsMouseOver">
<Setter Property="Panel.Background" TargetName="Bd">
<Setter.Value>
<LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
<LinearGradientBrush.GradientStops>
<GradientStop Color="#FFEAF6FD" Offset="0.15" />
<GradientStop Color="#FFD9F0FC" Offset="0.5" />
<GradientStop Color="#FFBEE6FD" Offset="0.5" />
<GradientStop Color="#FFA7D9F5" Offset="1" />
</LinearGradientBrush.GradientStops>
</LinearGradientBrush>
</Setter.Value>
</Setter>
<Trigger.Value>
<mscorlib:Boolean>True</mscorlib:Boolean>
</Trigger.Value>
</Trigger>
<Trigger Property="Selector.IsSelected">
<Setter Property="Panel.ZIndex">
<Setter.Value>
<mscorlib:Int32>1</mscorlib:Int32>
</Setter.Value>
</Setter>
<Setter Property="Panel.Background" TargetName="Bd">
<Setter.Value>
<SolidColorBrush>#FFF9F9F9</SolidColorBrush>
</Setter.Value>
</Setter>
<Trigger.Value>
<mscorlib:Boolean>True</mscorlib:Boolean>
</Trigger.Value>
</Trigger>
<MultiTrigger>
<MultiTrigger.Conditions>
<Condition Property="Selector.IsSelected">
<Condition.Value>
<mscorlib:Boolean>False</mscorlib:Boolean>
</Condition.Value>
</Condition>
<Condition Property="UIElement.IsMouseOver">
<Condition.Value>
<mscorlib:Boolean>True</mscorlib:Boolean>
</Condition.Value>
</Condition>
</MultiTrigger.Conditions>
<Setter Property="Border.BorderBrush" TargetName="Bd">
<Setter.Value>
<SolidColorBrush>#FF3C7FB1</SolidColorBrush>
</Setter.Value>
</Setter>
</MultiTrigger>
<Trigger Property="TabItem.TabStripPlacement">
<Setter Property="Border.BorderThickness" TargetName="Bd">
<Setter.Value>
<Thickness>1,0,1,1</Thickness>
</Setter.Value>
</Setter>
<Trigger.Value>
<x:Static Member="Dock.Bottom" />
</Trigger.Value>
</Trigger>
<Trigger Property="TabItem.TabStripPlacement">
<Setter Property="Border.BorderThickness" TargetName="Bd">
<Setter.Value>
<Thickness>1,1,0,1</Thickness>
</Setter.Value>
</Setter>
<Trigger.Value>
<x:Static Member="Dock.Left" />
</Trigger.Value>
</Trigger>
<Trigger Property="TabItem.TabStripPlacement">
<Setter Property="Border.BorderThickness" TargetName="Bd">
<Setter.Value>
<Thickness>0,1,1,1</Thickness>
</Setter.Value>
</Setter>
<Trigger.Value>
<x:Static Member="Dock.Right" />
</Trigger.Value>
</Trigger>
<MultiTrigger>
<MultiTrigger.Conditions>
<Condition Property="Selector.IsSelected">
<Condition.Value>
<mscorlib:Boolean>True</mscorlib:Boolean>
</Condition.Value>
</Condition>
<Condition Property="TabItem.TabStripPlacement" Value="{x:Static Dock.Top}" />
</MultiTrigger.Conditions>
<Setter Property="FrameworkElement.Margin">
<Setter.Value>
<Thickness>-2,-2,-2,-1</Thickness>
</Setter.Value>
</Setter>
<Setter Property="FrameworkElement.Margin" TargetName="Content">
<Setter.Value>
<Thickness>0,0,0,1</Thickness>
</Setter.Value>
</Setter>
</MultiTrigger>
<MultiTrigger>
<MultiTrigger.Conditions>
<Condition Property="Selector.IsSelected">
<Condition.Value>
<mscorlib:Boolean>True</mscorlib:Boolean>
</Condition.Value>
</Condition>
<Condition Property="TabItem.TabStripPlacement" Value="{x:Static Dock.Bottom}" />
</MultiTrigger.Conditions>
<Setter Property="FrameworkElement.Margin">
<Setter.Value>
<Thickness>-2,-1,-2,-2</Thickness>
</Setter.Value>
</Setter>
<Setter Property="FrameworkElement.Margin" TargetName="Content">
<Setter.Value>
<Thickness>0,1,0,0</Thickness>
</Setter.Value>
</Setter>
</MultiTrigger>
<MultiTrigger>
<MultiTrigger.Conditions>
<Condition Property="Selector.IsSelected">
<Condition.Value>
<mscorlib:Boolean>True</mscorlib:Boolean>
</Condition.Value>
</Condition>
<Condition Property="TabItem.TabStripPlacement" Value="{x:Static Dock.Left}" />
</MultiTrigger.Conditions>
<Setter Property="FrameworkElement.Margin">
<Setter.Value>
<Thickness>-2,-2,-1,-2</Thickness>
</Setter.Value>
</Setter>
<Setter Property="FrameworkElement.Margin" TargetName="Content">
<Setter.Value>
<Thickness>0,0,1,0</Thickness>
</Setter.Value>
</Setter>
</MultiTrigger>
<MultiTrigger>
<MultiTrigger.Conditions>
<Condition Property="Selector.IsSelected">
<Condition.Value>
<mscorlib:Boolean>True</mscorlib:Boolean>
</Condition.Value>
</Condition>
<Condition Property="TabItem.TabStripPlacement" Value="{x:Static Dock.Right}" />
</MultiTrigger.Conditions>
<Setter Property="FrameworkElement.Margin">
<Setter.Value>
<Thickness>-1,-2,-2,-2</Thickness>
</Setter.Value>
</Setter>
<Setter Property="FrameworkElement.Margin" TargetName="Content">
<Setter.Value>
<Thickness>1,0,0,0</Thickness>
</Setter.Value>
</Setter>
</MultiTrigger>
<Trigger Property="UIElement.IsEnabled">
<Setter Property="Panel.Background" TargetName="Bd">
<Setter.Value>
<SolidColorBrush>#FFF4F4F4</SolidColorBrush>
</Setter.Value>
</Setter>
<Setter Property="Border.BorderBrush" TargetName="Bd">
<Setter.Value>
<SolidColorBrush>#FFC9C7BA</SolidColorBrush>
</Setter.Value>
</Setter>
<Setter Property="TextElement.Foreground">
<Setter.Value>
<DynamicResource ResourceKey="{x:Static SystemColors.GrayTextBrushKey}" />
</Setter.Value>
</Setter>
<Trigger.Value>
<mscorlib:Boolean>False</mscorlib:Boolean>
</Trigger.Value>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
<!-- Account Manager WINDOW tab control -->
<ControlTemplate x:Key="UDPTemplateTabControl" TargetType="{x:Type TabControl}">
<Grid x:Name="Grid" KeyboardNavigation.TabNavigation="Local">
<Grid.ColumnDefinitions>
<ColumnDefinition x:Name="ColumnDefinition0"/>
<ColumnDefinition x:Name="ColumnDefinition1" Width="0"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition x:Name="RowDefinition0" Height="Auto"/>
<RowDefinition x:Name="RowDefinition1" Height="*"/>
</Grid.RowDefinitions>
<Border Grid.Row="1"
Grid.Column="0"
x:Name="ContentPanel"
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}"
KeyboardNavigation.TabIndex="2"
KeyboardNavigation.TabNavigation="Local"
KeyboardNavigation.DirectionalNavigation="Contained"
Background="{TemplateBinding Background}"
CornerRadius="6,6,6,6">
<ContentPresenter DataContext="{x:Null}" Margin="{TemplateBinding Padding}"
x:Name="PART_SelectedContentHost"
Content="{TemplateBinding SelectedContent}"
ContentTemplate="{TemplateBinding SelectedContentTemplate}"
ContentTemplateSelector="{TemplateBinding SelectedContentTemplateSelector}"
ContentSource="SelectedContent"/>
</Border>
<ScrollViewer x:Name="HeaderPanel" Grid.Row="0" Grid.Column="0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="0,0,0,0" HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Disabled">
<ScrollViewer.Style>
<Style TargetType="{x:Type ScrollViewer}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate>
<!--<Grid Margin="0,0,0,0" Grid.Row="0" Grid.Column="0" x:Name="HeaderPanel">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="23"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="23"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="23" MinHeight="23" />
</Grid.RowDefinitions>
<RepeatButton x:Name="accountPrevTab"
Grid.Column="0"
Command="ScrollBar.LineLeftCommand"
Style="{DynamicResource StyleButtonTabScrollRepeatPrev}" />
<ScrollContentPresenter Grid.Column="1" Content="{TemplateBinding ScrollViewer.Content}" />
<RepeatButton x:Name="accountNextTab" Grid.Column="2" Command="ScrollBar.LineRightCommand" Style="{DynamicResource StyleButtonTabScrollRepeatNext}"/>
</Grid>-->
<Grid Margin="0,0,0,0" Grid.Row="0" Grid.Column="0" x:Name="HeaderPanel">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="23"/>
<ColumnDefinition Width="5" />
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="5" />
<ColumnDefinition Width="23"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="23" MinHeight="23" />
</Grid.RowDefinitions>
<RepeatButton x:Name="accountPrevTab"
Grid.Column="0"
Command="ScrollBar.LineLeftCommand"
Style="{StaticResource StyleButtonTabScrollRepeatPrev}" />
<Grid Grid.Column="1" />
<ScrollContentPresenter Grid.Column="2" Content="{TemplateBinding ScrollViewer.Content}" />
<Grid Grid.Column="3" />
<RepeatButton x:Name="accountNextTab"
Grid.Column="4"
Command="ScrollBar.LineRightCommand"
Style="{StaticResource StyleButtonTabScrollRepeatNext}"/>
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</ScrollViewer.Style>
<StackPanel IsItemsHost="true" Orientation="Horizontal" Background="{x:Null}" KeyboardNavigation.TabIndex="1" />
</ScrollViewer>
</Grid>
</ControlTemplate>
</ResourceDictionary>
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
modified on Tuesday, May 19, 2009 4:55 PM
|
|
|
|
|
I've played with this problem in Blend, and I haven't been able to resolve the issue.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
John - I'm a bit confused as to what line you get. By default, you shouldn't get a line at the bottom of the tab header - you should only get the left, top and right border lines. Are you talking about the focus rectangle? If so - all you need to do is add this style:
<Style TargetType="{x:Type TabItem}">
<Setter Property="FocusVisualStyle" Value="{x:Null}" />
</Style>
"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
|
|
|
|
|
Yep - it's the line that separates the tabitem from the tab body. Normally, you're only supposed to see it if the tab isn't selected, but when the tab is selected, (for me) it's still there.
I was just playing with it some more and may have an observation to share in about 20 minutes. I just want to make sure of what I'm seeing.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Okay, after too much fiddling around, figured out part of the problem. The margin on the scrollviewer element of the tabcontrol was wrong (and is still kinda wrong I think), and the margin on the tab item needed to be set in the !IsSelected state. I now have the proper separator line under unselected tabs, and no line under the currently selected tab. Now all I have to finger out is the tot and left border of the tab (which also might be a margin problem.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
I need to define a customized event which detects whether the border of one UI element crosses the border of the other UI element.
Make this assumption that both UI elements are on a Canvas, and they have the relative coordinates toward the boundary of the Canvas which are Canvas.Left and Canvas.Bottom.
My initial thought was to create a function which checks the relative coordinates of these two elements and raise the event whenever their coordinates are identical. Then, I realized it was rather awkward because each element has its area and it can not be considered as a pixel.
I have contemplated this puzzle for quite some time but still I can not come out with anything. Would anyone be kind enough to help me out on this I will be grateful.
Thanks in advance
Someone was born greatness;
Someone achieved greatness;
Someone have the greatness thrust upon him;
|
|
|
|
|
I'm not sure exactly what you're looking for...
For rectangular elements, if you don't want to code it yourself, you
could probably use the Rect structure and its Intersect() method...if
the method returns Rect.Empty then the elements don't overlap.
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Thanks Mark for your information.
I did a little bit of research on the method you provided me, and I found out this Intersect() method belongs to a GDI+ rectangle structure and it's not supported in WPF shapes. Are there any other methods which can substitute this one?
BTW, you are right about what I am looking for. In my program, I need to use an event to detect the intersection of different WPF UI elements in order to process some task once they cross over with each other.
Someone was born greatness;
Someone achieved greatness;
Someone have the greatness thrust upon him;
|
|
|
|
|
YouMiss wrote: this Intersect() method belongs to a GDI+ rectangle structure and it's not supported in WPF shapes
You looked at the wrong one.
Rect Structure (System.Windows)[^]
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Thanks very much, I probably should have searched harder, I will try it out!
Someone was born greatness;
Someone achieved greatness;
Someone have the greatness thrust upon him;
|
|
|
|
|
Hi,
I have a requirement in which i need to show
1. a Plane of a Cube ( Plane will be selected by the users by setting the apporpriate x,y and Z values) and i need to plot the Tempreture data (i get an array of X y z and Tempreture values in an Array) on it .
Can anyone give me some idea ?
2. I will be given an Array of X,y,Z points and i need to plot them.
I am not sure how i can do this in WPF ?
Any help will be highly appreciated .
|
|
|
|
|
I think I am working on something somewhat similar and while I am probably ahead of you on this one, I am a long, long way from done. A screenshot of where I am now is shown below.
Basically, the way I am doing it, I have three planes, one for each axis. I also have a two dimensional user control that does two dimensional XY graphs. I am using three VisualBrushes, one for each plane and passing an instance of the two dimensional usercontrol into the constructor of those VisualBrushes. I am then using those VisualBrushes to texture the three axis planes. For the points, I am creating spherical meshes and positioning them inside of the XYZ chart area.
When I finally get done with this whole thing, which won’t happen anytime soon, I will do one or more posts on it on my blog with source code. However, I am so far from done that that may be a while. I won’t publish the code that I have at this point in time because it is so crude and filled with quick and dirty workarounds that I don’t want it on the web in its current form. I hope this helps at least with the getting started part though.
http://www.trentfguidry.net/MyImages/Peng-Robinson-Methanol-Graph.jpg
Niladri Biswas
|
|
|
|
|
Any third party control for Data Grid with all the event as in WINFORM DataGrid for WPF?
|
|
|
|
|
There's one in the WPF Toolkit[^].
The toolkit is where you can get your hands on controls before they make it into the
.NET framework.
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Infragistics WPF control. We are heavily using it.
Try that.
Or else, in codeplex, you will get WPF datagrid.
Search in google for the same
Niladri Biswas
|
|
|
|
|
Does anybody know where i can get very powerful open source 3d wpf charts. I'm looking for charts with onclick events and rich color shading and filling. The module should also provide pie charts.
Thx in advance
|
|
|
|
|
Visifire is an open Source WPF Charting component.
|
|
|
|
|
hi all,
i have a writableBitmap which i want to save on server. Is there any way to save it may be using webservice?? i Dont kno!!!
Thanks in advance
Samir
|
|
|
|
|
Serialize the bitmap as a stream of bytes and send it tot he server via a web service where it gets converted back into a bitmap and saved?
|
|
|
|
|
hi Ray,
Thanks For your quick Reply.. Can u tell me a way to convert Writable Bitmap to memory stream? i was trying the same but there is no way directly to convert Writable bitmap to memory stream.
Thanks in advance
Samir Satadekar
|
|
|
|
|
Hi, i am trying to make a WPF listview control that contains a gridview. The problem is when i run the application, at one time user can select just 1 row of the grid. If user selects another row, the previous row selected is un-selected automatically i have tried using cntrl+ mouseclick still i can not select multiple grid view rows.
What exactly i want to do is, i would like to display gridview's coloumn(0) value of all the selected rows(concatinating each value) in the some textbox. Can anyone Please help?
My code is:
<DataTemplate x:Key="FirstCell">
<StackPanel Orientation="Horizontal">
<CheckBox IsChecked="{Binding Path=IsSelected,
RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type ListViewItem}}}" >
</CheckBox>
</StackPanel>
</DataTemplate>
<ListView
ItemsSource="{Binding}"
IsSynchronizedWithCurrentItem="True" Name="ListView1" Margin="218,83,25,88"
ScrollViewer.CanContentScroll="True" ScrollViewer.HorizontalScrollBarVisibility="Disabled"
SelectionChanged="ListView1_SelectionChanged" SelectionMode="Multiple">
<ListView.ItemContainerStyle>
<Style TargetType="ListViewItem">
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
<EventSetter Event="GotFocus" Handler="Item_GotFocus" />
</Style>
</ListView.ItemContainerStyle>
<ListView.View >
<GridView x:Name="Grid1" >
<GridViewColumn Header="Code" Width="70" >
<GridViewColumn.CellTemplate>
<DataTemplate>
<TextBox Text="{Binding Path=Code}"
Margin="-6,0,-6,0" x:Name="Codename"/>
</DataTemplate>
</GridViewColumn.CellTemplate>
</GridViewColumn>
<GridViewColumn Header="Discription" Width="70" >
<GridViewColumn.CellTemplate>
<DataTemplate >
<TextBox Text="{Binding Path=Description}"
Margin="-6,0,-6,0" x:Name="Descriptionname" />
</DataTemplate>
</GridViewColumn.CellTemplate>
</GridViewColumn>
<GridViewColumn CellTemplate="{StaticResource FirstCell}"
Width="30"/>
</GridView>
</ListView.View>
</ListView>
|
|
|
|
|
SR81 wrote: The problem is when i run the application, at one time user can select just 1 row of the grid. If user selects another row, the previous row selected is un-selected automatically
Your code works for me. Multiple selections work - no CTRL key necessary.
Only change I made is fixed the broken FirstCell data template (it wouldn't compile
so I removed the binding from the checkbox) and removed all event handlers since you didn't
provide the code.
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Always use
SelectionMode="Extended"
and not SelectionMode="Multiple"
Try this and vote me
Niladri Biswas
|
|
|
|
|
We are using WPF Dock as Prism Extension in our project. That extension can be downloaded from CompositeWPFContrib website. Currently, we are having some issues with Dock and Popup control. Please read more details about that problem in steps to reproduce.
http://michaelsync.net/demo/CALApplication.Shell.doc
Note: Please download the attachement and change the file extension "doc" to "zip".
1. Run the application
2. Click on Menu #1
3. Select "Customer Details"
4. Click on "Open Pupup" button
5. Click on "Open View 2" (View2 will be opened)
6. Click on "Customer Details" tab
Observe: Tab will be automatically moved back to "View2".
Note: It happens only when we are launching the VIew2 from Popup. If we move the command " Command="{Binding LaunchView2Command}"" to button above Popup, it won't happen. Not sure whether there is any relationship between Popup and Dock or Popup and Prism.
|
|
|
|
|
I have a stackpanel having one image and one stackpanel having button control.....
I want to do the same thing on StackPanel click as the button click which is the child of that stackpanel
How can I do that....?
I have wrote something on MouseLeftButtonDown event of stackpanel but not able to get the button name and content...
Anyhow i need the button name and content inside the stackpanel on MouseLeftButtonDown event of that stackpanel...
Can i get that?
Please help me, its very urgent....
|
|
|
|
|