Comments (12)
<UserControl x:Class="OmniInteger.GUI.View.SessionControl"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:OmniInteger.GUI.View"
xmlns:Controls="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks"
xmlns:Dialog="clr-namespace:MahApps.Metro.Controls.Dialogs;assembly=MahApps.Metro"
xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
xmlns:prism="clr-namespace:Microsoft.Practices.Prism.Interactivity;assembly=Microsoft.Practices.Prism.Interactivity"
mc:Ignorable="d" d:DesignWidth="300" Height="202">
<UserControl.Resources>
<ResourceDictionary>
<Thickness x:Key="ControlMargin">0 5 0 0</Thickness>
</ResourceDictionary>
</UserControl.Resources>
<i:Interaction.Triggers>
<i:EventTrigger EventName="Closing">
<prism:InvokeCommandAction Command="{Binding CloseCommand}"/>
</i:EventTrigger>
</i:Interaction.Triggers>
<Grid HorizontalAlignment="Left" Height="224" Margin="0,5,0,-27" VerticalAlignment="Top" Width="280">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="9*"/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="233*"/>
<RowDefinition Height="24*"/>
</Grid.RowDefinitions>
<Label x:Name="lblCountry" Content="Country:" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top"/>
<ComboBox x:Name="cboCountry" IsEditable="false" ItemsSource="{Binding Countries}" SelectedItem="{Binding Country, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" HorizontalAlignment="Left" Margin="70,10,0,0" VerticalAlignment="Top" Width="120"/>
<Label x:Name="lblMission" Content="Mission: " HorizontalAlignment="Left" Margin="10,41,0,0" VerticalAlignment="Top"/>
<ComboBox x:Name="cboMission" IsEditable="{Binding IsMissionEditable, Mode=TwoWay}" ItemsSource="{Binding Missions}" SelectedItem="{Binding Mission, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" DisplayMemberPath="Description" SelectedValuePath="Description" SelectedValue="{Binding Path=Description, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Text="{Binding MissionText, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" HorizontalAlignment="Left" Margin="10,67,0,0" VerticalAlignment="Top" Width="120"/>
<Label x:Name="lblLocation" Content="Location: " HorizontalAlignment="Left" Margin="138,41,0,0" VerticalAlignment="Top"/>
<ComboBox x:Name="cboLocation" IsEditable="{Binding IsLocationEditable, Mode=TwoWay}" ItemsSource="{Binding Locations}" SelectedItem="{Binding Location, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" DisplayMemberPath="Description" SelectedValuePath="Description" SelectedValue="{Binding Path=Description, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Text="{Binding LocationText, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" HorizontalAlignment="Left" Margin="138,67,0,0" VerticalAlignment="Top" Width="120" Grid.ColumnSpan="2"/>
<Button x:Name="btnNewMission" Command="{Binding NewMission}" HorizontalAlignment="Left" Margin="10,94,0,0" Style="{DynamicResource SquareButtonStyle}" VerticalAlignment="Top" Width="75" Height="30">
<iconPacks:PackIconMaterial Kind="NewBox" ToolTip="New Mission"/>
</Button>
<Button x:Name="btnDeleteMission" Command="{Binding DeleteMission}" HorizontalAlignment="Left" Margin="10,124,0,0" Style="{DynamicResource SquareButtonStyle}" VerticalAlignment="Top" Width="75" Height="30">
<iconPacks:PackIconMaterial Kind="Delete" ToolTip="Delete Mission"/>
</Button>
<Button x:Name="btnDeleteLocation" Command="{Binding DeleteLocation}" HorizontalAlignment="Left" Margin="183,124,0,0" Style="{DynamicResource SquareButtonStyle}" VerticalAlignment="Top" Width="75" Grid.ColumnSpan="2" Height="30">
<iconPacks:PackIconMaterial Kind="Delete" ToolTip="Delete Location"/>
</Button>
<Button x:Name="btnNewLocation" Command="{Binding NewLocation}" HorizontalAlignment="Left" Margin="183,94,0,0" Style="{DynamicResource SquareButtonStyle}" VerticalAlignment="Top" Width="75" Grid.ColumnSpan="2" Height="30">
<iconPacks:PackIconMaterial Kind="NewBox" ToolTip="New Location"/>
</Button>
<Button x:Name="btnSave" Command="{Binding Save}" HorizontalAlignment="Left" Margin="10,154,0,0" Style="{DynamicResource SquareButtonStyle}" VerticalAlignment="Top" Width="75" Grid.RowSpan="1" Height="30">
<iconPacks:PackIconMaterial Kind="ContentSave" ToolTip="Save"/>
</Button>
<Button x:Name="btnOK" Content="OK" Command="{Binding ExitCommand}" Margin="97,154,80,0" VerticalAlignment="Top" Height="30" RenderTransformOrigin="0.502,1.069"/>
<Button x:Name="btnExit" ToolTip="Exit Application" Command="{Binding QuitCommand}" HorizontalAlignment="Left" Margin="183,154,0,0" Style="{DynamicResource SquareButtonStyle}" VerticalAlignment="Top" Width="75" Height="30" RenderTransformOrigin="0.493,-0.787" Grid.RowSpan="1" Grid.ColumnSpan="2">
<iconPacks:PackIconMaterial Kind="ExitToApp" ToolTip="Quit"/>
</Button>
</Grid>
</UserControl>
from mahapps.metro.iconpacks.
@khteh Can you post your Xaml code of the PackIcon?
from mahapps.metro.iconpacks.
@khteh ?
from mahapps.metro.iconpacks.
@khteh Which version of MahApps.Metro and MahApps.Metro.IconPacks do you use? Which VS version is this?
from mahapps.metro.iconpacks.
VS 2015
MahApps.Metro: MahApps.Metro.1.4.0-ALPHA024
MahApps.Metro.IconPacks: 1.4.0.0
from mahapps.metro.iconpacks.
@khteh What is your selected solution platform for your app? Is it maybe different to Any CPU
?
from mahapps.metro.iconpacks.
x64. I tried Any CPU but have problem detecting my MS Unit Tests in test explorer.
from mahapps.metro.iconpacks.
@khteh Problem is, that I can't reproduce this issue. I've chatted with another guy with the same problem. I don't really know why this issue happens with different solution platforms, I will investigate it...
from mahapps.metro.iconpacks.
I just switched to Any CPU but the same exceptions persist.
from mahapps.metro.iconpacks.
@khteh It's Designer related stuff so you shoudl delete all obj/bin folders and the Designer shadow cache... close VS and start again...
from mahapps.metro.iconpacks.
@punker76 That works. Thanks!
from mahapps.metro.iconpacks.
Also Solved it for me.
I was Running VS Community 2019 V. 16.3.10 and MahApps.Metro.1.6.5 and MahApps.Metro.IconPacks.2.3.0
Thank you very much
from mahapps.metro.iconpacks.
Related Issues (20)
- How to convert a PackIconMarkup to a Geometry object? HOT 5
- Could not load file or assembly HOT 3
- Draw icons using win2d HOT 2
- bug: bound icons in an ItemsControl are shown incorrectly. Error appeared on 4.4.0 (it did work correctly on 4.3.0) HOT 2
- "MahApps.Metro.IconPacks.Core" Nuget-Package
- Drop .NET Framework 4.5.2 and 4.6 which will reach End of Support on April 26, 2022
- Question: how to convert an icon to System.Drawing.Icon? HOT 1
- Include the Microsoft Windows11 explorer icons
- iconPacks:PackIconSimpleIcons HOT 1
- UWP Crashes at Startup when built in Release mode when using some Icon Packs HOT 10
- Could not load file or assembly 'MahApps.Metro.IconPacks.FontAwesome, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0c0d510f9915137a' or one of its dependencies. The system cannot find the file specified. HOT 2
- VS2022 WPF Designer Crashes Most Times with Icons HOT 3
- Material Design Icons v7.0.96
- Publish icon file generators for use in PRs HOT 2
- Drop the UWP support because it's a mess with the new Sdk project files
- Unable to resolve type Material HOT 4
- VS2022 can't find IconPacks resource HOT 9
- Flipped icon paths? HOT 1
- Update RemixIcon to V3.5 HOT 2
- IconPack spin not working HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mahapps.metro.iconpacks.