Click here to Skip to main content
15,887,596 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: Virtual classroom using silverlight Pin
Richard MacCutchan4-Sep-13 5:04
mveRichard MacCutchan4-Sep-13 5:04 
AnswerRe: Virtual classroom using silverlight Pin
Pete O'Hanlon4-Sep-13 5:45
mvePete O'Hanlon4-Sep-13 5:45 
QuestionWPF TreeView on a Windows 8 Tablet Pin
Kevin Marois3-Sep-13 6:56
professionalKevin Marois3-Sep-13 6:56 
AnswerRe: WPF TreeView on a Windows 8 Tablet Pin
Pete O'Hanlon3-Sep-13 10:12
mvePete O'Hanlon3-Sep-13 10:12 
GeneralRe: WPF TreeView on a Windows 8 Tablet Pin
Kevin Marois3-Sep-13 10:37
professionalKevin Marois3-Sep-13 10:37 
QuestionHow to avoid repeating dynamic tabitem at runtime? Pin
LAPEC2-Sep-13 15:07
LAPEC2-Sep-13 15:07 
AnswerRe: How to avoid repeating dynamic tabitem at runtime? Pin
Pete O'Hanlon2-Sep-13 19:25
mvePete O'Hanlon2-Sep-13 19:25 
GeneralRe: How to avoid repeating dynamic tabitem at runtime? Pin
LAPEC3-Sep-13 1:46
LAPEC3-Sep-13 1:46 
Hello Pete

Thanks for replying to my question. According to your answer, there isn't any tab-item with the same name, those tab-items are created at run-time.

here is the xaml code of the BackOfficeWindow.xaml

<Window x:Class="iPosCloud.com.iposcloud.bo.uiC_.BackOfficeWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:src="clr-namespace:iPosCloud"
        xmlns:vm="clr-namespace:iPosCloud.com.iposcloud.bo.uiC_.explorer.ViewModel"
        xmlns:explorer ="clr-namespace:iPosCloud.com.iposcloud.bo.uiC_.explorer"
        Title="CLOUD iPOS - Back Office Window" Height="700" Width="1000" WindowStartupLocation="CenterScreen"
        xmlns:Intersoft="http://intersoft.clientui.com/schemas"
        xmlns:my1="clr-namespace:Intersoft.Client.UI.Controls;assembly=Intersoft.Client.UI.Controls"
        xmlns:my2="http://schehttp://schemas.microsoft.com/surface/2008" 
        xmlns:my="http://schemas.microsoft.com/surface/2008" Foreground="{x:Null}" ShowInTaskbar="False" WindowStyle="ThreeDBorderWindow">

    <Window.Resources>
        <DataTemplate  DataType="{x:Type vm:VMUserExplorer}">
            <explorer:UserExplorer />
        </DataTemplate>
        <DataTemplate DataType="{x:Type vm:VMCategoryExplorer}">
            <explorer:CategoryExplorer />
        </DataTemplate>
    </Window.Resources>

    <Grid>
        <Grid.BitmapEffect>
            <DropShadowBitmapEffect Color="Black" Direction="360" ShadowDepth="10" Opacity=".5" Softness="9" />
        </Grid.BitmapEffect>
        <Rectangle>
                <Rectangle.Fill>
                    <LinearGradientBrush EndPoint="0.508,1.717" MappingMode="RelativeToBoundingBox" StartPoint="0.5,0">
                        <GradientStop Color="Black" Offset="1"/>
                        <GradientStop Color="#FFA3A3A3"/>
                        <GradientStop Color="#FF3C3C3E" Offset="0.582"/>
                    </LinearGradientBrush>
                </Rectangle.Fill>
            </Rectangle>
        <Menu Height="30" HorizontalAlignment="Stretch" Margin="2" VerticalAlignment="Top" Width="Auto">
            <MenuItem FontFamily="Verdana" Header="Administration" Padding="7,6,8,3" VerticalContentAlignment="Center" Height="30">
                <MenuItem Header="Configuration" Name="menuItemAdminConfiguration" Click="menuItemAdminConfiguration_Click" />
                <MenuItem Header="Users" Name="menuUsers" Click="menuUsers_Click" />
            </MenuItem>
            <MenuItem FontFamily="Verdana" Header="Explorers" Padding="7,6,8,3" VerticalContentAlignment="Center" Height="30">
                <MenuItem Header="Menu Categories" Name="menuCategories" Click="menuCategories_Click" />
            </MenuItem>
            <MenuItem FontFamily="Verdana" Header="Reports" Padding="7,6,8,3" VerticalContentAlignment="Center" Height="30">
            </MenuItem>
        </Menu>
        <Grid Name="Master" Margin="4,40,4,4">
            <TabControl Name="MasterTabControl" Margin="2" Background="{x:Null}" BorderThickness="2" BorderBrush="#FF3C3C3E" IsSynchronizedWithCurrentItem="True" ItemsSource="{Binding ObservableCollectionTabItems}">
                <TabControl.ItemTemplate>
                    <DataTemplate>
                        <TextBlock Text="{Binding Header}" >
                         <TextBlock.ContextMenu>
                             <ContextMenu Name="contextMenu1">
                                 <MenuItem Header="Close" Name="menuItem1" Click="menuItem1_Click">
                                 </MenuItem>
                             </ContextMenu>
                         </TextBlock.ContextMenu>
                        </TextBlock>
                    </DataTemplate>
                </TabControl.ItemTemplate>
            </TabControl>
        </Grid>
    </Grid>
    <Window.Background>
        <ImageBrush ImageSource="/iPosCloud;component/images/HoneyComb.png" Stretch="Fill" TileMode="Tile" Viewport="0,0,46,25" ViewportUnits="Absolute" />
    </Window.Background>
</Window>


kin regards

roni
GeneralRe: How to avoid repeating dynamic tabitem at runtime? Pin
Pete O'Hanlon3-Sep-13 2:02
mvePete O'Hanlon3-Sep-13 2:02 
GeneralRe: How to avoid repeating dynamic tabitem at runtime? Pin
LAPEC3-Sep-13 3:12
LAPEC3-Sep-13 3:12 
GeneralRe: How to avoid repeating dynamic tabitem at runtime? Pin
Pete O'Hanlon3-Sep-13 3:59
mvePete O'Hanlon3-Sep-13 3:59 
QuestionMVVM pattern Pin
columbos1492731-Aug-13 18:46
columbos1492731-Aug-13 18:46 
AnswerRe: MVVM pattern Pin
SledgeHammer013-Sep-13 9:56
SledgeHammer013-Sep-13 9:56 
GeneralRe: Prism Quick Starts Pin
NotPolitcallyCorrect30-Aug-13 4:29
NotPolitcallyCorrect30-Aug-13 4:29 
QuestionHow to force refresh of images being cached in Silverlight Deep Zoom app? Pin
Member 297027028-Aug-13 6:04
Member 297027028-Aug-13 6:04 
AnswerRe: How to force refresh of images being cached in Silverlight Deep Zoom app? Pin
Jason Gleim28-Aug-13 7:49
professionalJason Gleim28-Aug-13 7:49 
GeneralRe: How to force refresh of images being cached in Silverlight Deep Zoom app? Pin
Member 297027028-Aug-13 8:14
Member 297027028-Aug-13 8:14 
GeneralRe: How to force refresh of images being cached in Silverlight Deep Zoom app? Pin
Jason Gleim28-Aug-13 8:18
professionalJason Gleim28-Aug-13 8:18 
GeneralRe: How to force refresh of images being cached in Silverlight Deep Zoom app? Pin
Member 297027028-Aug-13 8:44
Member 297027028-Aug-13 8:44 
GeneralRe: How to force refresh of images being cached in Silverlight Deep Zoom app? Pin
Jason Gleim28-Aug-13 8:54
professionalJason Gleim28-Aug-13 8:54 
QuestionCan someone explain this PRISM concept? Pin
SledgeHammer0127-Aug-13 8:39
SledgeHammer0127-Aug-13 8:39 
QuestionAssign a null value to DateTime property Pin
maxRazar26-Aug-13 21:00
maxRazar26-Aug-13 21:00 
AnswerRe: Assign a null value to DateTime property Pin
Pete O'Hanlon26-Aug-13 23:02
mvePete O'Hanlon26-Aug-13 23:02 
GeneralRe: Assign a null value to DateTime property Pin
maxRazar28-Aug-13 5:57
maxRazar28-Aug-13 5:57 
GeneralRe: Assign a null value to DateTime property Pin
Pete O'Hanlon28-Aug-13 21:56
mvePete O'Hanlon28-Aug-13 21:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.